{"version":3,"file":"vendors.js","sources":["webpack:///vendors.js"],"sourcesContent":["(window.webpackJsonp=window.webpackJsonp||[]).push([[1],{\"+MuJ\":function(t,e,i){\"use strict\";i.d(e,\"a\",(function(){return l}));var n=i(\"o+FD\"),r=i(\"JXGc\"),s=i(\"1nra\"),a=i(\"iMpH\"),o=i(\"Rsh4\");function l(t){return!!a.b.rr()&&(t instanceof n.a?r.a.m().A(t).O:(o.a.j.error(\"card \"+s.i),!1))}},\"+aR0\":function(t,e,i){var n,r;n=[i(\"HATn\")],void 0===(r=function(t){\"use strict\";return t.call(Object)}.apply(e,n))||(t.exports=r)},\"+rag\":function(t,e,i){\"use strict\";i.d(e,\"a\",(function(){return n}));const n=t=>null!==t&&\"IFRAME\"===t.tagName},\"+u5z\":function(t,e,i){var n,r,s;\n/*!\n* inputmask.date.extensions.js\n* https://github.com/RobinHerbots/Inputmask\n* Copyright (c) 2010 - 2019 Robin Herbots\n* Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.php)\n* Version: 4.0.9\n*/r=[i(\"qZCD\")],void 0===(s=\"function\"==typeof(n=function(t){var e=t.dependencyLib,i={d:[\"[1-9]|[12][0-9]|3[01]\",Date.prototype.setDate,\"day\",Date.prototype.getDate],dd:[\"0[1-9]|[12][0-9]|3[01]\",Date.prototype.setDate,\"day\",function(){return a(Date.prototype.getDate.call(this),2)}],ddd:[\"\"],dddd:[\"\"],m:[\"[1-9]|1[012]\",Date.prototype.setMonth,\"month\",function(){return Date.prototype.getMonth.call(this)+1}],mm:[\"0[1-9]|1[012]\",Date.prototype.setMonth,\"month\",function(){return a(Date.prototype.getMonth.call(this)+1,2)}],mmm:[\"\"],mmmm:[\"\"],yy:[\"[0-9]{2}\",Date.prototype.setFullYear,\"year\",function(){return a(Date.prototype.getFullYear.call(this),2)}],yyyy:[\"[0-9]{4}\",Date.prototype.setFullYear,\"year\",function(){return a(Date.prototype.getFullYear.call(this),4)}],h:[\"[1-9]|1[0-2]\",Date.prototype.setHours,\"hours\",Date.prototype.getHours],hh:[\"0[1-9]|1[0-2]\",Date.prototype.setHours,\"hours\",function(){return a(Date.prototype.getHours.call(this),2)}],hhh:[\"[0-9]+\",Date.prototype.setHours,\"hours\",Date.prototype.getHours],H:[\"1?[0-9]|2[0-3]\",Date.prototype.setHours,\"hours\",Date.prototype.getHours],HH:[\"0[0-9]|1[0-9]|2[0-3]\",Date.prototype.setHours,\"hours\",function(){return a(Date.prototype.getHours.call(this),2)}],HHH:[\"[0-9]+\",Date.prototype.setHours,\"hours\",Date.prototype.getHours],M:[\"[1-5]?[0-9]\",Date.prototype.setMinutes,\"minutes\",Date.prototype.getMinutes],MM:[\"0[0-9]|1[0-9]|2[0-9]|3[0-9]|4[0-9]|5[0-9]\",Date.prototype.setMinutes,\"minutes\",function(){return a(Date.prototype.getMinutes.call(this),2)}],ss:[\"[0-5][0-9]\",Date.prototype.setSeconds,\"seconds\",function(){return a(Date.prototype.getSeconds.call(this),2)}],l:[\"[0-9]{3}\",Date.prototype.setMilliseconds,\"milliseconds\",function(){return a(Date.prototype.getMilliseconds.call(this),3)}],L:[\"[0-9]{2}\",Date.prototype.setMilliseconds,\"milliseconds\",function(){return a(Date.prototype.getMilliseconds.call(this),2)}],t:[\"[ap]\"],tt:[\"[ap]m\"],T:[\"[AP]\"],TT:[\"[AP]M\"],Z:[\"\"],o:[\"\"],S:[\"\"]},n={isoDate:\"yyyy-mm-dd\",isoTime:\"HH:MM:ss\",isoDateTime:\"yyyy-mm-dd'T'HH:MM:ss\",isoUtcDateTime:\"UTC:yyyy-mm-dd'T'HH:MM:ss'Z'\"};function r(t){if(!t.tokenizer){var e=[];for(var n in i)-1===e.indexOf(n[0])&&e.push(n[0]);t.tokenizer=\"(\"+e.join(\"+|\")+\")+?|.\",t.tokenizer=new RegExp(t.tokenizer,\"g\")}return t.tokenizer}function s(e,n,s,a){for(var o,l=\"\";o=r(s).exec(e);)if(void 0===n)if(i[o[0]])l+=\"(\"+i[o[0]][0]+\")\";else switch(o[0]){case\"[\":l+=\"(\";break;case\"]\":l+=\")?\";break;default:l+=t.escapeRegex(o[0])}else i[o[0]]?!0!==a&&i[o[0]][3]?l+=i[o[0]][3].call(n.date):i[o[0]][2]?l+=n[\"raw\"+i[o[0]][2]]:l+=o[0]:l+=o[0];return l}function a(t,e){for(t=String(t),e=e||2;t.lengtha.slice(0,i.length)?a.slice(i.length):e.toString().slice(i.length))}return e}function c(t,e,i){t[s]=u(e),t[\"raw\"+s]=e,void 0!==o&&o.call(t.date,\"month\"==s?parseInt(t[s])-1:t[s])}if(\"string\"==typeof h){for(;a=r(n).exec(e);){var d=h.slice(0,a[0].length);i.hasOwnProperty(a[0])&&(i[a[0]][0],s=i[a[0]][2],o=i[a[0]][1],c(l,d)),h=h.slice(d.length)}return l}if(h&&\"object\"==typeof h&&h.hasOwnProperty(\"date\"))return h}return t.extendAliases({datetime:{mask:function(t){return i.S=t.i18n.ordinalSuffix.join(\"|\"),t.inputFormat=n[t.inputFormat]||t.inputFormat,t.displayFormat=n[t.displayFormat]||t.displayFormat||t.inputFormat,t.outputFormat=n[t.outputFormat]||t.outputFormat||t.inputFormat,t.placeholder=\"\"!==t.placeholder?t.placeholder:t.inputFormat.replace(/[\\[\\]]/,\"\"),t.regex=s(t.inputFormat,void 0,t),null},placeholder:\"\",inputFormat:\"isoDateTime\",displayFormat:void 0,outputFormat:void 0,min:null,max:null,i18n:{dayNames:[\"Mon\",\"Tue\",\"Wed\",\"Thu\",\"Fri\",\"Sat\",\"Sun\",\"Monday\",\"Tuesday\",\"Wednesday\",\"Thursday\",\"Friday\",\"Saturday\",\"Sunday\"],monthNames:[\"Jan\",\"Feb\",\"Mar\",\"Apr\",\"May\",\"Jun\",\"Jul\",\"Aug\",\"Sep\",\"Oct\",\"Nov\",\"Dec\",\"January\",\"February\",\"March\",\"April\",\"May\",\"June\",\"July\",\"August\",\"September\",\"October\",\"November\",\"December\"],ordinalSuffix:[\"st\",\"nd\",\"rd\",\"th\"]},postValidation:function(t,e,i,n){n.min=o(n.min,n.inputFormat,n),n.max=o(n.max,n.inputFormat,n);var r=i,a=o(t.join(\"\"),n.inputFormat,n);return r&&a.date.getTime()==a.date.getTime()&&(r=(r=function(t,e){return(!isFinite(t.rawday)||\"29\"==t.day&&!isFinite(t.rawyear)||new Date(t.date.getFullYear(),isFinite(t.rawmonth)?t.month:t.date.getMonth()+1,0).getDate()>=t.day)&&e}(a,r))&&function(t,e){var i=!0;if(e.min){if(t.rawyear){var n=t.rawyear.replace(/[^0-9]/g,\"\"),r=e.min.year.substr(0,n.length);i=r<=n}t.year===t.rawyear&&e.min.date.getTime()==e.min.date.getTime()&&(i=e.min.date.getTime()<=t.date.getTime())}return i&&e.max&&e.max.date.getTime()==e.max.date.getTime()&&(i=e.max.date.getTime()>=t.date.getTime()),i}(a,n)),e&&r&&i.pos!==e?{buffer:s(n.inputFormat,a,n),refreshFromBuffer:{start:e,end:i.pos}}:r},onKeyDown:function(i,n,s,o){if(i.ctrlKey&&i.keyCode===t.keyCode.RIGHT){for(var l,h=new Date,u=\"\";l=r(o).exec(o.inputFormat);)\"d\"===l[0].charAt(0)?u+=a(h.getDate(),l[0].length):\"m\"===l[0].charAt(0)?u+=a(h.getMonth()+1,l[0].length):\"yyyy\"===l[0]?u+=h.getFullYear().toString():\"y\"===l[0].charAt(0)&&(u+=a(h.getYear(),l[0].length));this.inputmask._valueSet(u),e(this).trigger(\"setvalue\")}},onUnMask:function(t,e,i){return s(i.outputFormat,o(t,i.inputFormat,i),i,!0)},casing:function(t,e,i,n){return 0==e.nativeDef.indexOf(\"[ap]\")?t.toLowerCase():0==e.nativeDef.indexOf(\"[AP]\")?t.toUpperCase():t},insertMode:!1,shiftPositions:!1}}),t})?n.apply(e,r):n)||(t.exports=s)},\"+y+W\":function(t,e,i){var n,r;n=[i(\"iprW\")],void 0===(r=function(t){\"use strict\";var e={type:!0,src:!0,nonce:!0,noModule:!0};return function(i,n,r){var s,a,o=(r=r||t).createElement(\"script\");if(o.text=i,n)for(s in e)(a=n[s]||n.getAttribute&&n.getAttribute(s))&&o.setAttribute(s,a);r.head.appendChild(o).parentNode.removeChild(o)}}.apply(e,n))||(t.exports=r)},\"/03S\":function(t,e,i){var n,r;n=[i(\"mEBU\"),i(\"06dU\"),i(\"Y7H9\")],void 0===(r=function(t){\"use strict\";t.each([\"ajaxStart\",\"ajaxStop\",\"ajaxComplete\",\"ajaxError\",\"ajaxSuccess\",\"ajaxSend\"],(function(e,i){t.fn[i]=function(t){return this.on(i,t)}}))}.apply(e,n))||(t.exports=r)},\"/Cwt\":function(t,e,i){var n;void 0===(n=function(){\"use strict\";return/^(?:checkbox|radio)$/i}.call(e,i,e,t))||(t.exports=n)},\"/cQ6\":function(t,e,i){\"use strict\";i.r(e),i.d(e,\"unregisterPush\",(function(){return s}));var n=i(\"iMpH\"),r=i(\"ZtTf\");function s(t,e){if(n.b.rr())return r.default.m().unsubscribe(t,e)}},\"/vyx\":function(t,e,i){var n;void 0===(n=function(){\"use strict\";return{guid:Date.now()}}.call(e,i,e,t))||(t.exports=n)},\"06dU\":function(t,e,i){var n,r;n=[i(\"mEBU\"),i(\"iprW\"),i(\"s44h\"),i(\"VK0Q\"),i(\"ZI4A\"),i(\"/vyx\"),i(\"Dc8T\"),i(\"MsD2\"),i(\"aIvf\"),i(\"l58E\"),i(\"G5n7\"),i(\"xrz1\")],void 0===(r=function(t,e,i,n,r,s,a){\"use strict\";var o=/%20/g,l=/#.*$/,h=/([?&])_=[^&]*/,u=/^(.*?):[ \\t]*([^\\r\\n]*)$/gm,c=/^(?:GET|HEAD)$/,d=/^\\/\\//,f={},p={},m=\"*/\".concat(\"*\"),g=e.createElement(\"a\");function v(t){return function(e,r){\"string\"!=typeof e&&(r=e,e=\"*\");var s,a=0,o=e.toLowerCase().match(n)||[];if(i(r))for(;s=o[a++];)\"+\"===s[0]?(s=s.slice(1)||\"*\",(t[s]=t[s]||[]).unshift(r)):(t[s]=t[s]||[]).push(r)}}function y(e,i,n,r){var s={},a=e===p;function o(l){var h;return s[l]=!0,t.each(e[l]||[],(function(t,e){var l=e(i,n,r);return\"string\"!=typeof l||a||s[l]?a?!(h=l):void 0:(i.dataTypes.unshift(l),o(l),!1)})),h}return o(i.dataTypes[0])||!s[\"*\"]&&o(\"*\")}function b(e,i){var n,r,s=t.ajaxSettings.flatOptions||{};for(n in i)void 0!==i[n]&&((s[n]?e:r||(r={}))[n]=i[n]);return r&&t.extend(!0,e,r),e}return g.href=r.href,t.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:r.href,type:\"GET\",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(r.protocol),global:!0,processData:!0,async:!0,contentType:\"application/x-www-form-urlencoded; charset=UTF-8\",accepts:{\"*\":m,text:\"text/plain\",html:\"text/html\",xml:\"application/xml, text/xml\",json:\"application/json, text/javascript\"},contents:{xml:/\\bxml\\b/,html:/\\bhtml/,json:/\\bjson\\b/},responseFields:{xml:\"responseXML\",text:\"responseText\",json:\"responseJSON\"},converters:{\"* text\":String,\"text html\":!0,\"text json\":JSON.parse,\"text xml\":t.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,i){return i?b(b(e,t.ajaxSettings),i):b(t.ajaxSettings,e)},ajaxPrefilter:v(f),ajaxTransport:v(p),ajax:function(i,v){\"object\"==typeof i&&(v=i,i=void 0),v=v||{};var b,x,w,T,S,E,C,A,_,k,P=t.ajaxSetup({},v),M=P.context||P,D=P.context&&(M.nodeType||M.jquery)?t(M):t.event,O=t.Deferred(),R=t.Callbacks(\"once memory\"),I=P.statusCode||{},F={},L={},N=\"canceled\",B={readyState:0,getResponseHeader:function(t){var e;if(C){if(!T)for(T={};e=u.exec(w);)T[e[1].toLowerCase()+\" \"]=(T[e[1].toLowerCase()+\" \"]||[]).concat(e[2]);e=T[t.toLowerCase()+\" \"]}return null==e?null:e.join(\", \")},getAllResponseHeaders:function(){return C?w:null},setRequestHeader:function(t,e){return null==C&&(t=L[t.toLowerCase()]=L[t.toLowerCase()]||t,F[t]=e),this},overrideMimeType:function(t){return null==C&&(P.mimeType=t),this},statusCode:function(t){var e;if(t)if(C)B.always(t[B.status]);else for(e in t)I[e]=[I[e],t[e]];return this},abort:function(t){var e=t||N;return b&&b.abort(e),z(0,e),this}};if(O.promise(B),P.url=((i||P.url||r.href)+\"\").replace(d,r.protocol+\"//\"),P.type=v.method||v.type||P.method||P.type,P.dataTypes=(P.dataType||\"*\").toLowerCase().match(n)||[\"\"],null==P.crossDomain){E=e.createElement(\"a\");try{E.href=P.url,E.href=E.href,P.crossDomain=g.protocol+\"//\"+g.host!=E.protocol+\"//\"+E.host}catch(t){P.crossDomain=!0}}if(P.data&&P.processData&&\"string\"!=typeof P.data&&(P.data=t.param(P.data,P.traditional)),y(f,P,v,B),C)return B;for(_ in(A=t.event&&P.global)&&0==t.active++&&t.event.trigger(\"ajaxStart\"),P.type=P.type.toUpperCase(),P.hasContent=!c.test(P.type),x=P.url.replace(l,\"\"),P.hasContent?P.data&&P.processData&&0===(P.contentType||\"\").indexOf(\"application/x-www-form-urlencoded\")&&(P.data=P.data.replace(o,\"+\")):(k=P.url.slice(x.length),P.data&&(P.processData||\"string\"==typeof P.data)&&(x+=(a.test(x)?\"&\":\"?\")+P.data,delete P.data),!1===P.cache&&(x=x.replace(h,\"$1\"),k=(a.test(x)?\"&\":\"?\")+\"_=\"+s.guid+++k),P.url=x+k),P.ifModified&&(t.lastModified[x]&&B.setRequestHeader(\"If-Modified-Since\",t.lastModified[x]),t.etag[x]&&B.setRequestHeader(\"If-None-Match\",t.etag[x])),(P.data&&P.hasContent&&!1!==P.contentType||v.contentType)&&B.setRequestHeader(\"Content-Type\",P.contentType),B.setRequestHeader(\"Accept\",P.dataTypes[0]&&P.accepts[P.dataTypes[0]]?P.accepts[P.dataTypes[0]]+(\"*\"!==P.dataTypes[0]?\", \"+m+\"; q=0.01\":\"\"):P.accepts[\"*\"]),P.headers)B.setRequestHeader(_,P.headers[_]);if(P.beforeSend&&(!1===P.beforeSend.call(M,B,P)||C))return B.abort();if(N=\"abort\",R.add(P.complete),B.done(P.success),B.fail(P.error),b=y(p,P,v,B)){if(B.readyState=1,A&&D.trigger(\"ajaxSend\",[B,P]),C)return B;P.async&&P.timeout>0&&(S=window.setTimeout((function(){B.abort(\"timeout\")}),P.timeout));try{C=!1,b.send(F,z)}catch(t){if(C)throw t;z(-1,t)}}else z(-1,\"No Transport\");function z(e,i,n,r){var s,a,o,l,h,u=i;C||(C=!0,S&&window.clearTimeout(S),b=void 0,w=r||\"\",B.readyState=e>0?4:0,s=e>=200&&e<300||304===e,n&&(l=function(t,e,i){for(var n,r,s,a,o=t.contents,l=t.dataTypes;\"*\"===l[0];)l.shift(),void 0===n&&(n=t.mimeType||e.getResponseHeader(\"Content-Type\"));if(n)for(r in o)if(o[r]&&o[r].test(n)){l.unshift(r);break}if(l[0]in i)s=l[0];else{for(r in i){if(!l[0]||t.converters[r+\" \"+l[0]]){s=r;break}a||(a=r)}s=s||a}if(s)return s!==l[0]&&l.unshift(s),i[s]}(P,B,n)),!s&&t.inArray(\"script\",P.dataTypes)>-1&&t.inArray(\"json\",P.dataTypes)<0&&(P.converters[\"text script\"]=function(){}),l=function(t,e,i,n){var r,s,a,o,l,h={},u=t.dataTypes.slice();if(u[1])for(a in t.converters)h[a.toLowerCase()]=t.converters[a];for(s=u.shift();s;)if(t.responseFields[s]&&(i[t.responseFields[s]]=e),!l&&n&&t.dataFilter&&(e=t.dataFilter(e,t.dataType)),l=s,s=u.shift())if(\"*\"===s)s=l;else if(\"*\"!==l&&l!==s){if(!(a=h[l+\" \"+s]||h[\"* \"+s]))for(r in h)if((o=r.split(\" \"))[1]===s&&(a=h[l+\" \"+o[0]]||h[\"* \"+o[0]])){!0===a?a=h[r]:!0!==h[r]&&(s=o[0],u.unshift(o[1]));break}if(!0!==a)if(a&&t.throws)e=a(e);else try{e=a(e)}catch(t){return{state:\"parsererror\",error:a?t:\"No conversion from \"+l+\" to \"+s}}}return{state:\"success\",data:e}}(P,l,B,s),s?(P.ifModified&&((h=B.getResponseHeader(\"Last-Modified\"))&&(t.lastModified[x]=h),(h=B.getResponseHeader(\"etag\"))&&(t.etag[x]=h)),204===e||\"HEAD\"===P.type?u=\"nocontent\":304===e?u=\"notmodified\":(u=l.state,a=l.data,s=!(o=l.error))):(o=u,!e&&u||(u=\"error\",e<0&&(e=0))),B.status=e,B.statusText=(i||u)+\"\",s?O.resolveWith(M,[a,u,B]):O.rejectWith(M,[B,u,o]),B.statusCode(I),I=void 0,A&&D.trigger(s?\"ajaxSuccess\":\"ajaxError\",[B,P,s?a:o]),R.fireWith(M,[B,u]),A&&(D.trigger(\"ajaxComplete\",[B,P]),--t.active||t.event.trigger(\"ajaxStop\")))}return B},getJSON:function(e,i,n){return t.get(e,i,n,\"json\")},getScript:function(e,i){return t.get(e,void 0,i,\"script\")}}),t.each([\"get\",\"post\"],(function(e,n){t[n]=function(e,r,s,a){return i(r)&&(a=a||s,s=r,r=void 0),t.ajax(t.extend({url:e,type:n,dataType:a,data:r,success:s},t.isPlainObject(e)&&e))}})),t.ajaxPrefilter((function(t){var e;for(e in t.headers)\"content-type\"===e.toLowerCase()&&(t.contentType=t.headers[e]||\"\")})),t}.apply(e,n))||(t.exports=r)},\"06pk\":function(t,e,i){var n,r;n=[i(\"mEBU\"),i(\"hFd1\"),i(\"06dU\")],void 0===(r=function(t,e){\"use strict\";t.ajaxSettings.xhr=function(){try{return new window.XMLHttpRequest}catch(t){}};var i={0:200,1223:204},n=t.ajaxSettings.xhr();e.cors=!!n&&\"withCredentials\"in n,e.ajax=n=!!n,t.ajaxTransport((function(t){var r,s;if(e.cors||n&&!t.crossDomain)return{send:function(e,n){var a,o=t.xhr();if(o.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(a in t.xhrFields)o[a]=t.xhrFields[a];for(a in t.mimeType&&o.overrideMimeType&&o.overrideMimeType(t.mimeType),t.crossDomain||e[\"X-Requested-With\"]||(e[\"X-Requested-With\"]=\"XMLHttpRequest\"),e)o.setRequestHeader(a,e[a]);r=function(t){return function(){r&&(r=s=o.onload=o.onerror=o.onabort=o.ontimeout=o.onreadystatechange=null,\"abort\"===t?o.abort():\"error\"===t?\"number\"!=typeof o.status?n(0,\"error\"):n(o.status,o.statusText):n(i[o.status]||o.status,o.statusText,\"text\"!==(o.responseType||\"text\")||\"string\"!=typeof o.responseText?{binary:o.response}:{text:o.responseText},o.getAllResponseHeaders()))}},o.onload=r(),s=o.onerror=o.ontimeout=r(\"error\"),void 0!==o.onabort?o.onabort=s:o.onreadystatechange=function(){4===o.readyState&&window.setTimeout((function(){r&&s()}))},r=r(\"abort\");try{o.send(t.hasContent&&t.data||null)}catch(t){if(r)throw t}},abort:function(){r&&r()}}}))}.apply(e,n))||(t.exports=r)},\"082X\":function(t,e,i){var n,r;n=[i(\"Wwic\")],void 0===(r=function(t){\"use strict\";return new t}.apply(e,n))||(t.exports=r)},\"0Hog\":function(t,e,i){\"use strict\";i.d(e,\"a\",(function(){return r}));var n=i(\"Rsh4\");function r(t,e,i){let r=`The '${t}' ${e} is deprecated.`;i&&(r+=` Please use '${i}' instead.`),n.a.j.warn(r)}},\"0VMG\":function(t,e,i){var n,r;n=[i(\"mEBU\"),i(\"082X\"),i(\"G5n7\"),i(\"hX6M\")],void 0===(r=function(t,e){\"use strict\";return t.extend({queue:function(i,n,r){var s;if(i)return n=(n||\"fx\")+\"queue\",s=e.get(i,n),r&&(!s||Array.isArray(r)?s=e.access(i,n,t.makeArray(r)):s.push(r)),s||[]},dequeue:function(e,i){i=i||\"fx\";var n=t.queue(e,i),r=n.length,s=n.shift(),a=t._queueHooks(e,i);\"inprogress\"===s&&(s=n.shift(),r--),s&&(\"fx\"===i&&n.unshift(\"inprogress\"),delete a.stop,s.call(e,(function(){t.dequeue(e,i)}),a)),!r&&a&&a.empty.fire()},_queueHooks:function(i,n){var r=n+\"queueHooks\";return e.get(i,r)||e.access(i,r,{empty:t.Callbacks(\"once memory\").add((function(){e.remove(i,[n+\"queue\",r])}))})}}),t.fn.extend({queue:function(e,i){var n=2;return\"string\"!=typeof e&&(i=e,e=\"fx\",n--),arguments.length12||e<1||i>31||i<1?(r.a.j.error(\"Cannot set date of birth - parameters should comprise a valid date e.g. setDateOfBirth(1776, 7, 4);\"),!1):this.ft.nu(\"dob\",`${t}-${e}-${i}`))}setCountry(t){return!!Object(s.j)(t,\"set country\",\"the country\",!0)&&this.ft.nu(\"country\",t)}setHomeCity(t){return!!Object(s.j)(t,\"set home city\",\"the homeCity\",!0)&&this.ft.nu(\"home_city\",t)}setLanguage(t){return!!Object(s.j)(t,\"set language\",\"the language\",!0)&&this.ft.nu(\"language\",t)}setEmailNotificationSubscriptionType(t){return!!Object(n.g)(l.NotificationSubscriptionTypes,t,`Email notification setting \"${t}\" is not a valid subscription type.`,\"User.NotificationSubscriptionTypes\")&&this.ft.nu(\"email_subscribe\",t)}setPushNotificationSubscriptionType(t){return!!Object(n.g)(l.NotificationSubscriptionTypes,t,`Push notification setting \"${t}\" is not a valid subscription type.`,\"User.NotificationSubscriptionTypes\")&&this.ft.nu(\"push_subscribe\",t)}setPhoneNumber(t){return!!Object(s.j)(t,\"set phone number\",\"the phoneNumber\",!0)&&(null===t||t.match(l.Ln)?this.ft.nu(\"phone\",t):(r.a.j.error(`Cannot set phone number - \"${t}\" did not pass validation.`),!1))}setLastKnownLocation(t,e,i,n,s){return null==t||null==e?(r.a.j.error(\"Cannot set last-known location - latitude and longitude are required.\"),!1):(t=parseFloat(t.toString()),e=parseFloat(e.toString()),null!=i&&(i=parseFloat(i.toString())),null!=n&&(n=parseFloat(n.toString())),null!=s&&(s=parseFloat(s.toString())),isNaN(t)||isNaN(e)||null!=i&&isNaN(i)||null!=n&&isNaN(n)||null!=s&&isNaN(s)?(r.a.j.error(\"Cannot set last-known location - all supplied parameters must be numeric.\"),!1):t>90||t<-90||e>180||e<-180?(r.a.j.error(\"Cannot set last-known location - latitude and longitude are bounded by ±90 and ±180 respectively.\"),!1):null!=i&&i<0||null!=s&&s<0?(r.a.j.error(\"Cannot set last-known location - accuracy and altitudeAccuracy may not be negative.\"),!1):this.ki.setLastKnownLocation(this.ft.getUserId(),t,e,n,i,s).O)}setCustomUserAttribute(t,e,i){if(!Object(s.f)(t))return!1;const l=e=>{const[i]=Object(s.g)(e,a.l,\"attribute value\",`set custom user attribute \"${t}\"`,\"custom user attribute\");return i};if(Object(n.b)(e)){const[i,n]=Object(s.e)(t,e);if(!i&&!n&&0!==e.length)return!1;if(i||0===e.length)return this.ki.Gn(r.a.q.Hn,t,e).O;for(const t of e)if(!l(t))return!1}else if(Object(n.e)(e)){if(!l(e))return!1;if(i)return this.ki.Gn(r.a.q.Kn,t,e).O}else{if(void 0===e||!Object(s.i)(e))return!1;if(Object(n.c)(e)&&(e=Object(o.h)(e)),\"string\"==typeof e&&!Object(s.h)(e,`set custom user attribute \"${t}\"`,\"the element in the given array\"))return!1}return this.ft.setCustomUserAttribute(t,e)}addToCustomAttributeArray(t,e){return!!Object(s.h)(t,\"add to custom user attribute array\",\"the given key\")&&!(null!=e&&!Object(s.h)(e,\"add to custom user attribute array\",\"the given value\"))&&this.ki.Gn(r.a.q.Jn,t,e).O}removeFromCustomAttributeArray(t,e){return!!Object(s.h)(t,\"remove from custom user attribute array\",\"the given key\")&&!(null!=e&&!Object(s.h)(e,\"remove from custom user attribute array\",\"the given value\"))&&this.ki.Gn(r.a.q.Qn,t,e).O}incrementCustomUserAttribute(t,e){if(!Object(s.h)(t,\"increment custom user attribute\",\"the given key\"))return!1;null==e&&(e=1);const i=parseInt(e.toString());return isNaN(i)||i!==parseFloat(e.toString())?(r.a.j.error(`Cannot increment custom user attribute because the given incrementValue \"${e}\" is not an integer.`),!1):this.ki.Gn(r.a.q.Xn,t,i).O}setCustomLocationAttribute(t,e,i){return!!Object(s.h)(t,\"set custom location attribute\",\"the given key\")&&((null!==e||null!==i)&&(e=null!=e?parseFloat(e.toString()):null,i=null!=i?parseFloat(i.toString()):null,null==e&&null!=i||null!=e&&null==i||null!=e&&(isNaN(e)||e>90||e<-90)||null!=i&&(isNaN(i)||i>180||i<-180))?(r.a.j.error(\"Received invalid values for latitude and/or longitude. Latitude and longitude are bounded by ±90 and ±180 respectively, or must both be null for removal.\"),!1):this.ki.Zn(t,e,i).O)}addToSubscriptionGroup(t){return!Object(s.j)(t,\"add user to subscription group\",\"subscription group ID\",!1)||t.length<=0?(r.a.j.error(\"addToSubscriptionGroup requires a non-empty subscription group ID\"),!1):this.ki.au(t,l.du.SUBSCRIBED).O}removeFromSubscriptionGroup(t){return!Object(s.j)(t,\"remove user from subscription group\",\"subscription group ID\",!1)||t.length<=0?(r.a.j.error(\"removeFromSubscriptionGroup requires a non-empty subscription group ID\"),!1):this.ki.au(t,l.du.UNSUBSCRIBED).O}_n(t,e,i,n,r){this.ft._n(t,e,i,n,r),this.ki.pu()}Nn(t){this.ft.Nn(t)}}l.Genders={MALE:\"m\",FEMALE:\"f\",OTHER:\"o\",UNKNOWN:\"u\",NOT_APPLICABLE:\"n\",PREFER_NOT_TO_SAY:\"p\"},l.NotificationSubscriptionTypes={OPTED_IN:\"opted_in\",SUBSCRIBED:\"subscribed\",UNSUBSCRIBED:\"unsubscribed\"},l.Ln=/^[0-9 .\\\\(\\\\)\\\\+\\\\-]+$/,l.du={SUBSCRIBED:\"subscribed\",UNSUBSCRIBED:\"unsubscribed\"},l.bu=\"user_id\",l.lu=\"custom\",l.lr=997},\"12ai\":function(t,e,i){var n,r;n=[i(\"mEBU\"),i(\"3PRc\"),i(\"s44h\"),i(\"VK0Q\"),i(\"082X\"),i(\"MsD2\")],void 0===(r=function(t,e,i,n,r){\"use strict\";function s(t){return t.getAttribute&&t.getAttribute(\"class\")||\"\"}function a(t){return Array.isArray(t)?t:\"string\"==typeof t&&t.match(n)||[]}t.fn.extend({addClass:function(n){var r,o,l,h,u,c;return i(n)?this.each((function(e){t(this).addClass(n.call(this,e,s(this)))})):(r=a(n)).length?this.each((function(){if(l=s(this),o=1===this.nodeType&&\" \"+e(l)+\" \"){for(u=0;u-1;)o=o.replace(\" \"+h+\" \",\" \");c=e(o),l!==c&&this.setAttribute(\"class\",c)}})):this:this.attr(\"class\",\"\")},toggleClass:function(e,n){var o,l,h,u,c=typeof e,d=\"string\"===c||Array.isArray(e);return i(e)?this.each((function(i){t(this).toggleClass(e.call(this,i,s(this),n),n)})):\"boolean\"==typeof n&&d?n?this.addClass(e):this.removeClass(e):(o=a(e),this.each((function(){if(d)for(u=t(this),h=0;h-1)return!0;return!1}})}.apply(e,n))||(t.exports=r)},\"16XX\":function(t,e,i){var n;void 0===(n=function(){\"use strict\";return function(t){return null!=t&&t===t.window}}.call(e,i,e,t))||(t.exports=n)},\"1O+K\":function(t,e,i){(function(e){var i;i=()=>(()=>{var t={50792:t=>{\"use strict\";var e=Object.prototype.hasOwnProperty,i=\"~\";function n(){}function r(t,e,i){this.fn=t,this.context=e,this.once=i||!1}function s(t,e,n,s,a){if(\"function\"!=typeof n)throw new TypeError(\"The listener must be a function\");var o=new r(n,s||t,a),l=i?i+e:e;return t._events[l]?t._events[l].fn?t._events[l]=[t._events[l],o]:t._events[l].push(o):(t._events[l]=o,t._eventsCount++),t}function a(t,e){0==--t._eventsCount?t._events=new n:delete t._events[e]}function o(){this._events=new n,this._eventsCount=0}Object.create&&(n.prototype=Object.create(null),(new n).__proto__||(i=!1)),o.prototype.eventNames=function(){var t,n,r=[];if(0===this._eventsCount)return r;for(n in t=this._events)e.call(t,n)&&r.push(i?n.slice(1):n);return Object.getOwnPropertySymbols?r.concat(Object.getOwnPropertySymbols(t)):r},o.prototype.listeners=function(t){var e=i?i+t:t,n=this._events[e];if(!n)return[];if(n.fn)return[n.fn];for(var r=0,s=n.length,a=new Array(s);r{\n/**\n * @author samme\n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(38829);t.exports=function(t,e,i,r){for(var s=t[0],a=1;a{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(66979);t.exports=function(t,e,i,r,s){return n(t,\"angle\",e,i,r,s)}},60757:t=>{t.exports=function(t,e,i){for(var n=0;n{t.exports=function(t,e,i){void 0===i&&(i=0);for(var n=i;n{t.exports=function(t,e,i){void 0===i&&(i=0);for(var n=t.length-1;n>=i;n--){var r=t[n],s=!0;for(var a in e)r[a]!==e[a]&&(s=!1);if(s)return r}return null}},94420:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(11879),r=i(60461),s=i(95540),a=i(29747),o=new(i(41481))({sys:{queueDepthSort:a,events:{once:a}}},0,0,1,1).setOrigin(0,0);t.exports=function(t,e){void 0===e&&(e={});var i=e.hasOwnProperty(\"width\"),a=e.hasOwnProperty(\"height\"),l=s(e,\"width\",-1),h=s(e,\"height\",-1),u=s(e,\"cellWidth\",1),c=s(e,\"cellHeight\",u),d=s(e,\"position\",r.TOP_LEFT),f=s(e,\"x\",0),p=s(e,\"y\",0),m=0,g=0,v=l*u,y=h*c;o.setPosition(f,p),o.setSize(u,c);for(var b=0;b{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(66979);t.exports=function(t,e,i,r,s){return n(t,\"alpha\",e,i,r,s)}},67285:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(66979);t.exports=function(t,e,i,r,s){return n(t,\"x\",e,i,r,s)}},9074:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(66979);t.exports=function(t,e,i,r,s,a,o){return null==i&&(i=e),n(t,\"x\",e,r,a,o),n(t,\"y\",i,s,a,o)}},75222:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(66979);t.exports=function(t,e,i,r,s){return n(t,\"y\",e,i,r,s)}},22983:t=>{t.exports=function(t,e,i,n){void 0===i&&(i=0),void 0===n&&(n=6.28);for(var r=i,s=(n-i)/t.length,a=e.x,o=e.y,l=e.radius,h=0;h{t.exports=function(t,e,i,n){void 0===i&&(i=0),void 0===n&&(n=6.28);for(var r=i,s=(n-i)/t.length,a=e.width/2,o=e.height/2,l=0;l{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(15258),r=i(26708);t.exports=function(t,e,i){var s;s=i?r(e,i,t.length):n(e,t.length);for(var a=0;a{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(14649),r=i(86003),s=i(49498);t.exports=function(t,e,i){void 0===i&&(i=0);var a=n(e,!1,t.length);i>0?r(a,i):i<0&&s(a,Math.abs(i));for(var o=0;o{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(84993);t.exports=function(t,e,i){var r=n({x1:e.x1,y1:e.y1,x2:e.x2,y2:e.y2},i),s=n({x1:e.x2,y1:e.y2,x2:e.x3,y2:e.y3},i),a=n({x1:e.x3,y1:e.y3,x2:e.x1,y2:e.y1},i);r.pop(),s.pop(),a.pop();for(var o=(r=r.concat(s,a)).length/t.length,l=0,h=0;h{t.exports=function(t,e,i){for(var n=0;n{t.exports=function(t,e,i,n,r,s){var a;void 0===n&&(n=0),void 0===r&&(r=0),void 0===s&&(s=1);var o=0,l=t.length;if(1===s)for(a=r;a=0;a--)t[a][e]+=i+o*n,o++;return t}},43967:t=>{t.exports=function(t,e,i,n,r,s){var a;void 0===n&&(n=0),void 0===r&&(r=0),void 0===s&&(s=1);var o=0,l=t.length;if(1===s)for(a=r;a=0;a--)t[a][e]=i+o*n,o++;return t}},88926:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(28176);t.exports=function(t,e){for(var i=0;i{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(24820);t.exports=function(t,e){for(var i=0;i{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(65822);t.exports=function(t,e){for(var i=0;i{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(26597);t.exports=function(t,e){for(var i=0;i{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(90260);t.exports=function(t,e){for(var i=0;i{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(66979);t.exports=function(t,e,i,r,s){return n(t,\"rotation\",e,i,r,s)}},91051:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(1163),r=i(20339);t.exports=function(t,e,i){for(var s=e.x,a=e.y,o=0;o{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(1163);t.exports=function(t,e,i,r){var s=e.x,a=e.y;if(0===r)return t;for(var o=0;o{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(66979);t.exports=function(t,e,i,r,s){return n(t,\"scaleX\",e,i,r,s)}},94868:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(66979);t.exports=function(t,e,i,r,s,a,o){return null==i&&(i=e),n(t,\"scaleX\",e,r,a,o),n(t,\"scaleY\",i,s,a,o)}},95532:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(66979);t.exports=function(t,e,i,r,s){return n(t,\"scaleY\",e,i,r,s)}},8689:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(43967);t.exports=function(t,e,i,r,s){return n(t,\"alpha\",e,i,r,s)}},2645:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(43967);t.exports=function(t,e,i,r){return n(t,\"blendMode\",e,0,i,r)}},32372:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(43967);t.exports=function(t,e,i,r,s){return n(t,\"depth\",e,i,r,s)}},85373:t=>{t.exports=function(t,e,i){for(var n=0;n{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(43967);t.exports=function(t,e,i,r,s,a,o){return null==i&&(i=e),n(t,\"originX\",e,r,a,o),n(t,\"originY\",i,s,a,o),t.forEach((function(t){t.updateDisplayOrigin()})),t}},79939:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(43967);t.exports=function(t,e,i,r,s){return n(t,\"rotation\",e,i,r,s)}},2699:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(43967);t.exports=function(t,e,i,r,s,a,o){return null==i&&(i=e),n(t,\"scaleX\",e,r,a,o),n(t,\"scaleY\",i,s,a,o)}},98739:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(43967);t.exports=function(t,e,i,r,s){return n(t,\"scaleX\",e,i,r,s)}},98476:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(43967);t.exports=function(t,e,i,r,s){return n(t,\"scaleY\",e,i,r,s)}},6207:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(43967);t.exports=function(t,e,i,r,s,a,o){return null==i&&(i=e),n(t,\"scrollFactorX\",e,r,a,o),n(t,\"scrollFactorY\",i,s,a,o)}},6607:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(43967);t.exports=function(t,e,i,r,s){return n(t,\"scrollFactorX\",e,i,r,s)}},72248:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(43967);t.exports=function(t,e,i,r,s){return n(t,\"scrollFactorY\",e,i,r,s)}},14036:t=>{t.exports=function(t,e,i,n,r){for(var s=0;s{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(43967);t.exports=function(t,e,i,r){return n(t,\"visible\",e,0,i,r)}},77597:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(43967);t.exports=function(t,e,i,r,s){return n(t,\"x\",e,i,r,s)}},83194:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(43967);t.exports=function(t,e,i,r,s,a,o){return null==i&&(i=e),n(t,\"x\",e,r,a,o),n(t,\"y\",i,s,a,o)}},67678:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(43967);t.exports=function(t,e,i,r,s){return n(t,\"y\",e,i,r,s)}},35850:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(26099);t.exports=function(t,e,i,r,s){var a,o;void 0===r&&(r=0),void 0===s&&(s=new n);var l=t.length;if(1===l)a=t[0].x,o=t[0].y,t[0].x=e,t[0].y=i;else{var h=1,u=0;0===r&&(u=l-1,h=l-2),a=t[u].x,o=t[u].y,t[u].x=e,t[u].y=i;for(var c=0;c=l||-1===h)){var d=t[h],f=d.x,p=d.y;d.x=a,d.y=o,a=f,o=p,0===r?h--:h++}}return s.x=a,s.y=o,s}},8628:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(33680);t.exports=function(t){return n(t)}},21837:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(7602);t.exports=function(t,e,i,r,s){void 0===s&&(s=!1);var a,o=Math.abs(r-i)/t.length;if(s)for(a=0;a{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(54261);t.exports=function(t,e,i,r,s){void 0===s&&(s=!1);var a,o=Math.abs(r-i)/t.length;if(s)for(a=0;a{t.exports=function(t,e,i,n,r){if(void 0===r&&(r=!1),0===t.length)return t;if(1===t.length)return r?t[0][e]+=(n+i)/2:t[0][e]=(n+i)/2,t;var s,a=Math.abs(n-i)/(t.length-1);if(r)for(s=0;s{t.exports=function(t){for(var e=0;e{\n/**\n * @author Richard Davey \n * @author samme \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(15994);t.exports=function(t,e,i){void 0===i&&(i=0);for(var r=0;r{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports={AlignTo:i(11517),Angle:i(80318),Call:i(60757),GetFirst:i(69927),GetLast:i(32265),GridAlign:i(94420),IncAlpha:i(41721),IncX:i(67285),IncXY:i(9074),IncY:i(75222),PlaceOnCircle:i(22983),PlaceOnEllipse:i(95253),PlaceOnLine:i(88505),PlaceOnRectangle:i(41346),PlaceOnTriangle:i(11575),PlayAnimation:i(29953),PropertyValueInc:i(66979),PropertyValueSet:i(43967),RandomCircle:i(88926),RandomEllipse:i(33286),RandomLine:i(96e3),RandomRectangle:i(28789),RandomTriangle:i(97154),Rotate:i(20510),RotateAround:i(91051),RotateAroundDistance:i(76332),ScaleX:i(61619),ScaleXY:i(94868),ScaleY:i(95532),SetAlpha:i(8689),SetBlendMode:i(2645),SetDepth:i(32372),SetHitArea:i(85373),SetOrigin:i(81583),SetRotation:i(79939),SetScale:i(2699),SetScaleX:i(98739),SetScaleY:i(98476),SetScrollFactor:i(6207),SetScrollFactorX:i(6607),SetScrollFactorY:i(72248),SetTint:i(14036),SetVisible:i(50159),SetX:i(77597),SetXY:i(83194),SetY:i(67678),ShiftPosition:i(35850),Shuffle:i(8628),SmootherStep:i(21910),SmoothStep:i(21837),Spread:i(62054),ToggleVisible:i(79815),WrapInRectangle:i(39665)}},42099:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(45319),r=i(83419),s=i(74943),a=i(81957),o=i(41138),l=i(35154),h=i(90126),u=new r({initialize:function(t,e,i){this.manager=t,this.key=e,this.type=\"frame\",this.frames=this.getFrames(t.textureManager,l(i,\"frames\",[]),l(i,\"defaultTextureKey\",null),l(i,\"sortFrames\",!0)),this.frameRate=l(i,\"frameRate\",null),this.duration=l(i,\"duration\",null),this.msPerFrame,this.skipMissedFrames=l(i,\"skipMissedFrames\",!0),this.delay=l(i,\"delay\",0),this.repeat=l(i,\"repeat\",0),this.repeatDelay=l(i,\"repeatDelay\",0),this.yoyo=l(i,\"yoyo\",!1),this.showBeforeDelay=l(i,\"showBeforeDelay\",!1),this.showOnStart=l(i,\"showOnStart\",!1),this.hideOnComplete=l(i,\"hideOnComplete\",!1),this.randomFrame=l(i,\"randomFrame\",!1),this.paused=!1,this.calculateDuration(this,this.getTotalFrames(),this.duration,this.frameRate),this.manager.on&&(this.manager.on(s.PAUSE_ALL,this.pause,this),this.manager.on(s.RESUME_ALL,this.resume,this))},getTotalFrames:function(){return this.frames.length},calculateDuration:function(t,e,i,n){null===i&&null===n?(t.frameRate=24,t.duration=24/e*1e3):i&&null===n?(t.duration=i,t.frameRate=e/(i/1e3)):(t.frameRate=n,t.duration=e/n*1e3),t.msPerFrame=1e3/t.frameRate},addFrame:function(t){return this.addFrameAt(this.frames.length,t)},addFrameAt:function(t,e){var i=this.getFrames(this.manager.textureManager,e);if(i.length>0){if(0===t)this.frames=i.concat(this.frames);else if(t===this.frames.length)this.frames=this.frames.concat(i);else{var n=this.frames.slice(0,t),r=this.frames.slice(t);this.frames=n.concat(i,r)}this.updateFrameSequence()}return this},checkFrame:function(t){return t>=0&&t0){s.isLast=!0,s.nextFrame=c[0],c[0].prevFrame=s;var y=1/(c.length-1);for(a=0;a0?t.inReverse&&t.forward?t.forward=!1:this.repeatAnimation(t):t.complete():this.updateAndGetNextTick(t,e.nextFrame)},handleYoyoFrame:function(t,e){if(e||(e=!1),t.inReverse===!e&&t.repeatCounter>0)return(0===t.repeatDelay||t.pendingRepeat)&&(t.forward=e),void this.repeatAnimation(t);if(t.inReverse===e||0!==t.repeatCounter){t.forward=e;var i=e?t.currentFrame.nextFrame:t.currentFrame.prevFrame;this.updateAndGetNextTick(t,i)}else t.complete()},getLastFrame:function(){return this.frames[this.frames.length-1]},previousFrame:function(t){var e=t.currentFrame;e.isFirst?t.yoyo?this.handleYoyoFrame(t,!0):t.repeatCounter>0?(t.inReverse&&!t.forward||(t.forward=!0),this.repeatAnimation(t)):t.complete():this.updateAndGetNextTick(t,e.prevFrame)},updateAndGetNextTick:function(t,e){t.setCurrentFrame(e),this.getNextTick(t)},removeFrame:function(t){var e=this.frames.indexOf(t);return-1!==e&&this.removeFrameAt(e),this},removeFrameAt:function(t){return this.frames.splice(t,1),this.updateFrameSequence(),this},repeatAnimation:function(t){if(2===t._pendingStop){if(0===t._pendingStopValue)return t.stop();t._pendingStopValue--}t.repeatDelay>0&&!t.pendingRepeat?(t.pendingRepeat=!0,t.accumulator-=t.nextTick,t.nextTick+=t.repeatDelay):(t.repeatCounter--,t.forward?t.setCurrentFrame(t.currentFrame.nextFrame):t.setCurrentFrame(t.currentFrame.prevFrame),t.isPlaying&&(this.getNextTick(t),t.handleRepeat()))},toJSON:function(){var t={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(e){t.frames.push(e.toJSON())})),t},updateFrameSequence:function(){for(var t,e=this.frames.length,i=1/(e-1),n=0;n1?(t.isLast=!0,t.prevFrame=this.frames[e-2],t.nextFrame=this.frames[0]):e>1&&(t.prevFrame=this.frames[n-1],t.nextFrame=this.frames[n+1]);return this},pause:function(){return this.paused=!0,this},resume:function(){return this.paused=!1,this},destroy:function(){this.manager.off&&(this.manager.off(s.PAUSE_ALL,this.pause,this),this.manager.off(s.RESUME_ALL,this.resume,this)),this.manager.remove(this.key);for(var t=0;t{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=new(i(83419))({initialize:function(t,e,i,n,r){void 0===r&&(r=!1),this.textureKey=t,this.textureFrame=e,this.index=i,this.frame=n,this.isFirst=!1,this.isLast=!1,this.prevFrame=null,this.nextFrame=null,this.duration=0,this.progress=0,this.isKeyFrame=r},toJSON:function(){return{key:this.textureKey,frame:this.textureFrame,duration:this.duration,keyframe:this.isKeyFrame}},destroy:function(){this.frame=void 0}});t.exports=n},60848:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(42099),r=i(83419),s=i(90330),a=i(50792),o=i(74943),l=i(8443),h=i(95540),u=i(35154),c=i(36383),d=i(20283),f=i(41836),p=new r({Extends:a,initialize:function(t){a.call(this),this.game=t,this.textureManager=null,this.globalTimeScale=1,this.anims=new s,this.mixes=new s,this.paused=!1,this.name=\"AnimationManager\",t.events.once(l.BOOT,this.boot,this)},boot:function(){this.textureManager=this.game.textures,this.game.events.once(l.DESTROY,this.destroy,this)},addMix:function(t,e,i){var n=this.anims,r=this.mixes,s=\"string\"==typeof t?t:t.key,a=\"string\"==typeof e?e:e.key;if(n.has(s)&&n.has(a)){var o=r.get(s);o||(o={}),o[a]=i,r.set(s,o)}return this},removeMix:function(t,e){var i=this.mixes,n=\"string\"==typeof t?t:t.key,r=i.get(n);if(r)if(e){var s=\"string\"==typeof e?e:e.key;r.hasOwnProperty(s)&&delete r[s]}else e||i.delete(n);return this},getMix:function(t,e){var i=this.mixes,n=\"string\"==typeof t?t:t.key,r=\"string\"==typeof e?e:e.key,s=i.get(n);return s&&s.hasOwnProperty(r)?s[r]:0},add:function(t,e){return this.anims.has(t)?(console.warn(\"Animation key exists: \"+t),this):(e.key=t,this.anims.set(t,e),this.emit(o.ADD_ANIMATION,t,e),this)},exists:function(t){return this.anims.has(t)},createFromAseprite:function(t,e,i){var n=[],r=this.game.cache.json.get(t);if(!r)return console.warn(\"No Aseprite data found for: \"+t),n;var s=this,a=u(r,\"meta\",null),o=u(r,\"frames\",null);return a&&o&&u(a,\"frameTags\",[]).forEach((function(r){var a=[],l=h(r,\"name\",null),u=h(r,\"from\",0),d=h(r,\"to\",0),f=h(r,\"direction\",\"forward\");if(l&&(!e||e&&e.indexOf(l)>-1)){for(var p=0,m=u;m<=d;m++){var g=m.toString(),v=o[g];if(v){var y=h(v,\"duration\",c.MAX_SAFE_INTEGER);a.push({key:t,frame:g,duration:y}),p+=y}}\"reverse\"===f&&(a=a.reverse());var b,x={key:l,frames:a,duration:p,yoyo:\"pingpong\"===f};i?i.anims&&(b=i.anims.create(x)):b=s.create(x),b&&n.push(b)}})),n},create:function(t){var e=t.key,i=!1;return e&&((i=this.get(e))?console.warn(\"AnimationManager key already exists: \"+e):(i=new n(this,e,t),this.anims.set(e,i),this.emit(o.ADD_ANIMATION,e,i))),i},fromJSON:function(t,e){void 0===e&&(e=!1),e&&this.anims.clear(),\"string\"==typeof t&&(t=JSON.parse(t));var i=[];if(t.hasOwnProperty(\"anims\")&&Array.isArray(t.anims)){for(var n=0;n{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(42099),r=i(30976),s=i(83419),a=i(90330),o=i(74943),l=i(95540),h=new s({initialize:function(t){this.parent=t,this.animationManager=t.scene.sys.anims,this.animationManager.on(o.REMOVE_ANIMATION,this.globalRemove,this),this.textureManager=this.animationManager.textureManager,this.anims=null,this.isPlaying=!1,this.hasStarted=!1,this.currentAnim=null,this.currentFrame=null,this.nextAnim=null,this.nextAnimsQueue=[],this.timeScale=1,this.frameRate=0,this.duration=0,this.msPerFrame=0,this.skipMissedFrames=!0,this.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(t){var e=this.parent;if(void 0===t)return this.nextAnimsQueue.length=0,this.nextAnim=null,e;Array.isArray(t)||(t=[t]);for(var i=0;is&&(h=0),this.randomFrame&&(h=r(0,s-1));var u=n.frames[h];0!==h||this.forward||(u=n.getLastFrame()),this.currentFrame=u}else console.warn(\"Missing animation: \"+i);return this.parent},pause:function(t){return this._paused||(this._paused=!0,this._wasPlaying=this.isPlaying,this.isPlaying=!1),void 0!==t&&this.setCurrentFrame(t),this.parent},resume:function(t){return this._paused&&(this._paused=!1,this.isPlaying=this._wasPlaying),void 0!==t&&this.setCurrentFrame(t),this.parent},playAfterDelay:function(t,e){if(this.isPlaying){var i=this.nextAnim,n=this.nextAnimsQueue;i&&n.unshift(i),this.nextAnim=t,this._pendingStop=1,this._pendingStopValue=e}else this.delayCounter=e,this.play(t,!0);return this.parent},playAfterRepeat:function(t,e){if(void 0===e&&(e=1),this.isPlaying){var i=this.nextAnim,n=this.nextAnimsQueue;i&&n.unshift(i),-1!==this.repeatCounter&&e>this.repeatCounter&&(e=this.repeatCounter),this.nextAnim=t,this._pendingStop=2,this._pendingStopValue=e}else this.play(t);return this.parent},play:function(t,e){void 0===e&&(e=!1);var i=this.currentAnim,n=this.parent,r=\"string\"==typeof t?t:t.key;if(e&&this.isPlaying&&i.key===r)return n;if(i&&this.isPlaying){var s=this.animationManager.getMix(i.key,t);if(s>0)return this.playAfterDelay(t,s)}return this.forward=!0,this.inReverse=!1,this._paused=!1,this._wasPlaying=!0,this.startAnimation(t)},playReverse:function(t,e){void 0===e&&(e=!1);var i=\"string\"==typeof t?t:t.key;return e&&this.isPlaying&&this.currentAnim.key===i?this.parent:(this.forward=!1,this.inReverse=!0,this._paused=!1,this._wasPlaying=!0,this.startAnimation(t))},startAnimation:function(t){this.load(t);var e=this.currentAnim,i=this.parent;return e?(this.repeatCounter=-1===this.repeat?Number.MAX_VALUE:this.repeat,e.getFirstTick(this),this.isPlaying=!0,this.pendingRepeat=!1,this.hasStarted=!1,this._pendingStop=0,this._pendingStopValue=0,this._paused=!1,this.delayCounter+=this.delay,0===this.delayCounter?this.handleStart():this.showBeforeDelay&&this.setCurrentFrame(this.currentFrame),i):i},handleStart:function(){this.showOnStart&&this.parent.setVisible(!0),this.setCurrentFrame(this.currentFrame),this.hasStarted=!0,this.emitEvents(o.ANIMATION_START)},handleRepeat:function(){this.pendingRepeat=!1,this.emitEvents(o.ANIMATION_REPEAT)},handleStop:function(){this._pendingStop=0,this.isPlaying=!1,this.emitEvents(o.ANIMATION_STOP)},handleComplete:function(){this._pendingStop=0,this.isPlaying=!1,this.hideOnComplete&&this.parent.setVisible(!1),this.emitEvents(o.ANIMATION_COMPLETE,o.ANIMATION_COMPLETE_KEY)},emitEvents:function(t,e){var i=this.currentAnim;if(i){var n=this.currentFrame,r=this.parent,s=n.textureFrame;r.emit(t,i,n,r,s),e&&r.emit(e+i.key,i,n,r,s)}},reverse:function(){return this.isPlaying&&(this.inReverse=!this.inReverse,this.forward=!this.forward),this.parent},getProgress:function(){var t=this.currentFrame;if(!t)return 0;var e=t.progress;return this.inReverse&&(e*=-1),e},setProgress:function(t){return this.forward||(t=1-t),this.setCurrentFrame(this.currentAnim.getFrameByProgress(t)),this.parent},setRepeat:function(t){return this.repeatCounter=-1===t?Number.MAX_VALUE:t,this.parent},globalRemove:function(t,e){void 0===e&&(e=this.currentAnim),this.isPlaying&&e.key===this.currentAnim.key&&(this.stop(),this.setCurrentFrame(this.currentAnim.frames[0]))},restart:function(t,e){void 0===t&&(t=!1),void 0===e&&(e=!1);var i=this.currentAnim,n=this.parent;return i?(e&&(this.repeatCounter=-1===this.repeat?Number.MAX_VALUE:this.repeat),i.getFirstTick(this),this.emitEvents(o.ANIMATION_RESTART),this.isPlaying=!0,this.pendingRepeat=!1,this.hasStarted=!t,this._pendingStop=0,this._pendingStopValue=0,this._paused=!1,this.setCurrentFrame(i.frames[0]),this.parent):n},complete:function(){if(this._pendingStop=0,this.isPlaying=!1,this.currentAnim&&this.handleComplete(),this.nextAnim){var t=this.nextAnim;this.nextAnim=this.nextAnimsQueue.length>0?this.nextAnimsQueue.shift():null,this.play(t)}return this.parent},stop:function(){if(this._pendingStop=0,this.isPlaying=!1,this.delayCounter=0,this.currentAnim&&this.handleStop(),this.nextAnim){var t=this.nextAnim;this.nextAnim=this.nextAnimsQueue.shift(),this.play(t)}return this.parent},stopAfterDelay:function(t){return this._pendingStop=1,this._pendingStopValue=t,this.parent},stopAfterRepeat:function(t){return void 0===t&&(t=1),-1!==this.repeatCounter&&t>this.repeatCounter&&(t=this.repeatCounter),this._pendingStop=2,this._pendingStopValue=t,this.parent},stopOnFrame:function(t){return this._pendingStop=3,this._pendingStopValue=t,this.parent},getTotalFrames:function(){return this.currentAnim?this.currentAnim.getTotalFrames():0},update:function(t,e){var i=this.currentAnim;if(this.isPlaying&&i&&!i.paused){if(this.accumulator+=e*this.timeScale*this.animationManager.globalTimeScale,1===this._pendingStop&&(this._pendingStopValue-=e,this._pendingStopValue<=0))return this.stop();if(this.hasStarted){if(this.accumulator>=this.nextTick&&(this.forward?i.nextFrame(this):i.previousFrame(this),this.isPlaying&&0===this._pendingStop&&this.skipMissedFrames&&this.accumulator>this.nextTick)){var n=0;do{this.forward?i.nextFrame(this):i.previousFrame(this),n++}while(this.isPlaying&&this.accumulator>this.nextTick&&n<60)}}else this.accumulator>=this.delayCounter&&(this.accumulator-=this.delayCounter,this.handleStart())}},setCurrentFrame:function(t){var e=this.parent;return this.currentFrame=t,e.texture=t.frame.texture,e.frame=t.frame,e.isCropped&&e.frame.updateCropUVs(e._crop,e.flipX,e.flipY),t.setAlpha&&(e.alpha=t.alpha),e.setSizeToFrame(),e._originComponent&&(t.frame.customPivot?e.setOrigin(t.frame.pivotX,t.frame.pivotY):e.updateDisplayOrigin()),this.isPlaying&&this.hasStarted&&(this.emitEvents(o.ANIMATION_UPDATE),3===this._pendingStop&&this._pendingStopValue===t&&this.stop()),e},nextFrame:function(){return this.currentAnim&&this.currentAnim.nextFrame(this),this.parent},previousFrame:function(){return this.currentAnim&&this.currentAnim.previousFrame(this),this.parent},get:function(t){return this.anims?this.anims.get(t):null},exists:function(t){return!!this.anims&&this.anims.has(t)},create:function(t){var e=t.key,i=!1;return e&&((i=this.get(e))?console.warn(\"Animation key already exists: \"+e):(i=new n(this,e,t),this.anims||(this.anims=new a),this.anims.set(e,i))),i},createFromAseprite:function(t,e){return this.animationManager.createFromAseprite(t,e,this.parent)},generateFrameNames:function(t,e){return this.animationManager.generateFrameNames(t,e)},generateFrameNumbers:function(t,e){return this.animationManager.generateFrameNumbers(t,e)},remove:function(t){var e=this.get(t);return e&&(this.currentAnim===e&&this.stop(),this.anims.delete(t)),e},destroy:function(){this.animationManager.off(o.REMOVE_ANIMATION,this.globalRemove,this),this.anims&&this.anims.clear(),this.animationManager=null,this.parent=null,this.nextAnim=null,this.nextAnimsQueue.length=0,this.currentAnim=null,this.currentFrame=null},isPaused:{get:function(){return this._paused}}});t.exports=h},57090:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports=\"add\"},25312:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports=\"animationcomplete\"},89580:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports=\"animationcomplete-\"},52860:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports=\"animationrepeat\"},63850:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports=\"animationrestart\"},99085:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports=\"animationstart\"},28087:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports=\"animationstop\"},1794:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports=\"animationupdate\"},52562:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports=\"pauseall\"},57953:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports=\"remove\"},68339:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports=\"resumeall\"},74943:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports={ADD_ANIMATION:i(57090),ANIMATION_COMPLETE:i(25312),ANIMATION_COMPLETE_KEY:i(89580),ANIMATION_REPEAT:i(52860),ANIMATION_RESTART:i(63850),ANIMATION_START:i(99085),ANIMATION_STOP:i(28087),ANIMATION_UPDATE:i(1794),PAUSE_ALL:i(52562),REMOVE_ANIMATION:i(57953),RESUME_ALL:i(68339)}},60421:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports={Animation:i(42099),AnimationFrame:i(41138),AnimationManager:i(60848),AnimationState:i(9674),Events:i(74943)}},2161:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(83419),r=i(90330),s=i(50792),a=i(24736),o=new n({initialize:function(){this.entries=new r,this.events=new s},add:function(t,e){return this.entries.set(t,e),this.events.emit(a.ADD,this,t,e),this},has:function(t){return this.entries.has(t)},exists:function(t){return this.entries.has(t)},get:function(t){return this.entries.get(t)},remove:function(t){var e=this.get(t);return e&&(this.entries.delete(t),this.events.emit(a.REMOVE,this,t,e.data)),this},getKeys:function(){return this.entries.keys()},destroy:function(){this.entries.clear(),this.events.removeAllListeners(),this.entries=null,this.events=null}});t.exports=o},24047:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(2161),r=i(83419),s=i(8443),a=new r({initialize:function(t){this.game=t,this.binary=new n,this.bitmapFont=new n,this.json=new n,this.physics=new n,this.shader=new n,this.audio=new n,this.video=new n,this.text=new n,this.html=new n,this.obj=new n,this.tilemap=new n,this.xml=new n,this.custom={},this.game.events.once(s.DESTROY,this.destroy,this)},addCustom:function(t){return this.custom.hasOwnProperty(t)||(this.custom[t]=new n),this.custom[t]},destroy:function(){for(var t=[\"binary\",\"bitmapFont\",\"json\",\"physics\",\"shader\",\"audio\",\"video\",\"text\",\"html\",\"obj\",\"tilemap\",\"xml\"],e=0;e{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports=\"add\"},59261:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports=\"remove\"},24736:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports={ADD:i(51464),REMOVE:i(59261)}},83388:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports={BaseCache:i(2161),CacheManager:i(24047),Events:i(24736)}},71911:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(83419),r=i(31401),s=i(39506),a=i(50792),o=i(19715),l=i(87841),h=i(61340),u=i(80333),c=i(26099),d=new n({Extends:a,Mixins:[r.AlphaSingle,r.Visible],initialize:function(t,e,i,n){void 0===t&&(t=0),void 0===e&&(e=0),void 0===i&&(i=0),void 0===n&&(n=0),a.call(this),this.scene,this.sceneManager,this.scaleManager,this.cameraManager,this.id=0,this.name=\"\",this.roundPixels=!1,this.useBounds=!1,this.worldView=new l,this.dirty=!0,this._x=t,this._y=e,this._width=i,this._height=n,this._bounds=new l,this._scrollX=0,this._scrollY=0,this._zoomX=1,this._zoomY=1,this._rotation=0,this.matrix=new h,this.transparent=!0,this.backgroundColor=u(\"rgba(0,0,0,0)\"),this.disableCull=!1,this.culledObjects=[],this.midPoint=new c(i/2,n/2),this.originX=.5,this.originY=.5,this._customViewport=!1,this.mask=null,this._maskCamera=null,this.renderList=[],this.isSceneCamera=!0,this.renderRoundPixels=!0},addToRenderList:function(t){this.renderList.push(t)},setOrigin:function(t,e){return void 0===t&&(t=.5),void 0===e&&(e=t),this.originX=t,this.originY=e,this},getScroll:function(t,e,i){void 0===i&&(i=new c);var n=.5*this.width,r=.5*this.height;return i.x=t-n,i.y=e-r,this.useBounds&&(i.x=this.clampX(i.x),i.y=this.clampY(i.y)),i},centerOnX:function(t){var e=.5*this.width;return this.midPoint.x=t,this.scrollX=t-e,this.useBounds&&(this.scrollX=this.clampX(this.scrollX)),this},centerOnY:function(t){var e=.5*this.height;return this.midPoint.y=t,this.scrollY=t-e,this.useBounds&&(this.scrollY=this.clampY(this.scrollY)),this},centerOn:function(t,e){return this.centerOnX(t),this.centerOnY(e),this},centerToBounds:function(){if(this.useBounds){var t=this._bounds,e=.5*this.width,i=.5*this.height;this.midPoint.set(t.centerX,t.centerY),this.scrollX=t.centerX-e,this.scrollY=t.centerY-i}return this},centerToSize:function(){return this.scrollX=.5*this.width,this.scrollY=.5*this.height,this},cull:function(t){if(this.disableCull)return t;var e=this.matrix.matrix,i=e[0],n=e[1],r=e[2],s=e[3],a=i*s-n*r;if(!a)return t;var o=e[4],l=e[5],h=this.scrollX,u=this.scrollY,c=this.width,d=this.height,f=this.y,p=f+d,m=this.x,g=m+c,v=this.culledObjects,y=t.length;a=1/a,v.length=0;for(var b=0;bm&&S*i+E*r+of&&S*n+E*s+lr&&(t=r),t},clampY:function(t){var e=this._bounds,i=this.displayHeight,n=e.y+(i-this.height)/2,r=Math.max(n,n+e.height-i);return tr&&(t=r),t},removeBounds:function(){return this.useBounds=!1,this.dirty=!0,this._bounds.setEmpty(),this},setAngle:function(t){return void 0===t&&(t=0),this.rotation=s(t),this},setBackgroundColor:function(t){return void 0===t&&(t=\"rgba(0,0,0,0)\"),this.backgroundColor=u(t),this.transparent=0===this.backgroundColor.alpha,this},setBounds:function(t,e,i,n,r){return void 0===r&&(r=!1),this._bounds.setTo(t,e,i,n),this.dirty=!0,this.useBounds=!0,r?this.centerToBounds():(this.scrollX=this.clampX(this.scrollX),this.scrollY=this.clampY(this.scrollY)),this},getBounds:function(t){void 0===t&&(t=new l);var e=this._bounds;return t.setTo(e.x,e.y,e.width,e.height),t},setName:function(t){return void 0===t&&(t=\"\"),this.name=t,this},setPosition:function(t,e){return void 0===e&&(e=t),this.x=t,this.y=e,this},setRotation:function(t){return void 0===t&&(t=0),this.rotation=t,this},setRoundPixels:function(t){return this.roundPixels=t,this},setScene:function(t,e){void 0===e&&(e=!0),this.scene&&this._customViewport&&this.sceneManager.customViewports--,this.scene=t,this.isSceneCamera=e;var i=t.sys;return this.sceneManager=i.game.scene,this.scaleManager=i.scale,this.cameraManager=i.cameras,this.updateSystem(),this},setScroll:function(t,e){return void 0===e&&(e=t),this.scrollX=t,this.scrollY=e,this},setSize:function(t,e){return void 0===e&&(e=t),this.width=t,this.height=e,this},setViewport:function(t,e,i,n){return this.x=t,this.y=e,this.width=i,this.height=n,this},setZoom:function(t,e){return void 0===t&&(t=1),void 0===e&&(e=t),0===t&&(t=.001),0===e&&(e=.001),this.zoomX=t,this.zoomY=e,this},setMask:function(t,e){return void 0===e&&(e=!0),this.mask=t,this._maskCamera=e?this.cameraManager.default:this,this},clearMask:function(t){return void 0===t&&(t=!1),t&&this.mask&&this.mask.destroy(),this.mask=null,this},toJSON:function(){var t={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&&(t.bounds={x:this._bounds.x,y:this._bounds.y,width:this._bounds.width,height:this._bounds.height}),t},update:function(){},setIsSceneCamera:function(t){return this.isSceneCamera=t,this},updateSystem:function(){if(this.scaleManager&&this.isSceneCamera){var t=0!==this._x||0!==this._y||this.scaleManager.width!==this._width||this.scaleManager.height!==this._height,e=this.sceneManager;t&&!this._customViewport?e.customViewports++:!t&&this._customViewport&&e.customViewports--,this.dirty=!0,this._customViewport=t}},destroy:function(){this.emit(o.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(t){this._x=t,this.updateSystem()}},y:{get:function(){return this._y},set:function(t){this._y=t,this.updateSystem()}},width:{get:function(){return this._width},set:function(t){this._width=t,this.updateSystem()}},height:{get:function(){return this._height},set:function(t){this._height=t,this.updateSystem()}},scrollX:{get:function(){return this._scrollX},set:function(t){t!==this._scrollX&&(this._scrollX=t,this.dirty=!0)}},scrollY:{get:function(){return this._scrollY},set:function(t){t!==this._scrollY&&(this._scrollY=t,this.dirty=!0)}},zoom:{get:function(){return(this._zoomX+this._zoomY)/2},set:function(t){this._zoomX=t,this._zoomY=t,this.dirty=!0}},zoomX:{get:function(){return this._zoomX},set:function(t){this._zoomX=t,this.dirty=!0}},zoomY:{get:function(){return this._zoomY},set:function(t){this._zoomY=t,this.dirty=!0}},rotation:{get:function(){return this._rotation},set:function(t){this._rotation=t,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}}});t.exports=d},38058:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(71911),r=i(67502),s=i(45319),a=i(83419),o=i(31401),l=i(20052),h=i(19715),u=i(28915),c=i(87841),d=i(26099),f=new a({Extends:n,Mixins:[o.PostPipeline],initialize:function(t,e,i,r){n.call(this,t,e,i,r),this.initPostPipeline(),this.inputEnabled=!0,this.fadeEffect=new l.Fade(this),this.flashEffect=new l.Flash(this),this.shakeEffect=new l.Shake(this),this.panEffect=new l.Pan(this),this.rotateToEffect=new l.RotateTo(this),this.zoomEffect=new l.Zoom(this),this.lerp=new d(1,1),this.followOffset=new d,this.deadzone=null,this._follow=null},setDeadzone:function(t,e){if(void 0===t)this.deadzone=null;else{if(this.deadzone?(this.deadzone.width=t,this.deadzone.height=e):this.deadzone=new c(0,0,t,e),this._follow){var i=this.width/2,n=this.height/2,s=this._follow.x-this.followOffset.x,a=this._follow.y-this.followOffset.y;this.midPoint.set(s,a),this.scrollX=s-i,this.scrollY=a-n}r(this.deadzone,this.midPoint.x,this.midPoint.y)}return this},fadeIn:function(t,e,i,n,r,s){return this.fadeEffect.start(!1,t,e,i,n,!0,r,s)},fadeOut:function(t,e,i,n,r,s){return this.fadeEffect.start(!0,t,e,i,n,!0,r,s)},fadeFrom:function(t,e,i,n,r,s,a){return this.fadeEffect.start(!1,t,e,i,n,r,s,a)},fade:function(t,e,i,n,r,s,a){return this.fadeEffect.start(!0,t,e,i,n,r,s,a)},flash:function(t,e,i,n,r,s,a){return this.flashEffect.start(t,e,i,n,r,s,a)},shake:function(t,e,i,n,r){return this.shakeEffect.start(t,e,i,n,r)},pan:function(t,e,i,n,r,s,a){return this.panEffect.start(t,e,i,n,r,s,a)},rotateTo:function(t,e,i,n,r,s,a){return this.rotateToEffect.start(t,e,i,n,r,s,a)},zoomTo:function(t,e,i,n,r,s){return this.zoomEffect.start(t,e,i,n,r,s)},preRender:function(){this.renderList.length=0;var t=this.width,e=this.height,i=.5*t,n=.5*e,s=this.zoomX,a=this.zoomY,o=this.matrix;this.renderRoundPixels=this.roundPixels&&Number.isInteger(s)&&Number.isInteger(a);var l=t*this.originX,c=e*this.originY,d=this._follow,f=this.deadzone,p=this.scrollX,m=this.scrollY;f&&r(f,this.midPoint.x,this.midPoint.y);var g=!1;if(d&&!this.panEffect.isRunning){var v=this.lerp,y=d.x-this.followOffset.x,b=d.y-this.followOffset.y;f?(yf.right&&(p=u(p,p+(y-f.right),v.x)),bf.bottom&&(m=u(m,m+(b-f.bottom),v.y))):(p=u(p,y-l,v.x),m=u(m,b-c,v.y)),g=!0}this.roundPixels&&(p=Math.floor(p),m=Math.floor(m)),this.useBounds&&(p=this.clampX(p),m=this.clampY(m)),this.scrollX=p,this.scrollY=m;var x=p+i,w=m+n;this.midPoint.set(x,w);var T=Math.floor(t/s+.5),S=Math.floor(e/a+.5),E=Math.floor(x-T/2+.5),C=Math.floor(w-S/2+.5);this.worldView.setTo(E,C,T,S),o.applyITRS(Math.floor(this.x+l+.5),Math.floor(this.y+c+.5),this.rotation,s,a),o.translate(-l,-c),this.shakeEffect.preRender(),g&&this.emit(h.FOLLOW_UPDATE,this,d)},setLerp:function(t,e){return void 0===t&&(t=1),void 0===e&&(e=t),this.lerp.set(t,e),this},setFollowOffset:function(t,e){return void 0===t&&(t=0),void 0===e&&(e=0),this.followOffset.set(t,e),this},startFollow:function(t,e,i,n,r,a){void 0===e&&(e=!1),void 0===i&&(i=1),void 0===n&&(n=i),void 0===r&&(r=0),void 0===a&&(a=r),this._follow=t,this.roundPixels=e,i=s(i,0,1),n=s(n,0,1),this.lerp.set(i,n),this.followOffset.set(r,a);var o=this.width/2,l=this.height/2,h=t.x-r,u=t.y-a;return this.midPoint.set(h,u),this.scrollX=h-o,this.scrollY=u-l,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(t,e){this.visible&&(this.rotateToEffect.update(t,e),this.panEffect.update(t,e),this.zoomEffect.update(t,e),this.shakeEffect.update(t,e),this.flashEffect.update(t,e),this.fadeEffect.update(t,e))},destroy:function(){this.resetFX(),n.prototype.destroy.call(this),this._follow=null,this.deadzone=null}});t.exports=f},32743:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(38058),r=i(83419),s=i(95540),a=i(37277),o=i(37303),l=i(97480),h=i(44594),u=new r({initialize:function(t){this.scene=t,this.systems=t.sys,this.roundPixels=t.sys.game.config.roundPixels,this.cameras=[],this.main,this.default,t.sys.events.once(h.BOOT,this.boot,this),t.sys.events.on(h.START,this.start,this)},boot:function(){var t=this.systems;t.settings.cameras?this.fromJSON(t.settings.cameras):this.add(),this.main=this.cameras[0],this.default=new n(0,0,t.scale.width,t.scale.height).setScene(this.scene),t.game.scale.on(l.RESIZE,this.onResize,this),this.systems.events.once(h.DESTROY,this.destroy,this)},start:function(){if(!this.main){var t=this.systems;t.settings.cameras?this.fromJSON(t.settings.cameras):this.add(),this.main=this.cameras[0]}var e=this.systems.events;e.on(h.UPDATE,this.update,this),e.once(h.SHUTDOWN,this.shutdown,this)},add:function(t,e,i,r,s,a){void 0===t&&(t=0),void 0===e&&(e=0),void 0===i&&(i=this.scene.sys.scale.width),void 0===r&&(r=this.scene.sys.scale.height),void 0===s&&(s=!1),void 0===a&&(a=\"\");var o=new n(t,e,i,r);return o.setName(a),o.setScene(this.scene),o.setRoundPixels(this.roundPixels),o.id=this.getNextID(),this.cameras.push(o),s&&(this.main=o),o},addExisting:function(t,e){return void 0===e&&(e=!1),-1===this.cameras.indexOf(t)?(t.id=this.getNextID(),t.setRoundPixels(this.roundPixels),this.cameras.push(t),e&&(this.main=t),t):null},getNextID:function(){for(var t=this.cameras,e=1,i=0;i<32;i++){for(var n=!1,r=0;r0){s.preRender();var a=this.getVisibleChildren(e.getChildren(),s);t.render(i,a,s)}}},getVisibleChildren:function(t,e){return t.filter((function(t){return t.willRender(e)}))},resetAll:function(){for(var t=0;t{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(45319),r=i(83419),s=i(19715),a=new r({initialize:function(t){this.camera=t,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(t,e,i,n,r,a,o,l){if(void 0===t&&(t=!0),void 0===e&&(e=1e3),void 0===i&&(i=0),void 0===n&&(n=0),void 0===r&&(r=0),void 0===a&&(a=!1),void 0===o&&(o=null),void 0===l&&(l=this.camera.scene),!a&&this.isRunning)return this.camera;this.isRunning=!0,this.isComplete=!1,this.duration=e,this.direction=t,this.progress=0,this.red=i,this.green=n,this.blue=r,this.alpha=t?Number.MIN_VALUE:1,this._elapsed=0,this._onUpdate=o,this._onUpdateScope=l;var h=t?s.FADE_OUT_START:s.FADE_IN_START;return this.camera.emit(h,this.camera,this,e,i,n,r),this.camera},update:function(t,e){this.isRunning&&(this._elapsed+=e,this.progress=n(this._elapsed/this.duration,0,1),this._onUpdate&&this._onUpdate.call(this._onUpdateScope,this.camera,this.progress),this._elapsed{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(45319),r=i(83419),s=i(19715),a=new r({initialize:function(t){this.camera=t,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(t,e,i,n,r,a,o){return void 0===t&&(t=250),void 0===e&&(e=255),void 0===i&&(i=255),void 0===n&&(n=255),void 0===r&&(r=!1),void 0===a&&(a=null),void 0===o&&(o=this.camera.scene),!r&&this.isRunning||(this.isRunning=!0,this.duration=t,this.progress=0,this.red=e,this.green=i,this.blue=n,this._alpha=this.alpha,this._elapsed=0,this._onUpdate=a,this._onUpdateScope=o,this.camera.emit(s.FLASH_START,this.camera,this,t,e,i,n)),this.camera},update:function(t,e){this.isRunning&&(this._elapsed+=e,this.progress=n(this._elapsed/this.duration,0,1),this._onUpdate&&this._onUpdate.call(this._onUpdateScope,this.camera,this.progress),this._elapsed{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(45319),r=i(83419),s=i(62640),a=i(19715),o=i(26099),l=new r({initialize:function(t){this.camera=t,this.isRunning=!1,this.duration=0,this.source=new o,this.current=new o,this.destination=new o,this.ease,this.progress=0,this._elapsed=0,this._onUpdate,this._onUpdateScope},start:function(t,e,i,n,r,o,l){void 0===i&&(i=1e3),void 0===n&&(n=s.Linear),void 0===r&&(r=!1),void 0===o&&(o=null),void 0===l&&(l=this.camera.scene);var h=this.camera;return!r&&this.isRunning||(this.isRunning=!0,this.duration=i,this.progress=0,this.source.set(h.scrollX,h.scrollY),this.destination.set(t,e),h.getScroll(t,e,this.current),\"string\"==typeof n&&s.hasOwnProperty(n)?this.ease=s[n]:\"function\"==typeof n&&(this.ease=n),this._elapsed=0,this._onUpdate=o,this._onUpdateScope=l,this.camera.emit(a.PAN_START,this.camera,this,i,t,e)),h},update:function(t,e){if(this.isRunning){this._elapsed+=e;var i=n(this._elapsed/this.duration,0,1);this.progress=i;var r=this.camera;if(this._elapsed{\n/**\n * @author Jason Nicholls \n * @copyright 2018 Photon Storm Ltd.\n * @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}\n */\nvar n=i(45319),r=i(83419),s=i(19715),a=i(62640),o=new r({initialize:function(t){this.camera=t,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(t,e,i,n,r,o,l){void 0===i&&(i=1e3),void 0===n&&(n=a.Linear),void 0===r&&(r=!1),void 0===o&&(o=null),void 0===l&&(l=this.camera.scene),void 0===e&&(e=!1),this.shortestPath=e;var h=t;t<0?(h=-1*t,this.clockwise=!1):this.clockwise=!0;var u=360*Math.PI/180;h-=Math.floor(h/u)*u;var c=this.camera;if(!r&&this.isRunning)return c;if(this.isRunning=!0,this.duration=i,this.progress=0,this.source=c.rotation,this.destination=h,\"string\"==typeof n&&a.hasOwnProperty(n)?this.ease=a[n]:\"function\"==typeof n&&(this.ease=n),this._elapsed=0,this._onUpdate=o,this._onUpdateScope=l,this.shortestPath){var d=0,f=0;(d=this.destination>this.source?Math.abs(this.destination-this.source):Math.abs(this.destination+u)-this.source)<(f=this.source>this.destination?Math.abs(this.source-this.destination):Math.abs(this.source+u)-this.destination)?this.clockwise=!0:d>f&&(this.clockwise=!1)}return this.camera.emit(s.ROTATE_START,this.camera,this,i,h),c},update:function(t,e){if(this.isRunning){this._elapsed+=e;var i=n(this._elapsed/this.duration,0,1);this.progress=i;var r=this.camera;if(this._elapsed=h?Math.abs(l-h):Math.abs(l+o)-h;var u=0;u=this.clockwise?r.rotation+a*s:r.rotation-a*s,r.rotation=u,this._onUpdate&&this._onUpdate.call(this._onUpdateScope,r,i,u)}else r.rotation=this.destination,this._onUpdate&&this._onUpdate.call(this._onUpdateScope,r,i,this.destination),this.effectComplete()}},effectComplete:function(){this._onUpdate=null,this._onUpdateScope=null,this.isRunning=!1,this.camera.emit(s.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}});t.exports=o},30330:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(45319),r=i(83419),s=i(19715),a=i(26099),o=new r({initialize:function(t){this.camera=t,this.isRunning=!1,this.duration=0,this.intensity=new a,this.progress=0,this._elapsed=0,this._offsetX=0,this._offsetY=0,this._onUpdate,this._onUpdateScope},start:function(t,e,i,n,r){return void 0===t&&(t=100),void 0===e&&(e=.05),void 0===i&&(i=!1),void 0===n&&(n=null),void 0===r&&(r=this.camera.scene),!i&&this.isRunning||(this.isRunning=!0,this.duration=t,this.progress=0,\"number\"==typeof e?this.intensity.set(e):this.intensity.set(e.x,e.y),this._elapsed=0,this._offsetX=0,this._offsetY=0,this._onUpdate=n,this._onUpdateScope=r,this.camera.emit(s.SHAKE_START,this.camera,this,t,e)),this.camera},preRender:function(){this.isRunning&&this.camera.matrix.translate(this._offsetX,this._offsetY)},update:function(t,e){if(this.isRunning)if(this._elapsed+=e,this.progress=n(this._elapsed/this.duration,0,1),this._onUpdate&&this._onUpdate.call(this._onUpdateScope,this.camera,this.progress),this._elapsed{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(45319),r=i(83419),s=i(62640),a=i(19715),o=new r({initialize:function(t){this.camera=t,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(t,e,i,n,r,o){void 0===e&&(e=1e3),void 0===i&&(i=s.Linear),void 0===n&&(n=!1),void 0===r&&(r=null),void 0===o&&(o=this.camera.scene);var l=this.camera;return!n&&this.isRunning||(this.isRunning=!0,this.duration=e,this.progress=0,this.source=l.zoom,this.destination=t,\"string\"==typeof i&&s.hasOwnProperty(i)?this.ease=s[i]:\"function\"==typeof i&&(this.ease=i),this._elapsed=0,this._onUpdate=r,this._onUpdateScope=o,this.camera.emit(a.ZOOM_START,this.camera,this,e,t)),l},update:function(t,e){this.isRunning&&(this._elapsed+=e,this.progress=n(this._elapsed/this.duration,0,1),this._elapsed{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports={Fade:i(5020),Flash:i(10662),Pan:i(20359),Shake:i(30330),RotateTo:i(34208),Zoom:i(45641)}},16438:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports=\"cameradestroy\"},32726:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports=\"camerafadeincomplete\"},87807:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports=\"camerafadeinstart\"},45917:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports=\"camerafadeoutcomplete\"},95666:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports=\"camerafadeoutstart\"},47056:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports=\"cameraflashcomplete\"},91261:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports=\"cameraflashstart\"},45047:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports=\"followupdate\"},81927:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports=\"camerapancomplete\"},74264:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports=\"camerapanstart\"},54419:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports=\"postrender\"},79330:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports=\"prerender\"},93183:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports=\"camerarotatecomplete\"},80112:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports=\"camerarotatestart\"},62252:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports=\"camerashakecomplete\"},86017:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports=\"camerashakestart\"},539:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports=\"camerazoomcomplete\"},51892:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports=\"camerazoomstart\"},19715:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports={DESTROY:i(16438),FADE_IN_COMPLETE:i(32726),FADE_IN_START:i(87807),FADE_OUT_COMPLETE:i(45917),FADE_OUT_START:i(95666),FLASH_COMPLETE:i(47056),FLASH_START:i(91261),FOLLOW_UPDATE:i(45047),PAN_COMPLETE:i(81927),PAN_START:i(74264),POST_RENDER:i(54419),PRE_RENDER:i(79330),ROTATE_COMPLETE:i(93183),ROTATE_START:i(80112),SHAKE_COMPLETE:i(62252),SHAKE_START:i(86017),ZOOM_COMPLETE:i(539),ZOOM_START:i(51892)}},87969:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports={Camera:i(38058),BaseCamera:i(71911),CameraManager:i(32743),Effects:i(20052),Events:i(19715)}},63091:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(83419),r=i(35154),s=new n({initialize:function(t){this.camera=r(t,\"camera\",null),this.left=r(t,\"left\",null),this.right=r(t,\"right\",null),this.up=r(t,\"up\",null),this.down=r(t,\"down\",null),this.zoomIn=r(t,\"zoomIn\",null),this.zoomOut=r(t,\"zoomOut\",null),this.zoomSpeed=r(t,\"zoomSpeed\",.01),this.minZoom=r(t,\"minZoom\",.001),this.maxZoom=r(t,\"maxZoom\",1e3),this.speedX=0,this.speedY=0;var e=r(t,\"speed\",null);\"number\"==typeof e?(this.speedX=e,this.speedY=e):(this.speedX=r(t,\"speed.x\",0),this.speedY=r(t,\"speed.y\",0)),this._zoom=0,this.active=null!==this.camera},start:function(){return this.active=null!==this.camera,this},stop:function(){return this.active=!1,this},setCamera:function(t){return this.camera=t,this},update:function(t){if(this.active){void 0===t&&(t=1);var e=this.camera;this.up&&this.up.isDown?e.scrollY-=this.speedY*t|0:this.down&&this.down.isDown&&(e.scrollY+=this.speedY*t|0),this.left&&this.left.isDown?e.scrollX-=this.speedX*t|0:this.right&&this.right.isDown&&(e.scrollX+=this.speedX*t|0),this.zoomIn&&this.zoomIn.isDown?(e.zoom-=this.zoomSpeed,e.zoomthis.maxZoom&&(e.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}});t.exports=s},58818:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(83419),r=i(35154),s=new n({initialize:function(t){this.camera=r(t,\"camera\",null),this.left=r(t,\"left\",null),this.right=r(t,\"right\",null),this.up=r(t,\"up\",null),this.down=r(t,\"down\",null),this.zoomIn=r(t,\"zoomIn\",null),this.zoomOut=r(t,\"zoomOut\",null),this.zoomSpeed=r(t,\"zoomSpeed\",.01),this.minZoom=r(t,\"minZoom\",.001),this.maxZoom=r(t,\"maxZoom\",1e3),this.accelX=0,this.accelY=0;var e=r(t,\"acceleration\",null);\"number\"==typeof e?(this.accelX=e,this.accelY=e):(this.accelX=r(t,\"acceleration.x\",0),this.accelY=r(t,\"acceleration.y\",0)),this.dragX=0,this.dragY=0;var i=r(t,\"drag\",null);\"number\"==typeof i?(this.dragX=i,this.dragY=i):(this.dragX=r(t,\"drag.x\",0),this.dragY=r(t,\"drag.y\",0)),this.maxSpeedX=0,this.maxSpeedY=0;var n=r(t,\"maxSpeed\",null);\"number\"==typeof n?(this.maxSpeedX=n,this.maxSpeedY=n):(this.maxSpeedX=r(t,\"maxSpeed.x\",0),this.maxSpeedY=r(t,\"maxSpeed.y\",0)),this._speedX=0,this._speedY=0,this._zoom=0,this.active=null!==this.camera},start:function(){return this.active=null!==this.camera,this},stop:function(){return this.active=!1,this},setCamera:function(t){return this.camera=t,this},update:function(t){if(this.active){void 0===t&&(t=1);var e=this.camera;this._speedX>0?(this._speedX-=this.dragX*t,this._speedX<0&&(this._speedX=0)):this._speedX<0&&(this._speedX+=this.dragX*t,this._speedX>0&&(this._speedX=0)),this._speedY>0?(this._speedY-=this.dragY*t,this._speedY<0&&(this._speedY=0)):this._speedY<0&&(this._speedY+=this.dragY*t,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,0!==this._speedX&&(e.scrollX-=this._speedX*t|0),0!==this._speedY&&(e.scrollY-=this._speedY*t|0),0!==this._zoom&&(e.zoom+=this._zoom,e.zoomthis.maxZoom&&(e.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}});t.exports=s},38865:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports={FixedKeyControl:i(63091),SmoothedKeyControl:i(58818)}},26638:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports={Controls:i(38865),Scene2D:i(87969)}},8054:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n={VERSION:\"3.88.2\",LOG_VERSION:\"v388\",BlendModes:i(10312),ScaleModes:i(29795),AUTO:0,CANVAS:1,WEBGL:2,HEADLESS:3,FOREVER:-1,NONE:4,UP:5,DOWN:6,LEFT:7,RIGHT:8};t.exports=n},69547:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(83419),r=i(8054),s=i(42363),a=i(82264),o=i(95540),l=i(35154),h=i(41212),u=i(29747),c=i(75508),d=i(36060),f=i(80333),p=new n({initialize:function(t){void 0===t&&(t={});var e=l(t,\"scale\",null);this.width=l(e,\"width\",1024,t),this.height=l(e,\"height\",768,t),this.zoom=l(e,\"zoom\",1,t),this.parent=l(e,\"parent\",void 0,t),this.scaleMode=l(e,e?\"mode\":\"scaleMode\",0,t),this.expandParent=l(e,\"expandParent\",!0,t),this.autoRound=l(e,\"autoRound\",!1,t),this.autoCenter=l(e,\"autoCenter\",0,t),this.resizeInterval=l(e,\"resizeInterval\",500,t),this.fullscreenTarget=l(e,\"fullscreenTarget\",null,t),this.minWidth=l(e,\"min.width\",0,t),this.maxWidth=l(e,\"max.width\",0,t),this.minHeight=l(e,\"min.height\",0,t),this.maxHeight=l(e,\"max.height\",0,t),this.snapWidth=l(e,\"snap.width\",0,t),this.snapHeight=l(e,\"snap.height\",0,t),this.renderType=l(t,\"type\",r.AUTO),this.canvas=l(t,\"canvas\",null),this.context=l(t,\"context\",null),this.canvasStyle=l(t,\"canvasStyle\",null),this.customEnvironment=l(t,\"customEnvironment\",!1),this.sceneConfig=l(t,\"scene\",null),this.seed=l(t,\"seed\",[(Date.now()*Math.random()).toString()]),c.RND=new c.RandomDataGenerator(this.seed),this.gameTitle=l(t,\"title\",\"\"),this.gameURL=l(t,\"url\",\"https://phaser.io/\"+r.LOG_VERSION),this.gameVersion=l(t,\"version\",\"\"),this.autoFocus=l(t,\"autoFocus\",!0),this.stableSort=l(t,\"stableSort\",-1),-1===this.stableSort&&(this.stableSort=a.browser.es2019?1:0),a.features.stableSort=this.stableSort,this.domCreateContainer=l(t,\"dom.createContainer\",!1),this.domPointerEvents=l(t,\"dom.pointerEvents\",\"none\"),this.inputKeyboard=l(t,\"input.keyboard\",!0),this.inputKeyboardEventTarget=l(t,\"input.keyboard.target\",window),this.inputKeyboardCapture=l(t,\"input.keyboard.capture\",[]),this.inputMouse=l(t,\"input.mouse\",!0),this.inputMouseEventTarget=l(t,\"input.mouse.target\",null),this.inputMousePreventDefaultDown=l(t,\"input.mouse.preventDefaultDown\",!0),this.inputMousePreventDefaultUp=l(t,\"input.mouse.preventDefaultUp\",!0),this.inputMousePreventDefaultMove=l(t,\"input.mouse.preventDefaultMove\",!0),this.inputMousePreventDefaultWheel=l(t,\"input.mouse.preventDefaultWheel\",!0),this.inputTouch=l(t,\"input.touch\",a.input.touch),this.inputTouchEventTarget=l(t,\"input.touch.target\",null),this.inputTouchCapture=l(t,\"input.touch.capture\",!0),this.inputActivePointers=l(t,\"input.activePointers\",1),this.inputSmoothFactor=l(t,\"input.smoothFactor\",0),this.inputWindowEvents=l(t,\"input.windowEvents\",!0),this.inputGamepad=l(t,\"input.gamepad\",!1),this.inputGamepadEventTarget=l(t,\"input.gamepad.target\",window),this.disableContextMenu=l(t,\"disableContextMenu\",!1),this.audio=l(t,\"audio\",{}),this.hideBanner=!1===l(t,\"banner\",null),this.hidePhaser=l(t,\"banner.hidePhaser\",!1),this.bannerTextColor=l(t,\"banner.text\",\"#ffffff\"),this.bannerBackgroundColor=l(t,\"banner.background\",[\"#ff0000\",\"#ffff00\",\"#00ff00\",\"#00ffff\",\"#000000\"]),\"\"===this.gameTitle&&this.hidePhaser&&(this.hideBanner=!0),this.fps=l(t,\"fps\",null),this.disablePreFX=l(t,\"disablePreFX\",!1),this.disablePostFX=l(t,\"disablePostFX\",!1);var i=l(t,\"render\",null);this.pipeline=l(i,\"pipeline\",null,t),this.autoMobilePipeline=l(i,\"autoMobilePipeline\",!0,t),this.defaultPipeline=l(i,\"defaultPipeline\",d.MULTI_PIPELINE,t),this.antialias=l(i,\"antialias\",!0,t),this.antialiasGL=l(i,\"antialiasGL\",!0,t),this.mipmapFilter=l(i,\"mipmapFilter\",\"\",t),this.desynchronized=l(i,\"desynchronized\",!1,t),this.roundPixels=l(i,\"roundPixels\",!1,t),this.pixelArt=l(i,\"pixelArt\",1!==this.zoom,t),this.pixelArt&&(this.antialias=!1,this.antialiasGL=!1,this.roundPixels=!0),this.transparent=l(i,\"transparent\",!1,t),this.clearBeforeRender=l(i,\"clearBeforeRender\",!0,t),this.preserveDrawingBuffer=l(i,\"preserveDrawingBuffer\",!1,t),this.premultipliedAlpha=l(i,\"premultipliedAlpha\",!0,t),this.failIfMajorPerformanceCaveat=l(i,\"failIfMajorPerformanceCaveat\",!1,t),this.powerPreference=l(i,\"powerPreference\",\"default\",t),this.batchSize=l(i,\"batchSize\",4096,t),this.maxTextures=l(i,\"maxTextures\",-1,t),this.maxLights=l(i,\"maxLights\",10,t);var n=l(t,\"backgroundColor\",0);this.backgroundColor=f(n),this.transparent&&(this.backgroundColor=f(0),this.backgroundColor.alpha=0),this.preBoot=l(t,\"callbacks.preBoot\",u),this.postBoot=l(t,\"callbacks.postBoot\",u),this.physics=l(t,\"physics\",{}),this.defaultPhysicsSystem=l(this.physics,\"default\",!1),this.loaderBaseURL=l(t,\"loader.baseURL\",\"\"),this.loaderPath=l(t,\"loader.path\",\"\"),this.loaderMaxParallelDownloads=l(t,\"loader.maxParallelDownloads\",a.os.android?6:32),this.loaderCrossOrigin=l(t,\"loader.crossOrigin\",void 0),this.loaderResponseType=l(t,\"loader.responseType\",\"\"),this.loaderAsync=l(t,\"loader.async\",!0),this.loaderUser=l(t,\"loader.user\",\"\"),this.loaderPassword=l(t,\"loader.password\",\"\"),this.loaderTimeout=l(t,\"loader.timeout\",0),this.loaderMaxRetries=l(t,\"loader.maxRetries\",2),this.loaderWithCredentials=l(t,\"loader.withCredentials\",!1),this.loaderImageLoadType=l(t,\"loader.imageLoadType\",\"XHR\"),this.loaderLocalScheme=l(t,\"loader.localScheme\",[\"file://\",\"capacitor://\"]),this.glowFXQuality=l(t,\"fx.glow.quality\",.1),this.glowFXDistance=l(t,\"fx.glow.distance\",10),this.installGlobalPlugins=[],this.installScenePlugins=[];var p=l(t,\"plugins\",null),m=s.DefaultScene;p&&(Array.isArray(p)?this.defaultPlugins=p:h(p)&&(this.installGlobalPlugins=o(p,\"global\",[]),this.installScenePlugins=o(p,\"scene\",[]),Array.isArray(p.default)?m=p.default:Array.isArray(p.defaultMerge)&&(m=m.concat(p.defaultMerge)))),this.defaultPlugins=m;var g=\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAg\";this.defaultImage=l(t,\"images.default\",g+\"AQMAAABJtOi3AAAAA1BMVEX///+nxBvIAAAAAXRSTlMAQObYZgAAABVJREFUeF7NwIEAAAAAgKD9qdeocAMAoAABm3DkcAAAAABJRU5ErkJggg==\"),this.missingImage=l(t,\"images.missing\",g+\"CAIAAAD8GO2jAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJ9JREFUeNq01ssOwyAMRFG46v//Mt1ESmgh+DFmE2GPOBARKb2NVjo+17PXLD8a1+pl5+A+wSgFygymWYHBb0FtsKhJDdZlncG2IzJ4ayoMDv20wTmSMzClEgbWYNTAkQ0Z+OJ+A/eWnAaR9+oxCF4Os0H8htsMUp+pwcgBBiMNnAwF8GqIgL2hAzaGFFgZauDPKABmowZ4GL369/0rwACp2yA/ttmvsQAAAABJRU5ErkJggg==\"),this.whiteImage=l(t,\"images.white\",\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAECAIAAAAmkwkpAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAABdJREFUeNpi/P//PwMMMDEgAdwcgAADAJZuAwXJYZOzAAAAAElFTkSuQmCC\"),window&&(window.FORCE_WEBGL?this.renderType=r.WEBGL:window.FORCE_CANVAS&&(this.renderType=r.CANVAS))}});t.exports=p},86054:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(20623),r=i(27919),s=i(8054),a=i(89357);t.exports=function(t){var e=t.config;if((e.customEnvironment||e.canvas)&&e.renderType===s.AUTO)throw new Error(\"Must set explicit renderType in custom environment\");if(!e.customEnvironment&&!e.canvas&&e.renderType!==s.HEADLESS)if(e.renderType===s.AUTO&&(e.renderType=a.webGL?s.WEBGL:s.CANVAS),e.renderType===s.WEBGL){if(!a.webGL)throw new Error(\"Cannot create WebGL context, aborting.\")}else{if(e.renderType!==s.CANVAS)throw new Error(\"Unknown value for renderer type: \"+e.renderType);if(!a.canvas)throw new Error(\"Cannot create Canvas context, aborting.\")}e.antialias||r.disableSmoothing();var o,l,h=t.scale.baseSize,u=h.width,c=h.height;e.canvas?(t.canvas=e.canvas,t.canvas.width=u,t.canvas.height=c):t.canvas=r.create(t,u,c,e.renderType),e.canvasStyle&&(t.canvas.style=e.canvasStyle),e.antialias||n.setCrisp(t.canvas),e.renderType!==s.HEADLESS&&(o=i(68627),l=i(74797),e.renderType===s.WEBGL?t.renderer=new l(t):(t.renderer=new o(t),t.context=t.renderer.gameContext))}},96391:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(8054);t.exports=function(t){var e=t.config;if(!e.hideBanner){var i=\"WebGL\";e.renderType===n.CANVAS?i=\"Canvas\":e.renderType===n.HEADLESS&&(i=\"Headless\");var r,s=e.audio,a=t.device.audio;if(r=a.webAudio&&!s.disableWebAudio?\"Web Audio\":s.noAudio||!a.webAudio&&!a.audioData?\"No Audio\":\"HTML5 Audio\",t.device.browser.ie)window.console&&console.log(\"Phaser v\"+n.VERSION+\" / https://phaser.io\");else{var o,l=\"\",h=[l];Array.isArray(e.bannerBackgroundColor)?(e.bannerBackgroundColor.forEach((function(t){l=l.concat(\"%c \"),h.push(\"background: \"+t),o=t})),h[h.length-1]=\"color: \"+e.bannerTextColor+\"; background: \"+o):(l=l.concat(\"%c \"),h.push(\"color: \"+e.bannerTextColor+\"; background: \"+e.bannerBackgroundColor)),h.push(\"background: transparent\"),e.gameTitle&&(l=l.concat(e.gameTitle),e.gameVersion&&(l=l.concat(\" v\"+e.gameVersion)),e.hidePhaser||(l=l.concat(\" / \"))),e.hidePhaser||(l=l.concat(\"Phaser v\"+n.VERSION+\" (\"+i+\" | \"+r+\")\")),l=l.concat(\" %c \"+e.gameURL),h[0]=l,console.log.apply(console,h)}}}},50127:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(40366),r=i(60848),s=i(24047),a=i(27919),o=i(83419),l=i(69547),h=i(83719),u=i(86054),c=i(45893),d=i(96391),f=i(82264),p=i(57264),m=i(50792),g=i(8443),v=i(7003),y=i(37277),b=i(77332),x=i(76531),w=i(60903),T=i(69442),S=i(17130),E=i(65898),C=i(51085),A=i(14747),_=new o({initialize:function(t){this.config=new l(t),this.renderer=null,this.domContainer=null,this.canvas=null,this.context=null,this.isBooted=!1,this.isRunning=!1,this.events=new m,this.anims=new r(this),this.textures=new S(this),this.cache=new s(this),this.registry=new c(this,new m),this.input=new v(this,this.config),this.scene=new w(this,this.config.sceneConfig),this.device=f,this.scale=new x(this,this.config),this.sound=null,this.sound=A.create(this),this.loop=new E(this,this.config.fps),this.plugins=new b(this,this.config),this.pendingDestroy=!1,this.removeCanvas=!1,this.noReturn=!1,this.hasFocus=!1,this.isPaused=!1,p(this.boot.bind(this))},boot:function(){y.hasCore(\"EventEmitter\")?(this.isBooted=!0,this.config.preBoot(this),this.scale.preBoot(),u(this),h(this),d(this),n(this.canvas,this.config.parent),this.textures.once(T.READY,this.texturesReady,this),this.events.emit(g.BOOT)):console.warn(\"Aborting. Core Plugins missing.\")},texturesReady:function(){this.events.emit(g.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)),C(this);var t=this.events;t.on(g.HIDDEN,this.onHidden,this),t.on(g.VISIBLE,this.onVisible,this),t.on(g.BLUR,this.onBlur,this),t.on(g.FOCUS,this.onFocus,this)},step:function(t,e){if(this.pendingDestroy)return this.runDestroy();if(!this.isPaused){var i=this.events;i.emit(g.PRE_STEP,t,e),i.emit(g.STEP,t,e),this.scene.update(t,e),i.emit(g.POST_STEP,t,e);var n=this.renderer;n.preRender(),i.emit(g.PRE_RENDER,n,t,e),this.scene.render(n),n.postRender(),i.emit(g.POST_RENDER,n,t,e)}},headlessStep:function(t,e){if(this.pendingDestroy)return this.runDestroy();if(!this.isPaused){var i=this.events;i.emit(g.PRE_STEP,t,e),i.emit(g.STEP,t,e),this.scene.update(t,e),i.emit(g.POST_STEP,t,e),this.scene.isProcessing=!1,i.emit(g.PRE_RENDER,null,t,e),i.emit(g.POST_RENDER,null,t,e)}},onHidden:function(){this.loop.pause(),this.events.emit(g.PAUSE)},pause:function(){var t=this.isPaused;this.isPaused=!0,t||this.events.emit(g.PAUSE)},onVisible:function(){this.loop.resume(),this.events.emit(g.RESUME,this.loop.pauseDuration)},resume:function(){var t=this.isPaused;this.isPaused=!1,t&&this.events.emit(g.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(t,e){void 0===e&&(e=!1),this.pendingDestroy=!0,this.removeCanvas=t,this.noReturn=e},runDestroy:function(){this.scene.destroy(),this.events.emit(g.DESTROY),this.events.removeAllListeners(),this.renderer&&this.renderer.destroy(),this.removeCanvas&&this.canvas&&(a.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}});t.exports=_},65898:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(83419),r=i(35154),s=i(29747),a=i(43092),o=new n({initialize:function(t,e){this.game=t,this.raf=new a,this.started=!1,this.running=!1,this.minFps=r(e,\"min\",5),this.targetFps=r(e,\"target\",60),this.fpsLimit=r(e,\"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=s,this.forceSetTimeOut=r(e,\"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=r(e,\"deltaHistory\",10),this.panicMax=r(e,\"panicMax\",120),this.rawDelta=0,this.now=0,this.smoothStep=r(e,\"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 t=window.performance.now();this.time=t,this.lastTime=t,this.nextFpsUpdate=t+1e3,this.framesThisSecond=0;for(var e=0;e0||!this.inFocus)&&(this._coolDown--,t=Math.min(t,this._target)),t>this._min&&(t=i[e],t=Math.min(t,this._min)),i[e]=t,this.deltaIndex++,this.deltaIndex>=n&&(this.deltaIndex=0);for(var r=0,s=0;s=this.nextFpsUpdate&&this.updateFPS(t),this.framesThisSecond++,this.delta>=this._limitRate&&(this.callback(t,this.delta),this.delta=0),this.lastTime=t,this.frame++},step:function(t){this.now=t;var e=Math.max(0,t-this.lastTime);this.rawDelta=e,this.time+=this.rawDelta,this.smoothStep&&(e=this.smoothDelta(e)),this.delta=e,t>=this.nextFpsUpdate&&this.updateFPS(t),this.framesThisSecond++,this.callback(t,e),this.lastTime=t,this.frame++},tick:function(){var t=window.performance.now();this.hasFpsLimit?this.stepLimitFPS(t):this.step(t)},sleep:function(){this.running&&(this.raf.stop(),this.running=!1)},wake:function(t){void 0===t&&(t=!1);var e=window.performance.now();if(!this.running){t&&(this.startTime+=-this.lastTime+(this.lastTime+e));var i=this.hasFpsLimit?this.stepLimitFPS.bind(this):this.step.bind(this);this.raf.start(i,this.forceSetTimeOut,this._target),this.running=!0,this.nextFpsUpdate=e+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}});t.exports=o},51085:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(8443);t.exports=function(t){var e,i=t.events;void 0!==document.hidden?e=\"visibilitychange\":[\"webkit\",\"moz\",\"ms\"].forEach((function(t){void 0!==document[t+\"Hidden\"]&&(document.hidden=function(){return document[t+\"Hidden\"]},e=t+\"visibilitychange\")})),e&&document.addEventListener(e,(function(t){document.hidden||\"pause\"===t.type?i.emit(n.HIDDEN):i.emit(n.VISIBLE)}),!1),window.onblur=function(){i.emit(n.BLUR)},window.onfocus=function(){i.emit(n.FOCUS)},window.focus&&t.config.autoFocus&&window.focus()}},97217:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports=\"blur\"},47548:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports=\"boot\"},19814:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports=\"contextlost\"},68446:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports=\"destroy\"},41700:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports=\"focus\"},25432:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports=\"hidden\"},65942:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports=\"pause\"},59211:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports=\"postrender\"},47789:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports=\"poststep\"},39066:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports=\"prerender\"},460:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports=\"prestep\"},16175:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports=\"ready\"},42331:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports=\"resume\"},11966:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports=\"step\"},32969:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports=\"systemready\"},94830:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports=\"visible\"},8443:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports={BLUR:i(97217),BOOT:i(47548),CONTEXT_LOST:i(19814),DESTROY:i(68446),FOCUS:i(41700),HIDDEN:i(25432),PAUSE:i(65942),POST_RENDER:i(59211),POST_STEP:i(47789),PRE_RENDER:i(39066),PRE_STEP:i(460),READY:i(16175),RESUME:i(42331),STEP:i(11966),SYSTEM_READY:i(32969),VISIBLE:i(94830)}},42857:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports={Config:i(69547),CreateRenderer:i(86054),DebugHeader:i(96391),Events:i(8443),TimeStep:i(65898),VisibilityHandler:i(51085)}},99584:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(5290),r=i(27919),s=i(35154);t.exports=function(t){var e=s(t,\"data\",[]),i=s(t,\"canvas\",null),a=s(t,\"palette\",n),o=s(t,\"pixelWidth\",1),l=s(t,\"pixelHeight\",o),h=s(t,\"resizeCanvas\",!0),u=s(t,\"clearCanvas\",!0),c=s(t,\"preRender\",null),d=s(t,\"postRender\",null),f=Math.floor(Math.abs(e[0].length*o)),p=Math.floor(Math.abs(e.length*l));i||(i=r.create2D(this,f,p),h=!1,u=!1),h&&(i.width=f,i.height=p);var m=i.getContext(\"2d\",{willReadFrequently:!0});u&&m.clearRect(0,0,f,p),c&&c(i,m);for(var g=0;g{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports={GenerateTexture:i(99584),Palettes:i(57763)}},5290:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports={0:\"#000\",1:\"#9D9D9D\",2:\"#FFF\",3:\"#BE2633\",4:\"#E06F8B\",5:\"#493C2B\",6:\"#A46422\",7:\"#EB8931\",8:\"#F7E26B\",9:\"#2F484E\",A:\"#44891A\",B:\"#A3CE27\",C:\"#1B2632\",D:\"#005784\",E:\"#31A2F2\",F:\"#B2DCEF\"}},23816:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports={0:\"#000\",1:\"#fff\",2:\"#8b4131\",3:\"#7bbdc5\",4:\"#8b41ac\",5:\"#6aac41\",6:\"#3931a4\",7:\"#d5de73\",8:\"#945a20\",9:\"#5a4100\",A:\"#bd736a\",B:\"#525252\",C:\"#838383\",D:\"#acee8b\",E:\"#7b73de\",F:\"#acacac\"}},9866:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports={0:\"#000\",1:\"#2234d1\",2:\"#0c7e45\",3:\"#44aacc\",4:\"#8a3622\",5:\"#5c2e78\",6:\"#aa5c3d\",7:\"#b5b5b5\",8:\"#5e606e\",9:\"#4c81fb\",A:\"#6cd947\",B:\"#7be2f9\",C:\"#eb8a60\",D:\"#e23d69\",E:\"#ffd93f\",F:\"#fff\"}},77552:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports={0:\"#000\",1:\"#191028\",2:\"#46af45\",3:\"#a1d685\",4:\"#453e78\",5:\"#7664fe\",6:\"#833129\",7:\"#9ec2e8\",8:\"#dc534b\",9:\"#e18d79\",A:\"#d6b97b\",B:\"#e9d8a1\",C:\"#216c4b\",D:\"#d365c8\",E:\"#afaab9\",F:\"#f5f4eb\"}},92259:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports={0:\"#000\",1:\"#191028\",2:\"#46af45\",3:\"#a1d685\",4:\"#453e78\",5:\"#7664fe\",6:\"#833129\",7:\"#9ec2e8\",8:\"#dc534b\",9:\"#e18d79\",A:\"#d6b97b\",B:\"#e9d8a1\",C:\"#216c4b\",D:\"#d365c8\",E:\"#afaab9\",F:\"#fff\"}},57763:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports={ARNE16:i(5290),C64:i(23816),CGA:i(9866),JMP:i(77552),MSX:i(92259)}},46728:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(83419),r=i(36316),s=i(80021),a=i(26099),o=new n({Extends:s,initialize:function(t,e,i,n){s.call(this,\"CubicBezierCurve\"),Array.isArray(t)&&(n=new a(t[6],t[7]),i=new a(t[4],t[5]),e=new a(t[2],t[3]),t=new a(t[0],t[1])),this.p0=t,this.p1=e,this.p2=i,this.p3=n},getStartPoint:function(t){return void 0===t&&(t=new a),t.copy(this.p0)},getResolution:function(t){return t},getPoint:function(t,e){void 0===e&&(e=new a);var i=this.p0,n=this.p1,s=this.p2,o=this.p3;return e.set(r(t,i.x,n.x,s.x,o.x),r(t,i.y,n.y,s.y,o.y))},draw:function(t,e){void 0===e&&(e=32);var i=this.getPoints(e);t.beginPath(),t.moveTo(this.p0.x,this.p0.y);for(var n=1;n{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(83419),r=i(19217),s=i(87841),a=i(26099),o=new n({initialize:function(t){this.type=t,this.defaultDivisions=5,this.arcLengthDivisions=100,this.cacheArcLengths=[],this.needsUpdate=!0,this.active=!0,this._tmpVec2A=new a,this._tmpVec2B=new a},draw:function(t,e){return void 0===e&&(e=32),t.strokePoints(this.getPoints(e))},getBounds:function(t,e){t||(t=new s),void 0===e&&(e=16);var i=this.getLength();e>i&&(e=i/2);var n=Math.max(1,Math.round(i/e));return r(this.getSpacedPoints(n),t)},getDistancePoints:function(t){var e=this.getLength(),i=Math.max(1,e/t);return this.getSpacedPoints(i)},getEndPoint:function(t){return void 0===t&&(t=new a),this.getPointAt(1,t)},getLength:function(){var t=this.getLengths();return t[t.length-1]},getLengths:function(t){if(void 0===t&&(t=this.arcLengthDivisions),this.cacheArcLengths.length===t+1&&!this.needsUpdate)return this.cacheArcLengths;this.needsUpdate=!1;var e,i=[],n=this.getPoint(0,this._tmpVec2A),r=0;i.push(0);for(var s=1;s<=t;s++)r+=(e=this.getPoint(s/t,this._tmpVec2B)).distance(n),i.push(r),n.copy(e);return this.cacheArcLengths=i,i},getPointAt:function(t,e){var i=this.getUtoTmapping(t);return this.getPoint(i,e)},getPoints:function(t,e,i){void 0===i&&(i=[]),t||(t=e?this.getLength()/e:this.defaultDivisions);for(var n=0;n<=t;n++)i.push(this.getPoint(n/t));return i},getRandomPoint:function(t){return void 0===t&&(t=new a),this.getPoint(Math.random(),t)},getSpacedPoints:function(t,e,i){void 0===i&&(i=[]),t||(t=e?this.getLength()/e:this.defaultDivisions);for(var n=0;n<=t;n++){var r=this.getUtoTmapping(n/t,null,t);i.push(this.getPoint(r))}return i},getStartPoint:function(t){return void 0===t&&(t=new a),this.getPointAt(0,t)},getTangent:function(t,e){void 0===e&&(e=new a);var i=t-1e-4,n=t+1e-4;return i<0&&(i=0),n>1&&(n=1),this.getPoint(i,this._tmpVec2A),this.getPoint(n,e),e.subtract(this._tmpVec2A).normalize()},getTangentAt:function(t,e){var i=this.getUtoTmapping(t);return this.getTangent(i,e)},getTFromDistance:function(t,e){return t<=0?0:this.getUtoTmapping(0,t,e)},getUtoTmapping:function(t,e,i){var n,r=this.getLengths(i),s=0,a=r.length;n=e?Math.min(e,r[a-1]):t*r[a-1];for(var o,l=0,h=a-1;l<=h;)if((o=r[s=Math.floor(l+(h-l)/2)]-n)<0)l=s+1;else{if(!(o>0)){h=s;break}h=s-1}if(r[s=h]===n)return s/(a-1);var u=r[s];return(s+(n-u)/(r[s+1]-u))/(a-1)},updateArcLengths:function(){this.needsUpdate=!0,this.getLengths()}});t.exports=o},73825:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(83419),r=i(80021),s=i(39506),a=i(35154),o=i(43396),l=i(26099),h=new n({Extends:r,initialize:function(t,e,i,n,o,h,u,c){if(\"object\"==typeof t){var d=t;t=a(d,\"x\",0),e=a(d,\"y\",0),i=a(d,\"xRadius\",0),n=a(d,\"yRadius\",i),o=a(d,\"startAngle\",0),h=a(d,\"endAngle\",360),u=a(d,\"clockwise\",!1),c=a(d,\"rotation\",0)}else void 0===n&&(n=i),void 0===o&&(o=0),void 0===h&&(h=360),void 0===u&&(u=!1),void 0===c&&(c=0);r.call(this,\"EllipseCurve\"),this.p0=new l(t,e),this._xRadius=i,this._yRadius=n,this._startAngle=s(o),this._endAngle=s(h),this._clockwise=u,this._rotation=s(c)},getStartPoint:function(t){return void 0===t&&(t=new l),this.getPoint(0,t)},getResolution:function(t){return 2*t},getPoint:function(t,e){void 0===e&&(e=new l);for(var i=2*Math.PI,n=this._endAngle-this._startAngle,r=Math.abs(n)i;)n-=i;n{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(83419),r=i(80021),s=i(19217),a=i(87841),o=i(26099),l=new n({Extends:r,initialize:function(t,e){r.call(this,\"LineCurve\"),Array.isArray(t)&&(e=new o(t[2],t[3]),t=new o(t[0],t[1])),this.p0=t,this.p1=e,this.arcLengthDivisions=1},getBounds:function(t){return void 0===t&&(t=new a),s([this.p0,this.p1],t)},getStartPoint:function(t){return void 0===t&&(t=new o),t.copy(this.p0)},getResolution:function(t){return void 0===t&&(t=1),t},getPoint:function(t,e){return void 0===e&&(e=new o),1===t?e.copy(this.p1):(e.copy(this.p1).subtract(this.p0).scale(t).add(this.p0),e)},getPointAt:function(t,e){return this.getPoint(t,e)},getTangent:function(t,e){return void 0===e&&(e=new o),e.copy(this.p1).subtract(this.p0).normalize(),e},getUtoTmapping:function(t,e,i){var n;if(e){var r=this.getLengths(i),s=r[r.length-1];n=Math.min(e,s)/s}else n=t;return n},draw:function(t){return t.lineBetween(this.p0.x,this.p0.y,this.p1.x,this.p1.y),t},toJSON:function(){return{type:this.type,points:[this.p0.x,this.p0.y,this.p1.x,this.p1.y]}}});l.fromJSON=function(t){var e=t.points,i=new o(e[0],e[1]),n=new o(e[2],e[3]);return new l(i,n)},t.exports=l},14744:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(83419),r=i(80021),s=i(32112),a=i(26099),o=new n({Extends:r,initialize:function(t,e,i){r.call(this,\"QuadraticBezierCurve\"),Array.isArray(t)&&(i=new a(t[4],t[5]),e=new a(t[2],t[3]),t=new a(t[0],t[1])),this.p0=t,this.p1=e,this.p2=i},getStartPoint:function(t){return void 0===t&&(t=new a),t.copy(this.p0)},getResolution:function(t){return t},getPoint:function(t,e){void 0===e&&(e=new a);var i=this.p0,n=this.p1,r=this.p2;return e.set(s(t,i.x,n.x,r.x),s(t,i.y,n.y,r.y))},draw:function(t,e){void 0===e&&(e=32);var i=this.getPoints(e);t.beginPath(),t.moveTo(this.p0.x,this.p0.y);for(var n=1;n{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(87842),r=i(83419),s=i(80021),a=i(26099),o=new r({Extends:s,initialize:function(t){void 0===t&&(t=[]),s.call(this,\"SplineCurve\"),this.points=[],this.addPoints(t)},addPoints:function(t){for(var e=0;ei.length-2?i.length-1:s+1],c=i[s>i.length-3?i.length-1:s+2];return e.set(n(o,l.x,h.x,u.x,c.x),n(o,l.y,h.y,u.y,c.y))},toJSON:function(){for(var t=[],e=0;e{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports={Path:i(46669),MoveTo:i(68618),CubicBezier:i(46728),Curve:i(80021),Ellipse:i(73825),Line:i(33951),QuadraticBezier:i(14744),Spline:i(42534)}},68618:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(83419),r=i(26099),s=new n({initialize:function(t,e){this.active=!1,this.p0=new r(t,e)},getPoint:function(t,e){return void 0===e&&(e=new r),e.copy(this.p0)},getPointAt:function(t,e){return this.getPoint(t,e)},getResolution:function(){return 1},getLength:function(){return 0},toJSON:function(){return{type:\"MoveTo\",points:[this.p0.x,this.p0.y]}}});t.exports=s},46669:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(83419),r=i(46728),s=i(73825),a=i(39429),o=i(33951),l=i(68618),h=i(14744),u=i(87841),c=i(42534),d=i(26099),f=i(36383),p=new n({initialize:function(t,e){void 0===t&&(t=0),void 0===e&&(e=0),this.name=\"\",this.defaultDivisions=12,this.curves=[],this.cacheLengths=[],this.autoClose=!1,this.startPoint=new d,this._tmpVec2A=new d,this._tmpVec2B=new d,\"object\"==typeof t?this.fromJSON(t):this.startPoint.set(t,e)},add:function(t){return this.curves.push(t),this},circleTo:function(t,e,i){return void 0===e&&(e=!1),this.ellipseTo(t,t,0,360,e,i)},closePath:function(){var t=this.curves[0].getPoint(0),e=this.curves[this.curves.length-1].getPoint(1);return t.equals(e)||this.curves.push(new o(e,t)),this},cubicBezierTo:function(t,e,i,n,s,a){var o,l,h,u=this.getEndPoint();return t instanceof d?(o=t,l=e,h=i):(o=new d(i,n),l=new d(s,a),h=new d(t,e)),this.add(new r(u,o,l,h))},quadraticBezierTo:function(t,e,i,n){var r,s,a=this.getEndPoint();return t instanceof d?(r=t,s=e):(r=new d(i,n),s=new d(t,e)),this.add(new h(a,r,s))},draw:function(t,e){for(var i=0;i=e)return this.curves[n];n++}return null},getEndPoint:function(t){return void 0===t&&(t=new d),this.curves.length>0?this.curves[this.curves.length-1].getPoint(1,t):t.copy(this.startPoint),t},getLength:function(){var t=this.getCurveLengths();return t[t.length-1]},getPoint:function(t,e){void 0===e&&(e=new d);for(var i=t*this.getLength(),n=this.getCurveLengths(),r=0;r=i){var s=n[r]-i,a=this.curves[r],o=a.getLength(),l=0===o?0:1-s/o;return a.getPointAt(l,e)}r++}return null},getPoints:function(t,e){t||e||(t=this.defaultDivisions);for(var i,n=[],r=0;r1&&!n[n.length-1].equals(n[0])&&n.push(n[0]),n},getRandomPoint:function(t){return void 0===t&&(t=new d),this.getPoint(Math.random(),t)},getSpacedPoints:function(t){void 0===t&&(t=40);for(var e=[],i=0;i<=t;i++)e.push(this.getPoint(i/t));return this.autoClose&&e.push(e[0]),e},getStartPoint:function(t){return void 0===t&&(t=new d),t.copy(this.startPoint)},getTangent:function(t,e){void 0===e&&(e=new d);for(var i=t*this.getLength(),n=this.getCurveLengths(),r=0;r=i){var s=n[r]-i,a=this.curves[r],o=a.getLength(),l=0===o?0:1-s/o;return a.getTangentAt(l,e)}r++}return null},lineTo:function(t,e){t instanceof d?this._tmpVec2B.copy(t):\"object\"==typeof t?this._tmpVec2B.setFromObject(t):this._tmpVec2B.set(t,e);var i=this.getEndPoint(this._tmpVec2A);return this.add(new o([i.x,i.y,this._tmpVec2B.x,this._tmpVec2B.y]))},splineTo:function(t){return t.unshift(this.getEndPoint()),this.add(new c(t))},moveTo:function(t,e){return t instanceof d?this.add(new l(t.x,t.y)):this.add(new l(t,e))},toJSON:function(){for(var t=[],e=0;e{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(83419),r=i(24882),s=new n({initialize:function(t,e){this.parent=t,this.events=e,e||(this.events=t.events?t.events:t),this.list={},this.values={},this._frozen=!1,!t.hasOwnProperty(\"sys\")&&this.events&&this.events.once(r.DESTROY,this.destroy,this)},get:function(t){var e=this.list;if(Array.isArray(t)){for(var i=[],n=0;n{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(83419),r=i(45893),s=i(37277),a=i(44594),o=new n({Extends:r,initialize:function(t){r.call(this,t,t.sys.events),this.scene=t,this.systems=t.sys,t.sys.events.once(a.BOOT,this.boot,this),t.sys.events.on(a.START,this.start,this)},boot:function(){this.events=this.systems.events,this.events.once(a.DESTROY,this.destroy,this)},start:function(){this.events.once(a.SHUTDOWN,this.shutdown,this)},shutdown:function(){this.systems.events.off(a.SHUTDOWN,this.shutdown,this)},destroy:function(){r.prototype.destroy.call(this),this.events.off(a.START,this.start,this),this.scene=null,this.systems=null}});s.register(\"DataManagerPlugin\",o,\"data\"),t.exports=o},10700:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports=\"changedata\"},93608:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports=\"changedata-\"},60883:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports=\"destroy\"},69780:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports=\"removedata\"},22166:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports=\"setdata\"},24882:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports={CHANGE_DATA:i(10700),CHANGE_DATA_KEY:i(93608),DESTROY:i(60883),REMOVE_DATA:i(69780),SET_DATA:i(22166)}},44965:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports={DataManager:i(45893),DataManagerPlugin:i(63646),Events:i(24882)}},7098:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(84148),r={flac:!1,aac:!1,audioData:!1,dolby:!1,m4a:!1,mp3:!1,ogg:!1,opus:!1,wav:!1,webAudio:!1,webm:!1};t.exports=function(){if(\"function\"==typeof importScripts)return r;r.audioData=!!window.Audio,r.webAudio=!(!window.AudioContext&&!window.webkitAudioContext);var t=document.createElement(\"audio\"),e=!!t.canPlayType;try{if(e){var i=function(e,i){var n=t.canPlayType(\"audio/\"+e).replace(/^no$/,\"\");return i?Boolean(n||t.canPlayType(\"audio/\"+i).replace(/^no$/,\"\")):Boolean(n)};if(r.ogg=i('ogg; codecs=\"vorbis\"'),r.opus=i('ogg; codecs=\"opus\"',\"opus\"),r.mp3=i(\"mpeg\"),r.wav=i(\"wav\"),r.m4a=i(\"x-m4a\"),r.aac=i(\"aac\"),r.flac=i(\"flac\",\"x-flac\"),r.webm=i('webm; codecs=\"vorbis\"'),\"\"!==t.canPlayType('audio/mp4; codecs=\"ec-3\"'))if(n.edge)r.dolby=!0;else if(n.safari&&n.safariVersion>=9&&/Mac OS X (\\d+)_(\\d+)/.test(navigator.userAgent)){var s=parseInt(RegExp.$1,10),a=parseInt(RegExp.$2,10);(10===s&&a>=11||s>10)&&(r.dolby=!0)}}}catch(t){}return r}()},84148:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n,r=i(25892),s={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};t.exports=(n=navigator.userAgent,/Edg\\/\\d+/.test(n)?(s.edge=!0,s.es2019=!0):/OPR/.test(n)?(s.opera=!0,s.es2019=!0):/Chrome\\/(\\d+)/.test(n)&&!r.windowsPhone?(s.chrome=!0,s.chromeVersion=parseInt(RegExp.$1,10),s.es2019=s.chromeVersion>69):/Firefox\\D+(\\d+)/.test(n)?(s.firefox=!0,s.firefoxVersion=parseInt(RegExp.$1,10),s.es2019=s.firefoxVersion>10):/AppleWebKit\\/(?!.*CriOS)/.test(n)&&r.iOS?(s.mobileSafari=!0,s.es2019=!0):/MSIE (\\d+\\.\\d+);/.test(n)?(s.ie=!0,s.ieVersion=parseInt(RegExp.$1,10)):/Version\\/(\\d+\\.\\d+(\\.\\d+)?) Safari/.test(n)&&!r.windowsPhone?(s.safari=!0,s.safariVersion=parseInt(RegExp.$1,10),s.es2019=s.safariVersion>10):/Trident\\/(\\d+\\.\\d+)(.*)rv:(\\d+\\.\\d+)/.test(n)&&(s.ie=!0,s.trident=!0,s.tridentVersion=parseInt(RegExp.$1,10),s.ieVersion=parseInt(RegExp.$3,10)),/Silk/.test(n)&&(s.silk=!0),s)},89289:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n,r,s,a=i(27919),o={supportInverseAlpha:!1,supportNewBlendModes:!1};t.exports=(\"function\"!=typeof importScripts&&void 0!==document&&(o.supportNewBlendModes=(n=\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAABAQMAAADD8p2OAAAAA1BMVEX/\",r=\"AAAACklEQVQI12NgAAAAAgAB4iG8MwAAAABJRU5ErkJggg==\",(s=new Image).onload=function(){var t=new Image;t.onload=function(){var e=a.create2D(t,6).getContext(\"2d\",{willReadFrequently:!0});if(e.globalCompositeOperation=\"multiply\",e.drawImage(s,0,0),e.drawImage(t,2,0),!e.getImageData(2,0,1,1))return!1;var i=e.getImageData(2,0,1,1).data;a.remove(t),o.supportNewBlendModes=255===i[0]&&0===i[1]&&0===i[2]},t.src=n+\"/wCKxvRF\"+r},s.src=n+\"AP804Oa6\"+r,!1),o.supportInverseAlpha=function(){var t=a.create2D(this,2).getContext(\"2d\",{willReadFrequently:!0});t.fillStyle=\"rgba(10, 20, 30, 0.5)\",t.fillRect(0,0,1,1);var e=t.getImageData(0,0,1,1);if(null===e)return!1;t.putImageData(e,1,0);var i=t.getImageData(1,0,1,1),n=i.data[0]===e.data[0]&&i.data[1]===e.data[1]&&i.data[2]===e.data[2]&&i.data[3]===e.data[3];return a.remove(this),n}()),o)},89357:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(25892),r=i(84148),s=i(27919),a={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};t.exports=function(){if(\"function\"==typeof importScripts)return a;a.canvas=!!window.CanvasRenderingContext2D;try{a.localStorage=!!localStorage.getItem}catch(t){a.localStorage=!1}a.file=!!(window.File&&window.FileReader&&window.FileList&&window.Blob),a.fileSystem=!!window.requestFileSystem;var t,e,i,o=!1;return a.webGL=function(){if(window.WebGLRenderingContext)try{var t=s.createWebGL(this),e=t.getContext(\"webgl\")||t.getContext(\"experimental-webgl\"),i=s.create2D(this),n=i.getContext(\"2d\",{willReadFrequently:!0}).createImageData(1,1);return o=n.data instanceof Uint8ClampedArray,s.remove(t),s.remove(i),!!e}catch(t){return!1}return!1}(),a.worker=!!window.Worker,a.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,a.getUserMedia=a.getUserMedia&&!!navigator.getUserMedia&&!!window.URL,r.firefox&&r.firefoxVersion<21&&(a.getUserMedia=!1),!n.iOS&&(r.ie||r.firefox||r.chrome)&&(a.canvasBitBltShift=!0),(r.safari||r.mobileSafari)&&(a.canvasBitBltShift=!1),navigator.vibrate=navigator.vibrate||navigator.webkitVibrate||navigator.mozVibrate||navigator.msVibrate,navigator.vibrate&&(a.vibration=!0),\"undefined\"!=typeof ArrayBuffer&&\"undefined\"!=typeof Uint8Array&&\"undefined\"!=typeof Uint32Array&&(a.littleEndian=(t=new ArrayBuffer(4),e=new Uint8Array(t),i=new Uint32Array(t),e[0]=161,e[1]=178,e[2]=195,e[3]=212,3569595041===i[0]||2712847316!==i[0]&&null)),a.support32bit=\"undefined\"!=typeof ArrayBuffer&&\"undefined\"!=typeof Uint8ClampedArray&&\"undefined\"!=typeof Int32Array&&null!==a.littleEndian&&o,a}()},91639:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar e={available:!1,cancel:\"\",keyboard:!1,request:\"\"};t.exports=function(){if(\"function\"==typeof importScripts)return e;var t,i=\"Fullscreen\",n=\"FullScreen\",r=[\"request\"+i,\"request\"+n,\"webkitRequest\"+i,\"webkitRequest\"+n,\"msRequest\"+i,\"msRequest\"+n,\"mozRequest\"+n,\"mozRequest\"+i];for(t=0;t{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(84148),r={gamepads:!1,mspointer:!1,touch:!1,wheelEvent:null};t.exports=(\"function\"==typeof importScripts||((\"ontouchstart\"in document.documentElement||navigator.maxTouchPoints&&navigator.maxTouchPoints>=1)&&(r.touch=!0),(navigator.msPointerEnabled||navigator.pointerEnabled)&&(r.mspointer=!0),navigator.getGamepads&&(r.gamepads=!0),\"onwheel\"in window||n.ie&&\"WheelEvent\"in window?r.wheelEvent=\"wheel\":\"onmousewheel\"in window?r.wheelEvent=\"mousewheel\":n.firefox&&\"MouseScrollEvent\"in window&&(r.wheelEvent=\"DOMMouseScroll\")),r)},25892:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar i={android:!1,chromeOS:!1,cordova:!1,crosswalk:!1,desktop:!1,ejecta:!1,electron:!1,iOS:!1,iOSVersion:0,iPad:!1,iPhone:!1,kindle:!1,linux:!1,macOS:!1,node:!1,nodeWebkit:!1,pixelRatio:1,webApp:!1,windows:!1,windowsPhone:!1};t.exports=function(){if(\"function\"==typeof importScripts)return i;var t=navigator.userAgent;/Windows/.test(t)?i.windows=!0:/Mac OS/.test(t)&&!/like Mac OS/.test(t)?navigator.maxTouchPoints&&navigator.maxTouchPoints>2?(i.iOS=!0,i.iPad=!0,navigator.appVersion.match(/Version\\/(\\d+)/),i.iOSVersion=parseInt(RegExp.$1,10)):i.macOS=!0:/Android/.test(t)?i.android=!0:/Linux/.test(t)?i.linux=!0:/iP[ao]d|iPhone/i.test(t)?(i.iOS=!0,navigator.appVersion.match(/OS (\\d+)/),i.iOSVersion=parseInt(RegExp.$1,10),i.iPhone=-1!==t.toLowerCase().indexOf(\"iphone\"),i.iPad=-1!==t.toLowerCase().indexOf(\"ipad\")):/Kindle/.test(t)||/\\bKF[A-Z][A-Z]+/.test(t)||/Silk.*Mobile Safari/.test(t)?i.kindle=!0:/CrOS/.test(t)&&(i.chromeOS=!0),(/Windows Phone/i.test(t)||/IEMobile/i.test(t))&&(i.android=!1,i.iOS=!1,i.macOS=!1,i.windows=!0,i.windowsPhone=!0);var n=/Silk/.test(t);return(i.windows||i.macOS||i.linux&&!n||i.chromeOS)&&(i.desktop=!0),(i.windowsPhone||/Windows NT/i.test(t)&&/Touch/i.test(t))&&(i.desktop=!1),navigator.standalone&&(i.webApp=!0),\"function\"!=typeof importScripts&&(void 0!==window.cordova&&(i.cordova=!0),void 0!==window.ejecta&&(i.ejecta=!0)),void 0!==e&&e.versions&&e.versions.node&&(i.node=!0),i.node&&\"object\"==typeof e.versions&&(i.nodeWebkit=!!e.versions[\"node-webkit\"],i.electron=!!e.versions.electron),/Crosswalk/.test(t)&&(i.crosswalk=!0),i.pixelRatio=window.devicePixelRatio||1,i}()},43267:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(95540),r={h264:!1,hls:!1,mp4:!1,m4v:!1,ogg:!1,vp9:!1,webm:!1,hasRequestVideoFrame:!1};t.exports=function(){if(\"function\"==typeof importScripts)return r;var t=document.createElement(\"video\"),e=!!t.canPlayType,i=/^no$/;try{e&&(t.canPlayType('video/ogg; codecs=\"theora\"').replace(i,\"\")&&(r.ogg=!0),t.canPlayType('video/mp4; codecs=\"avc1.42E01E\"').replace(i,\"\")&&(r.h264=!0,r.mp4=!0),t.canPlayType(\"video/x-m4v\").replace(i,\"\")&&(r.m4v=!0),t.canPlayType('video/webm; codecs=\"vp8, vorbis\"').replace(i,\"\")&&(r.webm=!0),t.canPlayType('video/webm; codecs=\"vp9\"').replace(i,\"\")&&(r.vp9=!0),t.canPlayType('application/x-mpegURL; codecs=\"avc1.42E01E\"').replace(i,\"\")&&(r.hls=!0))}catch(t){}return t.parentNode&&t.parentNode.removeChild(t),r.getVideoURL=function(t){Array.isArray(t)||(t=[t]);for(var e=0;e{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports={os:i(25892),browser:i(84148),features:i(89357),input:i(31784),audio:i(7098),video:i(43267),fullscreen:i(91639),canvasFeatures:i(89289)}},89422:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(83419),r=new Float32Array(20),s=new n({initialize:function(){this._matrix=new Float32Array(20),this.alpha=1,this._dirty=!0,this._data=new Float32Array(20),this.reset()},set:function(t){return this._matrix.set(t),this._dirty=!0,this},reset:function(){var t=this._matrix;return t.fill(0),t[0]=1,t[6]=1,t[12]=1,t[18]=1,this.alpha=1,this._dirty=!0,this},getData:function(){var t=this._data;return this._dirty&&(t.set(this._matrix),t[4]/=255,t[9]/=255,t[14]/=255,t[19]/=255,this._dirty=!1),t},brightness:function(t,e){void 0===t&&(t=0),void 0===e&&(e=!1);var i=t;return this.multiply([i,0,0,0,0,0,i,0,0,0,0,0,i,0,0,0,0,0,1,0],e)},saturate:function(t,e){void 0===t&&(t=0),void 0===e&&(e=!1);var i=2*t/3+1,n=-.5*(i-1);return this.multiply([i,n,n,0,0,n,i,n,0,0,n,n,i,0,0,0,0,0,1,0],e)},desaturate:function(t){return void 0===t&&(t=!1),this.saturate(-1,t)},hue:function(t,e){void 0===t&&(t=0),void 0===e&&(e=!1),t=t/180*Math.PI;var i=Math.cos(t),n=Math.sin(t);return this.multiply([.213+.787*i+-.213*n,.715+-.715*i+-.715*n,.072+-.072*i+.928*n,0,0,.213+-.213*i+.143*n,.715+i*(1-.715)+.14*n,.072+-.072*i+-.283*n,0,0,.213+-.213*i+-.787*n,.715+-.715*i+.715*n,.072+.928*i+.072*n,0,0,0,0,0,1,0],e)},grayscale:function(t,e){return void 0===t&&(t=1),void 0===e&&(e=!1),this.saturate(-t,e)},blackWhite:function(t){return void 0===t&&(t=!1),this.multiply(s.BLACK_WHITE,t)},contrast:function(t,e){void 0===t&&(t=0),void 0===e&&(e=!1);var i=t+1,n=-.5*(i-1);return this.multiply([i,0,0,0,n,0,i,0,0,n,0,0,i,0,n,0,0,0,1,0],e)},negative:function(t){return void 0===t&&(t=!1),this.multiply(s.NEGATIVE,t)},desaturateLuminance:function(t){return void 0===t&&(t=!1),this.multiply(s.DESATURATE_LUMINANCE,t)},sepia:function(t){return void 0===t&&(t=!1),this.multiply(s.SEPIA,t)},night:function(t,e){return void 0===t&&(t=.1),void 0===e&&(e=!1),this.multiply([-2*t,-t,0,0,0,-t,0,t,0,0,0,t,2*t,0,0,0,0,0,1,0],e)},lsd:function(t){return void 0===t&&(t=!1),this.multiply(s.LSD,t)},brown:function(t){return void 0===t&&(t=!1),this.multiply(s.BROWN,t)},vintagePinhole:function(t){return void 0===t&&(t=!1),this.multiply(s.VINTAGE,t)},kodachrome:function(t){return void 0===t&&(t=!1),this.multiply(s.KODACHROME,t)},technicolor:function(t){return void 0===t&&(t=!1),this.multiply(s.TECHNICOLOR,t)},polaroid:function(t){return void 0===t&&(t=!1),this.multiply(s.POLAROID,t)},shiftToBGR:function(t){return void 0===t&&(t=!1),this.multiply(s.SHIFT_BGR,t)},multiply:function(t,e){void 0===e&&(e=!1),e||this.reset();var i=this._matrix,n=r;return n.set(i),i.set([n[0]*t[0]+n[1]*t[5]+n[2]*t[10]+n[3]*t[15],n[0]*t[1]+n[1]*t[6]+n[2]*t[11]+n[3]*t[16],n[0]*t[2]+n[1]*t[7]+n[2]*t[12]+n[3]*t[17],n[0]*t[3]+n[1]*t[8]+n[2]*t[13]+n[3]*t[18],n[0]*t[4]+n[1]*t[9]+n[2]*t[14]+n[3]*t[19]+n[4],n[5]*t[0]+n[6]*t[5]+n[7]*t[10]+n[8]*t[15],n[5]*t[1]+n[6]*t[6]+n[7]*t[11]+n[8]*t[16],n[5]*t[2]+n[6]*t[7]+n[7]*t[12]+n[8]*t[17],n[5]*t[3]+n[6]*t[8]+n[7]*t[13]+n[8]*t[18],n[5]*t[4]+n[6]*t[9]+n[7]*t[14]+n[8]*t[19]+n[9],n[10]*t[0]+n[11]*t[5]+n[12]*t[10]+n[13]*t[15],n[10]*t[1]+n[11]*t[6]+n[12]*t[11]+n[13]*t[16],n[10]*t[2]+n[11]*t[7]+n[12]*t[12]+n[13]*t[17],n[10]*t[3]+n[11]*t[8]+n[12]*t[13]+n[13]*t[18],n[10]*t[4]+n[11]*t[9]+n[12]*t[14]+n[13]*t[19]+n[14],n[15]*t[0]+n[16]*t[5]+n[17]*t[10]+n[18]*t[15],n[15]*t[1]+n[16]*t[6]+n[17]*t[11]+n[18]*t[16],n[15]*t[2]+n[16]*t[7]+n[17]*t[12]+n[18]*t[17],n[15]*t[3]+n[16]*t[8]+n[17]*t[13]+n[18]*t[18],n[15]*t[4]+n[16]*t[9]+n[17]*t[14]+n[18]*t[19]+n[19]]),this._dirty=!0,this}});s.BLACK_WHITE=[.3,.6,.1,0,0,.3,.6,.1,0,0,.3,.6,.1,0,0,0,0,0,1,0],s.NEGATIVE=[-1,0,0,1,0,0,-1,0,1,0,0,0,-1,1,0,0,0,0,1,0],s.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],s.SEPIA=[.393,.7689999,.18899999,0,0,.349,.6859999,.16799999,0,0,.272,.5339999,.13099999,0,0,0,0,0,1,0],s.LSD=[2,-.4,.5,0,0,-.5,2,-.4,0,0,-.4,-.5,3,0,0,0,0,0,1,0],s.BROWN=[.5997023498159715,.34553243048391263,-.2708298674538042,0,47.43192855600873,-.037703249837783157,.8609577587992641,.15059552388459913,0,-36.96841498319127,.24113635128153335,-.07441037908422492,.44972182064877153,0,-7.562075277591283,0,0,0,1,0],s.VINTAGE=[.6279345635605994,.3202183420819367,-.03965408211312453,0,9.651285835294123,.02578397704808868,.6441188644374771,.03259127616149294,0,7.462829176470591,.0466055556782719,-.0851232987247891,.5241648018700465,0,5.159190588235296,0,0,0,1,0],s.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],s.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],s.POLAROID=[1.438,-.062,-.062,0,0,-.122,1.378,-.122,0,0,-.016,-.016,1.483,0,0,0,0,0,1,0],s.SHIFT_BGR=[0,0,1,0,0,0,1,0,0,0,1,0,0,0,0,0,0,0,1,0],t.exports=s},51767:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(83419),r=i(29747),s=new n({initialize:function(t,e,i){this._rgb=[0,0,0],this.onChangeCallback=r,this.dirty=!1,this.set(t,e,i)},set:function(t,e,i){return void 0===t&&(t=0),void 0===e&&(e=0),void 0===i&&(i=0),this._rgb=[t,e,i],this.onChange(),this},equals:function(t,e,i){var n=this._rgb;return n[0]===t&&n[1]===e&&n[2]===i},onChange:function(){this.dirty=!0;var t=this._rgb;this.onChangeCallback.call(this,t[0],t[1],t[2])},r:{get:function(){return this._rgb[0]},set:function(t){this._rgb[0]=t,this.onChange()}},g:{get:function(){return this._rgb[1]},set:function(t){this._rgb[1]=t,this.onChange()}},b:{get:function(){return this._rgb[2]},set:function(t){this._rgb[2]=t,this.onChange()}},destroy:function(){this.onChangeCallback=null}});t.exports=s},60461:t=>{t.exports={TOP_LEFT:0,TOP_CENTER:1,TOP_RIGHT:2,LEFT_TOP:3,LEFT_CENTER:4,LEFT_BOTTOM:5,CENTER:6,RIGHT_TOP:7,RIGHT_CENTER:8,RIGHT_BOTTOM:9,BOTTOM_LEFT:10,BOTTOM_CENTER:11,BOTTOM_RIGHT:12}},54312:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(62235),r=i(35893),s=i(86327),a=i(88417);t.exports=function(t,e,i,o){return void 0===i&&(i=0),void 0===o&&(o=0),a(t,r(e)+i),s(t,n(e)+o),t}},46768:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(62235),r=i(26541),s=i(86327),a=i(385);t.exports=function(t,e,i,o){return void 0===i&&(i=0),void 0===o&&(o=0),a(t,r(e)-i),s(t,n(e)+o),t}},35827:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(62235),r=i(54380),s=i(86327),a=i(40136);t.exports=function(t,e,i,o){return void 0===i&&(i=0),void 0===o&&(o=0),a(t,r(e)+i),s(t,n(e)+o),t}},46871:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(66786),r=i(35893),s=i(7702);t.exports=function(t,e,i,a){return void 0===i&&(i=0),void 0===a&&(a=0),n(t,r(e)+i,s(e)+a),t}},5198:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(7702),r=i(26541),s=i(20786),a=i(385);t.exports=function(t,e,i,o){return void 0===i&&(i=0),void 0===o&&(o=0),a(t,r(e)-i),s(t,n(e)+o),t}},11879:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(60461),r=[];r[n.BOTTOM_CENTER]=i(54312),r[n.BOTTOM_LEFT]=i(46768),r[n.BOTTOM_RIGHT]=i(35827),r[n.CENTER]=i(46871),r[n.LEFT_CENTER]=i(5198),r[n.RIGHT_CENTER]=i(80503),r[n.TOP_CENTER]=i(89698),r[n.TOP_LEFT]=i(922),r[n.TOP_RIGHT]=i(21373),r[n.LEFT_BOTTOM]=r[n.BOTTOM_LEFT],r[n.LEFT_TOP]=r[n.TOP_LEFT],r[n.RIGHT_BOTTOM]=r[n.BOTTOM_RIGHT],r[n.RIGHT_TOP]=r[n.TOP_RIGHT],t.exports=function(t,e,i,n,s){return r[i](t,e,n,s)}},80503:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(7702),r=i(54380),s=i(20786),a=i(40136);t.exports=function(t,e,i,o){return void 0===i&&(i=0),void 0===o&&(o=0),a(t,r(e)+i),s(t,n(e)+o),t}},89698:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(35893),r=i(17717),s=i(88417),a=i(66737);t.exports=function(t,e,i,o){return void 0===i&&(i=0),void 0===o&&(o=0),s(t,n(e)+i),a(t,r(e)-o),t}},922:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(26541),r=i(17717),s=i(385),a=i(66737);t.exports=function(t,e,i,o){return void 0===i&&(i=0),void 0===o&&(o=0),s(t,n(e)-i),a(t,r(e)-o),t}},21373:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(54380),r=i(17717),s=i(40136),a=i(66737);t.exports=function(t,e,i,o){return void 0===i&&(i=0),void 0===o&&(o=0),s(t,n(e)+i),a(t,r(e)-o),t}},91660:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports={BottomCenter:i(54312),BottomLeft:i(46768),BottomRight:i(35827),Center:i(46871),LeftCenter:i(5198),QuickSet:i(11879),RightCenter:i(80503),TopCenter:i(89698),TopLeft:i(922),TopRight:i(21373)}},71926:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(60461),r=i(79291),s={In:i(91660),To:i(16694)};s=r(!1,s,n),t.exports=s},21578:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(62235),r=i(35893),s=i(88417),a=i(66737);t.exports=function(t,e,i,o){return void 0===i&&(i=0),void 0===o&&(o=0),s(t,r(e)+i),a(t,n(e)+o),t}},10210:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(62235),r=i(26541),s=i(385),a=i(66737);t.exports=function(t,e,i,o){return void 0===i&&(i=0),void 0===o&&(o=0),s(t,r(e)-i),a(t,n(e)+o),t}},82341:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(62235),r=i(54380),s=i(40136),a=i(66737);t.exports=function(t,e,i,o){return void 0===i&&(i=0),void 0===o&&(o=0),s(t,r(e)+i),a(t,n(e)+o),t}},87958:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(62235),r=i(26541),s=i(86327),a=i(40136);t.exports=function(t,e,i,o){return void 0===i&&(i=0),void 0===o&&(o=0),a(t,r(e)-i),s(t,n(e)+o),t}},40080:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(7702),r=i(26541),s=i(20786),a=i(40136);t.exports=function(t,e,i,o){return void 0===i&&(i=0),void 0===o&&(o=0),a(t,r(e)-i),s(t,n(e)+o),t}},88466:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(26541),r=i(17717),s=i(40136),a=i(66737);t.exports=function(t,e,i,o){return void 0===i&&(i=0),void 0===o&&(o=0),s(t,n(e)-i),a(t,r(e)-o),t}},38829:(t,e,i)=>{\n/**\n * @author samme\n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(60461),r=[];r[n.BOTTOM_CENTER]=i(21578),r[n.BOTTOM_LEFT]=i(10210),r[n.BOTTOM_RIGHT]=i(82341),r[n.LEFT_BOTTOM]=i(87958),r[n.LEFT_CENTER]=i(40080),r[n.LEFT_TOP]=i(88466),r[n.RIGHT_BOTTOM]=i(19211),r[n.RIGHT_CENTER]=i(34609),r[n.RIGHT_TOP]=i(48741),r[n.TOP_CENTER]=i(49440),r[n.TOP_LEFT]=i(81288),r[n.TOP_RIGHT]=i(61323),t.exports=function(t,e,i,n,s){return r[i](t,e,n,s)}},19211:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(62235),r=i(54380),s=i(86327),a=i(385);t.exports=function(t,e,i,o){return void 0===i&&(i=0),void 0===o&&(o=0),a(t,r(e)+i),s(t,n(e)+o),t}},34609:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(7702),r=i(54380),s=i(20786),a=i(385);t.exports=function(t,e,i,o){return void 0===i&&(i=0),void 0===o&&(o=0),a(t,r(e)+i),s(t,n(e)+o),t}},48741:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(54380),r=i(17717),s=i(385),a=i(66737);t.exports=function(t,e,i,o){return void 0===i&&(i=0),void 0===o&&(o=0),s(t,n(e)+i),a(t,r(e)-o),t}},49440:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(35893),r=i(17717),s=i(86327),a=i(88417);t.exports=function(t,e,i,o){return void 0===i&&(i=0),void 0===o&&(o=0),a(t,n(e)+i),s(t,r(e)-o),t}},81288:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(26541),r=i(17717),s=i(86327),a=i(385);t.exports=function(t,e,i,o){return void 0===i&&(i=0),void 0===o&&(o=0),a(t,n(e)-i),s(t,r(e)-o),t}},61323:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(54380),r=i(17717),s=i(86327),a=i(40136);t.exports=function(t,e,i,o){return void 0===i&&(i=0),void 0===o&&(o=0),a(t,n(e)+i),s(t,r(e)-o),t}},16694:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports={BottomCenter:i(21578),BottomLeft:i(10210),BottomRight:i(82341),LeftBottom:i(87958),LeftCenter:i(40080),LeftTop:i(88466),QuickSet:i(38829),RightBottom:i(19211),RightCenter:i(34609),RightTop:i(48741),TopCenter:i(49440),TopLeft:i(81288),TopRight:i(61323)}},66786:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(88417),r=i(20786);t.exports=function(t,e,i){return n(t,e),r(t,i)}},62235:t=>{t.exports=function(t){return t.y+t.height-t.height*t.originY}},72873:(t,e,i)=>{\n/**\n * @author samme\n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(62235),r=i(26541),s=i(54380),a=i(17717),o=i(87841);t.exports=function(t,e){void 0===e&&(e=new o);var i=r(t),l=a(t);return e.x=i,e.y=l,e.width=s(t)-i,e.height=n(t)-l,e}},35893:t=>{t.exports=function(t){return t.x-t.width*t.originX+.5*t.width}},7702:t=>{t.exports=function(t){return t.y-t.height*t.originY+.5*t.height}},26541:t=>{t.exports=function(t){return t.x-t.width*t.originX}},87431:t=>{t.exports=function(t){return t.width*t.originX}},46928:t=>{t.exports=function(t){return t.height*t.originY}},54380:t=>{t.exports=function(t){return t.x+t.width-t.width*t.originX}},17717:t=>{t.exports=function(t){return t.y-t.height*t.originY}},86327:t=>{t.exports=function(t,e){return t.y=e-t.height+t.height*t.originY,t}},88417:t=>{t.exports=function(t,e){var i=t.width*t.originX;return t.x=e+i-.5*t.width,t}},20786:t=>{t.exports=function(t,e){var i=t.height*t.originY;return t.y=e+i-.5*t.height,t}},385:t=>{t.exports=function(t,e){return t.x=e+t.width*t.originX,t}},40136:t=>{t.exports=function(t,e){return t.x=e-t.width+t.width*t.originX,t}},66737:t=>{t.exports=function(t,e){return t.y=e+t.height*t.originY,t}},58724:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports={CenterOn:i(66786),GetBottom:i(62235),GetBounds:i(72873),GetCenterX:i(35893),GetCenterY:i(7702),GetLeft:i(26541),GetOffsetX:i(87431),GetOffsetY:i(46928),GetRight:i(54380),GetTop:i(17717),SetBottom:i(86327),SetCenterX:i(88417),SetCenterY:i(20786),SetLeft:i(385),SetRight:i(40136),SetTop:i(66737)}},20623:t=>{t.exports={setCrisp:function(t){return[\"optimizeSpeed\",\"-moz-crisp-edges\",\"-o-crisp-edges\",\"-webkit-optimize-contrast\",\"optimize-contrast\",\"crisp-edges\",\"pixelated\"].forEach((function(e){t.style[\"image-rendering\"]=e})),t.style.msInterpolationMode=\"nearest-neighbor\",t},setBicubic:function(t){return t.style[\"image-rendering\"]=\"auto\",t.style.msInterpolationMode=\"bicubic\",t}}},27919:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n,r,s,a=i(8054),o=i(68703),l=[],h=!1;t.exports=(s=function(){var t=0;return l.forEach((function(e){e.parent&&t++})),t},{create2D:function(t,e,i){return n(t,e,i,a.CANVAS)},create:n=function(t,e,i,n,s){var u;void 0===e&&(e=1),void 0===i&&(i=1),void 0===n&&(n=a.CANVAS),void 0===s&&(s=!1);var c=r(n);return null===c?(c={parent:t,canvas:document.createElement(\"canvas\"),type:n},n===a.CANVAS&&l.push(c),u=c.canvas):(c.parent=t,u=c.canvas),s&&(c.parent=u),u.width=e,u.height=i,h&&n===a.CANVAS&&o.disable(u.getContext(\"2d\",{willReadFrequently:!1})),u},createWebGL:function(t,e,i){return n(t,e,i,a.WEBGL)},disableSmoothing:function(){h=!0},enableSmoothing:function(){h=!1},first:r=function(t){if(void 0===t&&(t=a.CANVAS),t===a.WEBGL)return null;for(var e=0;e{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar e,i=\"\";t.exports={disable:function(t){return\"\"===i&&(i=e(t)),i&&(t[i]=!1),t},enable:function(t){return\"\"===i&&(i=e(t)),i&&(t[i]=!0),t},getPrefix:e=function(t){for(var e=[\"i\",\"webkitI\",\"msI\",\"mozI\",\"oI\"],i=0;i{t.exports=function(t,e){return void 0===e&&(e=\"none\"),t.style.msTouchAction=e,t.style[\"ms-touch-action\"]=e,t.style[\"touch-action\"]=e,t}},91610:t=>{t.exports=function(t,e){return void 0===e&&(e=\"none\"),[\"-webkit-\",\"-khtml-\",\"-moz-\",\"-ms-\",\"\"].forEach((function(i){t.style[i+\"user-select\"]=e})),t.style[\"-webkit-touch-callout\"]=e,t.style[\"-webkit-tap-highlight-color\"]=\"rgba(0, 0, 0, 0)\",t}},26253:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports={CanvasInterpolation:i(20623),CanvasPool:i(27919),Smoothing:i(68703),TouchAction:i(65208),UserSelect:i(91610)}},40987:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(83419),r=i(37589),s=i(1e3),a=i(7537),o=i(87837),l=new n({initialize:function(t,e,i,n){void 0===t&&(t=0),void 0===e&&(e=0),void 0===i&&(i=0),void 0===n&&(n=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(t,e,i,n)},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(t,e,i,n,r){return void 0===n&&(n=255),void 0===r&&(r=!0),this._locked=!0,this.red=t,this.green=e,this.blue=i,this.alpha=n,this._locked=!1,this.update(r)},setGLTo:function(t,e,i,n){return void 0===n&&(n=1),this._locked=!0,this.redGL=t,this.greenGL=e,this.blueGL=i,this.alphaGL=n,this._locked=!1,this.update(!0)},setFromRGB:function(t){return this._locked=!0,this.red=t.r,this.green=t.g,this.blue=t.b,t.hasOwnProperty(\"a\")&&(this.alpha=t.a),this._locked=!1,this.update(!0)},setFromHSV:function(t,e,i){return a(t,e,i,this)},update:function(t){if(void 0===t&&(t=!1),this._locked)return this;var e=this.r,i=this.g,n=this.b,a=this.a;return this._color=r(e,i,n),this._color32=s(e,i,n,a),this._rgba=\"rgba(\"+e+\",\"+i+\",\"+n+\",\"+a/255+\")\",t&&o(e,i,n,this),this},updateHSV:function(){var t=this.r,e=this.g,i=this.b;return o(t,e,i,this),this},clone:function(){return new l(this.r,this.g,this.b,this.a)},gray:function(t){return this.setTo(t,t,t)},random:function(t,e){void 0===t&&(t=0),void 0===e&&(e=255);var i=Math.floor(t+Math.random()*(e-t)),n=Math.floor(t+Math.random()*(e-t)),r=Math.floor(t+Math.random()*(e-t));return this.setTo(i,n,r)},randomGray:function(t,e){void 0===t&&(t=0),void 0===e&&(e=255);var i=Math.floor(t+Math.random()*(e-t));return this.setTo(i,i,i)},saturate:function(t){return this.s+=t/100,this},desaturate:function(t){return this.s-=t/100,this},lighten:function(t){return this.v+=t/100,this},darken:function(t){return this.v-=t/100,this},brighten:function(t){var e=this.r,i=this.g,n=this.b;return e=Math.max(0,Math.min(255,e-Math.round(-t/100*255))),i=Math.max(0,Math.min(255,i-Math.round(-t/100*255))),n=Math.max(0,Math.min(255,n-Math.round(-t/100*255))),this.setTo(e,i,n)},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(t){this.gl[0]=Math.min(Math.abs(t),1),this.r=Math.floor(255*this.gl[0]),this.update(!0)}},greenGL:{get:function(){return this.gl[1]},set:function(t){this.gl[1]=Math.min(Math.abs(t),1),this.g=Math.floor(255*this.gl[1]),this.update(!0)}},blueGL:{get:function(){return this.gl[2]},set:function(t){this.gl[2]=Math.min(Math.abs(t),1),this.b=Math.floor(255*this.gl[2]),this.update(!0)}},alphaGL:{get:function(){return this.gl[3]},set:function(t){this.gl[3]=Math.min(Math.abs(t),1),this.a=Math.floor(255*this.gl[3]),this.update()}},red:{get:function(){return this.r},set:function(t){t=Math.floor(Math.abs(t)),this.r=Math.min(t,255),this.gl[0]=t/255,this.update(!0)}},green:{get:function(){return this.g},set:function(t){t=Math.floor(Math.abs(t)),this.g=Math.min(t,255),this.gl[1]=t/255,this.update(!0)}},blue:{get:function(){return this.b},set:function(t){t=Math.floor(Math.abs(t)),this.b=Math.min(t,255),this.gl[2]=t/255,this.update(!0)}},alpha:{get:function(){return this.a},set:function(t){t=Math.floor(Math.abs(t)),this.a=Math.min(t,255),this.gl[3]=t/255,this.update()}},h:{get:function(){return this._h},set:function(t){this._h=t,a(t,this._s,this._v,this)}},s:{get:function(){return this._s},set:function(t){this._s=t,a(this._h,t,this._v,this)}},v:{get:function(){return this._v},set:function(t){this._v=t,a(this._h,this._s,t,this)}}});t.exports=l},92728:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(37589);t.exports=function(t){void 0===t&&(t=1024);var e,i=[],r=255,s=0,a=0;for(e=0;e<=255;e++)i.push({r:r,g:e,b:a,color:n(r,e,a)});for(s=255,e=255;e>=0;e--)i.push({r:e,g:s,b:a,color:n(e,s,a)});for(r=0,e=0;e<=255;e++,s--)i.push({r:r,g:s,b:e,color:n(r,s,e)});for(s=0,a=255,e=0;e<=255;e++,a--,r++)i.push({r:r,g:s,b:a,color:n(r,s,a)});if(1024===t)return i;var o=[],l=0,h=1024/t;for(e=0;e{t.exports=function(t){var e={r:t>>16&255,g:t>>8&255,b:255&t,a:255};return t>16777215&&(e.a=t>>>24),e}},62957:t=>{t.exports=function(t){var e=t.toString(16);return 1===e.length?\"0\"+e:e}},37589:t=>{t.exports=function(t,e,i){return t<<16|e<<8|i}},1e3:t=>{t.exports=function(t,e,i,n){return n<<24|t<<16|e<<8|i}},62183:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(40987),r=i(89528);t.exports=function(t,e,i){var s=i,a=i,o=i;if(0!==e){var l=i<.5?i*(1+e):i+e-i*e,h=2*i-l;s=r(h,l,t+1/3),a=r(h,l,t),o=r(h,l,t-1/3)}return(new n).setGLTo(s,a,o,1)}},27939:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(7537);t.exports=function(t,e){void 0===t&&(t=1),void 0===e&&(e=1);for(var i=[],r=0;r<=359;r++)i.push(n(r/359,t,e));return i}},7537:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(37589);function r(t,e,i,n){var r=(t+6*e)%6,s=Math.min(r,4-r,1);return Math.round(255*(n-n*i*Math.max(0,s)))}t.exports=function(t,e,i,s){void 0===e&&(e=1),void 0===i&&(i=1);var a=r(5,t,e,i),o=r(3,t,e,i),l=r(1,t,e,i);return s?s.setTo?s.setTo(a,o,l,s.alpha,!0):(s.r=a,s.g=o,s.b=l,s.color=n(a,o,l),s):{r:a,g:o,b:l,color:n(a,o,l)}}},70238:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(40987);t.exports=function(t){var e=new n;t=t.replace(/^(?:#|0x)?([a-f\\d])([a-f\\d])([a-f\\d])$/i,(function(t,e,i,n){return e+e+i+i+n+n}));var i=/^(?:#|0x)?([a-f\\d]{2})([a-f\\d]{2})([a-f\\d]{2})$/i.exec(t);if(i){var r=parseInt(i[1],16),s=parseInt(i[2],16),a=parseInt(i[3],16);e.setTo(r,s,a)}return e}},89528:t=>{t.exports=function(t,e,i){return i<0&&(i+=1),i>1&&(i-=1),i<1/6?t+6*(e-t)*i:i<.5?e:i<2/3?t+(e-t)*(2/3-i)*6:t}},30100:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(40987),r=i(90664);t.exports=function(t){var e=r(t);return new n(e.r,e.g,e.b,e.a)}},90664:t=>{t.exports=function(t){return t>16777215?{a:t>>>24,r:t>>16&255,g:t>>8&255,b:255&t}:{a:255,r:t>>16&255,g:t>>8&255,b:255&t}}},13699:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(28915),r=i(37589),s=function(t,e,i,s,a,o,l,h){void 0===l&&(l=100),void 0===h&&(h=0);var u=h/l,c=n(t,s,u),d=n(e,a,u),f=n(i,o,u);return{r:c,g:d,b:f,a:255,color:r(c,d,f)}};t.exports={RGBWithRGB:s,ColorWithRGB:function(t,e,i,n,r,a){return void 0===r&&(r=100),void 0===a&&(a=0),s(t.r,t.g,t.b,e,i,n,r,a)},ColorWithColor:function(t,e,i,n){return void 0===i&&(i=100),void 0===n&&(n=0),s(t.r,t.g,t.b,e.r,e.g,e.b,i,n)}}},68957:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(40987);t.exports=function(t){return new n(t.r,t.g,t.b,t.a)}},87388:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(40987);t.exports=function(t){var e=new n,i=/^rgba?\\(\\s*(\\d+)\\s*,\\s*(\\d+)\\s*,\\s*(\\d+)\\s*(?:,\\s*(\\d+(?:\\.\\d+)?))?\\s*\\)$/.exec(t.toLowerCase());if(i){var r=parseInt(i[1],10),s=parseInt(i[2],10),a=parseInt(i[3],10),o=void 0!==i[4]?parseFloat(i[4]):1;e.setTo(r,s,a,255*o)}return e}},87837:t=>{t.exports=function(t,e,i,n){void 0===n&&(n={h:0,s:0,v:0}),t/=255,e/=255,i/=255;var r=Math.min(t,e,i),s=Math.max(t,e,i),a=s-r,o=0,l=0===s?0:a/s,h=s;return s!==r&&(s===t?o=(e-i)/a+(e{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(62957);t.exports=function(t,e,i,r,s){return void 0===r&&(r=255),void 0===s&&(s=\"#\"),\"#\"===s?\"#\"+((1<<24)+(t<<16)+(e<<8)+i).toString(16).slice(1,7):\"0x\"+n(r)+n(t)+n(e)+n(i)}},85386:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(30976),r=i(40987);t.exports=function(t,e){return void 0===t&&(t=0),void 0===e&&(e=255),new r(n(t,e),n(t,e),n(t,e))}},80333:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(70238),r=i(30100),s=i(68957),a=i(87388);t.exports=function(t){switch(typeof t){case\"string\":return\"rgb\"===t.substr(0,3).toLowerCase()?a(t):n(t);case\"number\":return r(t);case\"object\":return s(t)}}},3956:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(40987);n.ColorSpectrum=i(92728),n.ColorToRGBA=i(91588),n.ComponentToHex=i(62957),n.GetColor=i(37589),n.GetColor32=i(1e3),n.HexStringToColor=i(70238),n.HSLToColor=i(62183),n.HSVColorWheel=i(27939),n.HSVToRGB=i(7537),n.HueToComponent=i(89528),n.IntegerToColor=i(30100),n.IntegerToRGB=i(90664),n.Interpolate=i(13699),n.ObjectToColor=i(68957),n.RandomRGB=i(85386),n.RGBStringToColor=i(87388),n.RGBToHSV=i(87837),n.RGBToString=i(75723),n.ValueToColor=i(80333),t.exports=n},27460:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports={Align:i(71926),BaseShader:i(73894),Bounds:i(58724),Canvas:i(26253),Color:i(3956),ColorMatrix:i(89422),Masks:i(69781),RGB:i(51767)}},6858:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(83419),r=i(39429),s=new n({initialize:function(t,e,i,n,r,s){e||(e=t.sys.make.image({x:i,y:n,key:r,frame:s,add:!1})),this.bitmapMask=e,this.invertAlpha=!1,this.isStencil=!1},setBitmap:function(t){this.bitmapMask=t},preRenderWebGL:function(t,e,i){t.pipelines.BITMAPMASK_PIPELINE.beginMask(this,e,i)},postRenderWebGL:function(t,e,i){t.pipelines.BITMAPMASK_PIPELINE.endMask(this,e,i)},preRenderCanvas:function(){},postRenderCanvas:function(){},destroy:function(){this.bitmapMask=null}});r.register(\"bitmapMask\",(function(t,e,i,n,r){return new s(this.scene,t,e,i,n,r)})),t.exports=s},80661:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=new(i(83419))({initialize:function(t,e){this.geometryMask=e,this.invertAlpha=!1,this.isStencil=!0,this.level=0},setShape:function(t){return this.geometryMask=t,this},setInvertAlpha:function(t){return void 0===t&&(t=!0),this.invertAlpha=t,this},preRenderWebGL:function(t,e,i){var n=t.gl;t.flush(),0===t.maskStack.length&&(n.enable(n.STENCIL_TEST),n.clear(n.STENCIL_BUFFER_BIT),t.maskCount=0),t.currentCameraMask.mask!==this&&(t.currentMask.mask=this),t.maskStack.push({mask:this,camera:i}),this.applyStencil(t,i,!0),t.maskCount++},applyStencil:function(t,e,i){var n=t.gl,r=this.geometryMask,s=t.maskCount;n.colorMask(!1,!1,!1,!1),i?(n.stencilFunc(n.EQUAL,s,255),n.stencilOp(n.KEEP,n.KEEP,n.INCR),s++):(n.stencilFunc(n.EQUAL,s+1,255),n.stencilOp(n.KEEP,n.KEEP,n.DECR)),this.level=s,r.renderWebGL(t,r,e),t.flush(),n.colorMask(!0,!0,!0,!0),n.stencilOp(n.KEEP,n.KEEP,n.KEEP),this.invertAlpha?n.stencilFunc(n.NOTEQUAL,s,255):n.stencilFunc(n.EQUAL,s,255)},postRenderWebGL:function(t){var e=t.gl;t.maskStack.pop(),t.maskCount--,t.flush();var i=t.currentMask;if(0===t.maskStack.length)i.mask=null,e.disable(e.STENCIL_TEST);else{var n=t.maskStack[t.maskStack.length-1];n.mask.applyStencil(t,n.camera,!1),t.currentCameraMask.mask!==n.mask?(i.mask=n.mask,i.camera=n.camera):i.mask=null}},preRenderCanvas:function(t,e,i){var n=this.geometryMask;t.currentContext.save(),n.renderCanvas(t,n,i,null,null,!0),t.currentContext.clip()},postRenderCanvas:function(t){t.currentContext.restore()},destroy:function(){this.geometryMask=null}});t.exports=n},69781:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports={BitmapMask:i(6858),GeometryMask:i(80661)}},73894:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=new(i(83419))({initialize:function(t,e,i,n){e&&\"\"!==e||(e=[\"precision mediump float;\",\"uniform vec2 resolution;\",\"varying vec2 fragCoord;\",\"void main () {\",\" vec2 uv = fragCoord / resolution.xy;\",\" gl_FragColor = vec4(uv.xyx, 1.0);\",\"}\"].join(\"\\n\")),i&&\"\"!==i||(i=[\"precision mediump float;\",\"uniform mat4 uProjectionMatrix;\",\"uniform mat4 uViewMatrix;\",\"uniform vec2 uResolution;\",\"attribute vec2 inPosition;\",\"varying vec2 fragCoord;\",\"varying vec2 outTexCoord;\",\"void main () {\",\" gl_Position = uProjectionMatrix * uViewMatrix * vec4(inPosition, 1.0, 1.0);\",\" fragCoord = vec2(inPosition.x, uResolution.y - inPosition.y);\",\" outTexCoord = vec2(inPosition.x / uResolution.x, fragCoord.y / uResolution.y);\",\"}\"].join(\"\\n\")),void 0===n&&(n=null),this.key=t,this.fragmentSrc=e,this.vertexSrc=i,this.uniforms=n}});t.exports=n},40366:t=>{t.exports=function(t,e){var i;if(e)\"string\"==typeof e?i=document.getElementById(e):\"object\"==typeof e&&1===e.nodeType&&(i=e);else if(t.parentElement||null===e)return t;return i||(i=document.body),i.appendChild(t),t}},83719:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(40366);t.exports=function(t){var e=t.config;if(e.parent&&e.domCreateContainer){var i=document.createElement(\"div\");i.style.cssText=[\"display: block;\",\"width: \"+t.scale.width+\"px;\",\"height: \"+t.scale.height+\"px;\",\"padding: 0; margin: 0;\",\"position: absolute;\",\"overflow: hidden;\",\"pointer-events: \"+e.domPointerEvents+\";\",\"transform: scale(1);\",\"transform-origin: left top;\"].join(\" \"),t.domContainer=i,n(i,e.parent)}}},57264:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(25892);t.exports=function(t){if(\"complete\"!==document.readyState&&\"interactive\"!==document.readyState){var e=function(){document.removeEventListener(\"deviceready\",e,!0),document.removeEventListener(\"DOMContentLoaded\",e,!0),window.removeEventListener(\"load\",e,!0),t()};document.body?n.cordova?document.addEventListener(\"deviceready\",e,!1):(document.addEventListener(\"DOMContentLoaded\",e,!0),window.addEventListener(\"load\",e,!0)):window.setTimeout(e,20)}else t()}},57811:t=>{t.exports=function(t){if(!t)return window.innerHeight;var e=Math.abs(window.orientation),i={w:0,h:0},n=document.createElement(\"div\");return n.setAttribute(\"style\",\"position: fixed; height: 100vh; width: 0; top: 0\"),document.documentElement.appendChild(n),i.w=90===e?n.offsetHeight:window.innerWidth,i.h=90===e?window.innerWidth:n.offsetHeight,document.documentElement.removeChild(n),n=null,90!==Math.abs(window.orientation)?i.h:i.w}},45818:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(13560);t.exports=function(t,e){var i=window.screen,r=!!i&&(i.orientation||i.mozOrientation||i.msOrientation);return r&&\"string\"==typeof r.type?r.type:\"string\"==typeof r?r:\"number\"==typeof window.orientation?0===window.orientation||180===window.orientation?n.ORIENTATION.PORTRAIT:n.ORIENTATION.LANDSCAPE:window.matchMedia?window.matchMedia(\"(orientation: portrait)\").matches?n.ORIENTATION.PORTRAIT:window.matchMedia(\"(orientation: landscape)\").matches?n.ORIENTATION.LANDSCAPE:void 0:e>t?n.ORIENTATION.PORTRAIT:n.ORIENTATION.LANDSCAPE}},74403:t=>{t.exports=function(t){var e;return\"\"!==t&&(\"string\"==typeof t?e=document.getElementById(t):t&&1===t.nodeType&&(e=t)),e||(e=document.body),e}},56836:t=>{t.exports=function(t){var e=\"\";try{window.DOMParser?e=(new DOMParser).parseFromString(t,\"text/xml\"):(e=new ActiveXObject(\"Microsoft.XMLDOM\")).loadXML(t)}catch(t){e=null}return e&&e.documentElement&&!e.getElementsByTagName(\"parsererror\").length?e:null}},35846:t=>{t.exports=function(t){t.parentNode&&t.parentNode.removeChild(t)}},43092:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(83419),r=i(29747),s=new n({initialize:function(){this.isRunning=!1,this.callback=r,this.isSetTimeOut=!1,this.timeOutID=null,this.delay=0;var t=this;this.step=function e(i){t.callback(i),t.isRunning&&(t.timeOutID=window.requestAnimationFrame(e))},this.stepTimeout=function e(){t.isRunning&&(t.timeOutID=window.setTimeout(e,t.delay)),t.callback(window.performance.now())}},start:function(t,e,i){this.isRunning||(this.callback=t,this.isSetTimeOut=e,this.delay=i,this.isRunning=!0,this.timeOutID=e?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=r}});t.exports=s},84902:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n={AddToDOM:i(40366),DOMContentLoaded:i(57264),GetInnerHeight:i(57811),GetScreenOrientation:i(45818),GetTarget:i(74403),ParseXML:i(56836),RemoveFromDOM:i(35846),RequestAnimationFrame:i(43092)};t.exports=n},47565:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(83419),r=i(50792),s=i(37277),a=new n({Extends:r,initialize:function(){r.call(this)},shutdown:function(){this.removeAllListeners()},destroy:function(){this.removeAllListeners()}});s.register(\"EventEmitter\",a,\"events\"),t.exports=a},93055:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports={EventEmitter:i(47565)}},20122:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(83419),r=i(72898),s=i(14811),a=new n({Extends:r,initialize:function(t,e){void 0===e&&(e=1),r.call(this,s.BARREL,t),this.amount=e}});t.exports=a},32251:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(83419),r=i(72898),s=i(14811),a=new n({Extends:r,initialize:function(t,e,i,n,a,o,l){void 0===i&&(i=1),void 0===n&&(n=1),void 0===a&&(a=1),void 0===o&&(o=1),void 0===l&&(l=4),r.call(this,s.BLOOM,t),this.steps=l,this.offsetX=i,this.offsetY=n,this.blurStrength=a,this.strength=o,this.glcolor=[1,1,1],null!=e&&(this.color=e)},color:{get:function(){var t=this.glcolor;return(255*t[0]<<16)+(255*t[1]<<8)+(255*t[2]|0)},set:function(t){var e=this.glcolor;e[0]=(t>>16&255)/255,e[1]=(t>>8&255)/255,e[2]=(255&t)/255}}});t.exports=a},9047:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(83419),r=i(72898),s=i(14811),a=new n({Extends:r,initialize:function(t,e,i,n,a,o,l){void 0===e&&(e=0),void 0===i&&(i=2),void 0===n&&(n=2),void 0===a&&(a=1),void 0===l&&(l=4),r.call(this,s.BLUR,t),this.quality=e,this.x=i,this.y=n,this.steps=l,this.strength=a,this.glcolor=[1,1,1],null!=o&&(this.color=o)},color:{get:function(){var t=this.glcolor;return(255*t[0]<<16)+(255*t[1]<<8)+(255*t[2]|0)},set:function(t){var e=this.glcolor;e[0]=(t>>16&255)/255,e[1]=(t>>8&255)/255,e[2]=(255&t)/255}}});t.exports=a},27885:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(83419),r=i(72898),s=i(14811),a=new n({Extends:r,initialize:function(t,e,i,n,a,o,l,h){void 0===e&&(e=.5),void 0===i&&(i=1),void 0===n&&(n=.2),void 0===a&&(a=!1),void 0===o&&(o=1),void 0===l&&(l=1),void 0===h&&(h=1),r.call(this,s.BOKEH,t),this.radius=e,this.amount=i,this.contrast=n,this.isTiltShift=a,this.strength=h,this.blurX=o,this.blurY=l}});t.exports=a},12578:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(83419),r=i(72898),s=i(14811),a=new n({Extends:r,initialize:function(t,e,i,n,a,o){void 0===e&&(e=8),void 0===a&&(a=1),void 0===o&&(o=.005),r.call(this,s.CIRCLE,t),this.scale=a,this.feather=o,this.thickness=e,this.glcolor=[1,.2,.7],this.glcolor2=[1,0,0,.4],null!=i&&(this.color=i),null!=n&&(this.backgroundColor=n)},color:{get:function(){var t=this.glcolor;return(255*t[0]<<16)+(255*t[1]<<8)+(255*t[2]|0)},set:function(t){var e=this.glcolor;e[0]=(t>>16&255)/255,e[1]=(t>>8&255)/255,e[2]=(255&t)/255}},backgroundColor:{get:function(){var t=this.glcolor2;return(255*t[0]<<16)+(255*t[1]<<8)+(255*t[2]|0)},set:function(t){var e=this.glcolor2;e[0]=(t>>16&255)/255,e[1]=(t>>8&255)/255,e[2]=(255&t)/255}},backgroundAlpha:{get:function(){return this.glcolor2[3]},set:function(t){this.glcolor2[3]=t}}});t.exports=a},15802:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(83419),r=i(89422),s=i(14811),a=new n({Extends:r,initialize:function(t){r.call(this),this.type=s.COLOR_MATRIX,this.gameObject=t,this.active=!0},destroy:function(){this.gameObject=null,this._matrix=null,this._data=null}});t.exports=a},72898:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=new(i(83419))({initialize:function(t,e){this.type=t,this.gameObject=e,this.active=!0},setActive:function(t){return this.active=t,this},destroy:function(){this.gameObject=null,this.active=!1}});t.exports=n},44553:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(83419),r=i(72898),s=i(14811),a=new n({Extends:r,initialize:function(t,e,i,n){void 0===e&&(e=\"__WHITE\"),void 0===i&&(i=.005),void 0===n&&(n=.005),r.call(this,s.DISPLACEMENT,t),this.x=i,this.y=n,this.glTexture,this.setTexture(e)},setTexture:function(t){var e=this.gameObject.scene.sys.textures.getFrame(t);return e&&(this.glTexture=e.glTexture),this}});t.exports=a},68531:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(83419),r=i(72898),s=i(14811),a=new n({Extends:r,initialize:function(t,e,i,n,a){void 0===i&&(i=4),void 0===n&&(n=0),void 0===a&&(a=!1),r.call(this,s.GLOW,t),this.outerStrength=i,this.innerStrength=n,this.knockout=a,this.glcolor=[1,1,1,1],void 0!==e&&(this.color=e)},color:{get:function(){var t=this.glcolor;return(255*t[0]<<16)+(255*t[1]<<8)+(255*t[2]|0)},set:function(t){var e=this.glcolor;e[0]=(t>>16&255)/255,e[1]=(t>>8&255)/255,e[2]=(255&t)/255}}});t.exports=a},37102:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(83419),r=i(72898),s=i(14811),a=new n({Extends:r,initialize:function(t,e,i,n,a,o,l,h,u){void 0===n&&(n=.2),void 0===a&&(a=0),void 0===o&&(o=0),void 0===l&&(l=0),void 0===h&&(h=1),void 0===u&&(u=0),r.call(this,s.GRADIENT,t),this.alpha=n,this.size=u,this.fromX=a,this.fromY=o,this.toX=l,this.toY=h,this.glcolor1=[255,0,0],this.glcolor2=[0,255,0],null!=e&&(this.color1=e),null!=i&&(this.color2=i)},color1:{get:function(){var t=this.glcolor1;return(t[0]<<16)+(t[1]<<8)+(0|t[2])},set:function(t){var e=this.glcolor1;e[0]=t>>16&255,e[1]=t>>8&255,e[2]=255&t}},color2:{get:function(){var t=this.glcolor2;return(t[0]<<16)+(t[1]<<8)+(0|t[2])},set:function(t){var e=this.glcolor2;e[0]=t>>16&255,e[1]=t>>8&255,e[2]=255&t}}});t.exports=a},86886:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(83419),r=i(72898),s=i(14811),a=new n({Extends:r,initialize:function(t,e){void 0===e&&(e=1),r.call(this,s.PIXELATE,t),this.amount=e}});t.exports=a},92322:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(83419),r=i(72898),s=i(14811),a=new n({Extends:r,initialize:function(t,e,i,n,a,o,l,h){void 0===e&&(e=0),void 0===i&&(i=0),void 0===n&&(n=.1),void 0===a&&(a=1),void 0===l&&(l=6),void 0===h&&(h=1),r.call(this,s.SHADOW,t),this.x=e,this.y=i,this.decay=n,this.power=a,this.glcolor=[0,0,0,1],this.samples=l,this.intensity=h,void 0!==o&&(this.color=o)},color:{get:function(){var t=this.glcolor;return(255*t[0]<<16)+(255*t[1]<<8)+(255*t[2]|0)},set:function(t){var e=this.glcolor;e[0]=(t>>16&255)/255,e[1]=(t>>8&255)/255,e[2]=(255&t)/255}}});t.exports=a},39563:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(83419),r=i(72898),s=i(14811),a=new n({Extends:r,initialize:function(t,e,i,n,a){void 0===e&&(e=.5),void 0===i&&(i=.5),void 0===n&&(n=3),void 0===a&&(a=!1),r.call(this,s.SHINE,t),this.speed=e,this.lineWidth=i,this.gradient=n,this.reveal=a}});t.exports=a},56448:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(83419),r=i(72898),s=i(14811),a=new n({Extends:r,initialize:function(t,e,i,n,a){void 0===e&&(e=.5),void 0===i&&(i=.5),void 0===n&&(n=.5),void 0===a&&(a=.5),r.call(this,s.VIGNETTE,t),this.x=e,this.y=i,this.radius=n,this.strength=a}});t.exports=a},38433:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(83419),r=i(72898),s=i(14811),a=new n({Extends:r,initialize:function(t,e,i,n,a){void 0===e&&(e=.1),void 0===i&&(i=0),void 0===n&&(n=0),void 0===a&&(a=!1),r.call(this,s.WIPE,t),this.progress=0,this.wipeWidth=e,this.direction=i,this.axis=n,this.reveal=a}});t.exports=a},14811:t=>{t.exports={GLOW:4,SHADOW:5,PIXELATE:6,VIGNETTE:7,SHINE:8,BLUR:9,GRADIENT:12,BLOOM:13,COLOR_MATRIX:14,CIRCLE:15,BARREL:16,DISPLACEMENT:17,WIPE:18,BOKEH:19}},66064:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(79291),r=i(14811),s={Barrel:i(20122),Controller:i(72898),Bloom:i(32251),Blur:i(9047),Bokeh:i(27885),Circle:i(12578),ColorMatrix:i(15802),Displacement:i(44553),Glow:i(68531),Gradient:i(37102),Pixelate:i(86886),Shadow:i(92322),Shine:i(39563),Vignette:i(56448),Wipe:i(38433)};s=n(!1,s,r),t.exports=s},25305:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(10312),r=i(23568);t.exports=function(t,e,i){e.x=r(i,\"x\",0),e.y=r(i,\"y\",0),e.depth=r(i,\"depth\",0),e.flipX=r(i,\"flipX\",!1),e.flipY=r(i,\"flipY\",!1);var s=r(i,\"scale\",null);\"number\"==typeof s?e.setScale(s):null!==s&&(e.scaleX=r(s,\"x\",1),e.scaleY=r(s,\"y\",1));var a=r(i,\"scrollFactor\",null);\"number\"==typeof a?e.setScrollFactor(a):null!==a&&(e.scrollFactorX=r(a,\"x\",1),e.scrollFactorY=r(a,\"y\",1)),e.rotation=r(i,\"rotation\",0);var o=r(i,\"angle\",null);null!==o&&(e.angle=o),e.alpha=r(i,\"alpha\",1);var l=r(i,\"origin\",null);if(\"number\"==typeof l)e.setOrigin(l);else if(null!==l){var h=r(l,\"x\",.5),u=r(l,\"y\",.5);e.setOrigin(h,u)}return e.blendMode=r(i,\"blendMode\",n.NORMAL),e.visible=r(i,\"visible\",!0),r(i,\"add\",!0)&&t.sys.displayList.add(e),e.preUpdate&&t.sys.updateList.add(e),e}},13059:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(23568);t.exports=function(t,e){var i=n(e,\"anims\",null);if(null===i)return t;if(\"string\"==typeof i)t.anims.play(i);else if(\"object\"==typeof i){var r=t.anims,s=n(i,\"key\",void 0);if(s){var a=n(i,\"startFrame\",void 0),o=n(i,\"delay\",0),l=n(i,\"repeat\",0),h=n(i,\"repeatDelay\",0),u=n(i,\"yoyo\",!1),c=n(i,\"play\",!1),d=n(i,\"delayedPlay\",0),f={key:s,delay:o,repeat:l,repeatDelay:h,yoyo:u,startFrame:a};c?r.play(f):d>0?r.playAfterDelay(f,d):r.load(f)}}return t}},8050:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(83419),r=i(73162),s=i(37277),a=i(51708),o=i(44594),l=i(19186),h=new n({Extends:r,initialize:function(t){r.call(this,t),this.sortChildrenFlag=!1,this.scene=t,this.systems=t.sys,this.events=t.sys.events,this.addCallback=this.addChildCallback,this.removeCallback=this.removeChildCallback,this.events.once(o.BOOT,this.boot,this),this.events.on(o.START,this.start,this)},boot:function(){this.events.once(o.DESTROY,this.destroy,this)},addChildCallback:function(t){t.displayList&&t.displayList!==this&&t.removeFromDisplayList(),t.parentContainer&&t.parentContainer.remove(t),t.displayList||(this.queueDepthSort(),t.displayList=this,t.emit(a.ADDED_TO_SCENE,t,this.scene),this.events.emit(o.ADDED_TO_SCENE,t,this.scene))},removeChildCallback:function(t){this.queueDepthSort(),t.displayList=null,t.emit(a.REMOVED_FROM_SCENE,t,this.scene),this.events.emit(o.REMOVED_FROM_SCENE,t,this.scene)},start:function(){this.events.once(o.SHUTDOWN,this.shutdown,this)},queueDepthSort:function(){this.sortChildrenFlag=!0},depthSort:function(){this.sortChildrenFlag&&(l(this.list,this.sortByDepth),this.sortChildrenFlag=!1)},sortByDepth:function(t,e){return t._depth-e._depth},getChildren:function(){return this.list},shutdown:function(){for(var t=this.list,e=t.length;e--;)t[e].destroy(!0);t.length=0,this.events.off(o.SHUTDOWN,this.shutdown,this)},destroy:function(){this.shutdown(),this.events.off(o.START,this.start,this),this.scene=null,this.systems=null,this.events=null}});s.register(\"DisplayList\",h,\"displayList\"),t.exports=h},95643:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(83419),r=i(53774),s=i(45893),a=i(50792),o=i(51708),l=i(44594),h=new n({Extends:a,initialize:function(t,e){a.call(this),this.scene=t,this.displayList=null,this.type=e,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(o.ADDED_TO_SCENE,this.addedToScene,this),this.on(o.REMOVED_FROM_SCENE,this.removedFromScene,this),t.sys.queueDepthSort()},setActive:function(t){return this.active=t,this},setName:function(t){return this.name=t,this},setState:function(t){return this.state=t,this},setDataEnabled:function(){return this.data||(this.data=new s(this)),this},setData:function(t,e){return this.data||(this.data=new s(this)),this.data.set(t,e),this},incData:function(t,e){return this.data||(this.data=new s(this)),this.data.inc(t,e),this},toggleData:function(t){return this.data||(this.data=new s(this)),this.data.toggle(t),this},getData:function(t){return this.data||(this.data=new s(this)),this.data.get(t)},setInteractive:function(t,e,i){return this.scene.sys.input.enable(this,t,e,i),this},disableInteractive:function(t){return void 0===t&&(t=!1),this.scene.sys.input.disable(this,t),this},removeInteractive:function(t){return void 0===t&&(t=!1),this.scene.sys.input.clear(this),t&&this.scene.sys.input.resetCursor(),this.input=void 0,this},addedToScene:function(){},removedFromScene:function(){},update:function(){},toJSON:function(){return r(this)},willRender:function(t){return!(this.displayList&&this.displayList.active&&!this.displayList.willRender(t)||h.RENDER_MASK!==this.renderFlags||0!==this.cameraFilter&&this.cameraFilter&t.id)},getIndexList:function(){for(var t=this,e=this.parentContainer,i=[];e&&(i.unshift(e.getIndex(t)),t=e,e.parentContainer);)e=e.parentContainer;return this.displayList?i.unshift(this.displayList.getIndex(t)):i.unshift(this.scene.sys.displayList.getIndex(t)),i},addToDisplayList:function(t){return void 0===t&&(t=this.scene.sys.displayList),this.displayList&&this.displayList!==t&&this.removeFromDisplayList(),t.exists(this)||(this.displayList=t,t.add(this,!0),t.queueDepthSort(),this.emit(o.ADDED_TO_SCENE,this,this.scene),t.events.emit(l.ADDED_TO_SCENE,this,this.scene)),this},addToUpdateList:function(){return this.scene&&this.preUpdate&&this.scene.sys.updateList.add(this),this},removeFromDisplayList:function(){var t=this.displayList||this.scene.sys.displayList;return t&&t.exists(this)&&(t.remove(this,!0),t.queueDepthSort(),this.displayList=null,this.emit(o.REMOVED_FROM_SCENE,this,this.scene),t.events.emit(l.REMOVED_FROM_SCENE,this,this.scene)),this},removeFromUpdateList:function(){return this.scene&&this.preUpdate&&this.scene.sys.updateList.remove(this),this},getDisplayList:function(){var t=null;return this.parentContainer?t=this.parentContainer.list:this.displayList&&(t=this.displayList.list),t},destroy:function(t){this.scene&&!this.ignoreDestroy&&(void 0===t&&(t=!1),this.preDestroy&&this.preDestroy.call(this),this.emit(o.DESTROY,this,t),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)}});h.RENDER_MASK=15,t.exports=h},44603:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(83419),r=i(37277),s=i(44594),a=new n({initialize:function(t){this.scene=t,this.systems=t.sys,this.events=t.sys.events,this.displayList,this.updateList,this.events.once(s.BOOT,this.boot,this),this.events.on(s.START,this.start,this)},boot:function(){this.displayList=this.systems.displayList,this.updateList=this.systems.updateList,this.events.once(s.DESTROY,this.destroy,this)},start:function(){this.events.once(s.SHUTDOWN,this.shutdown,this)},shutdown:function(){this.events.off(s.SHUTDOWN,this.shutdown,this)},destroy:function(){this.shutdown(),this.events.off(s.START,this.start,this),this.scene=null,this.systems=null,this.events=null,this.displayList=null,this.updateList=null}});a.register=function(t,e){a.prototype.hasOwnProperty(t)||(a.prototype[t]=e)},a.remove=function(t){a.prototype.hasOwnProperty(t)&&delete a.prototype[t]},r.register(\"GameObjectCreator\",a,\"make\"),t.exports=a},39429:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(83419),r=i(37277),s=i(44594),a=new n({initialize:function(t){this.scene=t,this.systems=t.sys,this.events=t.sys.events,this.displayList,this.updateList,this.events.once(s.BOOT,this.boot,this),this.events.on(s.START,this.start,this)},boot:function(){this.displayList=this.systems.displayList,this.updateList=this.systems.updateList,this.events.once(s.DESTROY,this.destroy,this)},start:function(){this.events.once(s.SHUTDOWN,this.shutdown,this)},existing:function(t){return(t.renderCanvas||t.renderWebGL)&&this.displayList.add(t),t.preUpdate&&this.updateList.add(t),t},shutdown:function(){this.events.off(s.SHUTDOWN,this.shutdown,this)},destroy:function(){this.shutdown(),this.events.off(s.START,this.start,this),this.scene=null,this.systems=null,this.events=null,this.displayList=null,this.updateList=null}});a.register=function(t,e){a.prototype.hasOwnProperty(t)||(a.prototype[t]=e)},a.remove=function(t){a.prototype.hasOwnProperty(t)&&delete a.prototype[t]},r.register(\"GameObjectFactory\",a,\"add\"),t.exports=a},91296:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(61340),r=new n,s=new n,a=new n,o={camera:r,sprite:s,calc:a};t.exports=function(t,e,i){var n=r,l=s,h=a;return l.applyITRS(t.x,t.y,t.rotation,t.scaleX,t.scaleY),n.copyFrom(e.matrix),i?(n.multiplyWithOffset(i,-e.scrollX*t.scrollFactorX,-e.scrollY*t.scrollFactorY),l.e=t.x,l.f=t.y):(l.e-=e.scrollX*t.scrollFactorX,l.f-=e.scrollY*t.scrollFactorY),n.multiply(l,h),o}},45027:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(83419),r=i(25774),s=i(37277),a=i(44594),o=new n({Extends:r,initialize:function(t){r.call(this),this.checkQueue=!0,this.scene=t,this.systems=t.sys,t.sys.events.once(a.BOOT,this.boot,this),t.sys.events.on(a.START,this.start,this)},boot:function(){this.systems.events.once(a.DESTROY,this.destroy,this)},start:function(){var t=this.systems.events;t.on(a.PRE_UPDATE,this.update,this),t.on(a.UPDATE,this.sceneUpdate,this),t.once(a.SHUTDOWN,this.shutdown,this)},sceneUpdate:function(t,e){for(var i=this._active,n=i.length,r=0;r{t.exports=function(t,e,i,n,r,s,a,o,l,h,u,c,d,f,p){var m=i.x-e.displayOriginX+r,g=i.y-e.displayOriginY+s,v=m+i.w,y=g+i.h,b=a.a,x=a.b,w=a.c,T=a.d,S=a.e,E=a.f,C=m*b+g*w+S,A=m*x+g*T+E,_=m*b+y*w+S,k=m*x+y*T+E,P=v*b+y*w+S,M=v*x+y*T+E,D=v*b+g*w+S,O=v*x+g*T+E;o&&(C=Math.round(C),A=Math.round(A),_=Math.round(_),k=Math.round(k),P=Math.round(P),M=Math.round(M),D=Math.round(D),O=Math.round(O)),t.batchQuad(e,C,A,_,k,P,M,D,O,n.u0,n.v0,n.u1,n.v1,l,h,u,c,d,f,p)}},53048:t=>{t.exports=function(t,e,i,n){if(void 0===i&&(i=!1),void 0===n)return n={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};var r,s,a,o=t.text,l=o.length,h=t.maxWidth,u=t.wordWrapCharCode,c=Number.MAX_VALUE,d=Number.MAX_VALUE,f=0,p=0,m=t.fontData.chars,g=t.fontData.lineHeight,v=t.letterSpacing,y=t.lineSpacing,b=0,x=0,w=0,T=null,S=t._align,E=0,C=0,A=t.fontSize/t.fontData.size,_=A*t.scaleX,k=A*t.scaleY,P=null,M=0,D=[],O=Number.MAX_VALUE,R=0,I=0,F=0,L=[],N=[],B=null,z=function(t,e){for(var i=0,n=0;n0){a=o.split(\"\\n\");var j=[];for(r=0;rE&&(c=E),d>C&&(d=C);var q=E+T.xAdvance,$=C+g;fR&&(R=F),FR&&(R=F),F0)for(var J=0;J{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(21859);t.exports=function(t,e,i,r,s,a,o){var l=t.sys.textures.get(i),h=l.get(r),u=t.sys.cache.xml.get(s);if(h&&u){var c=n(u,h,a,o,l);return t.sys.cache.bitmapFont.add(e,{data:c,texture:i,frame:r,fromAtlas:!0}),!0}return!1}},6925:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(35154);t.exports=function(t,e){var i=e.width,r=e.height,s=Math.floor(i/2),a=Math.floor(r/2),o=n(e,\"chars\",\"\");if(\"\"!==o){var l=n(e,\"image\",\"\"),h=t.sys.textures.getFrame(l),u=h.cutX,c=h.cutY,d=h.source.width,f=h.source.height,p=n(e,\"offset.x\",0),m=n(e,\"offset.y\",0),g=n(e,\"spacing.x\",0),v=n(e,\"spacing.y\",0),y=n(e,\"lineSpacing\",0),b=n(e,\"charsPerRow\",null);null===b&&(b=d/i)>o.length&&(b=o.length);for(var x=p,w=m,T={retroFont:!0,font:l,size:i,lineHeight:r+y,chars:{}},S=0,E=0;E{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nfunction e(t,e){return parseInt(t.getAttribute(e),10)}t.exports=function(t,i,n,r,s){void 0===n&&(n=0),void 0===r&&(r=0);var a=i.cutX,o=i.cutY,l=i.source.width,h=i.source.height,u=i.sourceIndex,c={},d=t.getElementsByTagName(\"info\")[0],f=t.getElementsByTagName(\"common\")[0];c.font=d.getAttribute(\"face\"),c.size=e(d,\"size\"),c.lineHeight=e(f,\"lineHeight\")+r,c.chars={};var p=t.getElementsByTagName(\"char\"),m=void 0!==i&&i.trimmed;if(m)var g=i.height,v=i.width;for(var y=0;y{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(87662),r=i(79291),s={Parse:i(6925)};s=r(!1,s,n),t.exports=s},87662:t=>{t.exports={TEXT_SET1:\" !\\\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\\\]^_`abcdefghijklmnopqrstuvwxyz{|}~\",TEXT_SET2:\" !\\\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ\",TEXT_SET3:\"ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789 \",TEXT_SET4:\"ABCDEFGHIJKLMNOPQRSTUVWXYZ 0123456789\",TEXT_SET5:\"ABCDEFGHIJKLMNOPQRSTUVWXYZ.,/() '!?-*:0123456789\",TEXT_SET6:\"ABCDEFGHIJKLMNOPQRSTUVWXYZ!?:;0123456789\\\"(),-.' \",TEXT_SET7:\"AGMSY+:4BHNTZ!;5CIOU.?06DJPV,(17EKQW\\\")28FLRX-'39\",TEXT_SET8:\"0123456789 .ABCDEFGHIJKLMNOPQRSTUVWXYZ\",TEXT_SET9:\"ABCDEFGHIJKLMNOPQRSTUVWXYZ()-0123456789.:,'\\\"?!\",TEXT_SET10:\"ABCDEFGHIJKLMNOPQRSTUVWXYZ\",TEXT_SET11:\"ABCDEFGHIJKLMNOPQRSTUVWXYZ.,\\\"-+!?()':;0123456789\"}},2638:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(22186),r=i(83419),s=i(12310),a=new r({Extends:n,Mixins:[s],initialize:function(t,e,i,r,s,a,o){n.call(this,t,e,i,r,s,a,o),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(t,e){return this.cropWidth=t,this.cropHeight=e,this},setDisplayCallback:function(t){return this.displayCallback=t,this},setScrollX:function(t){return this.scrollX=t,this},setScrollY:function(t){return this.scrollY=t,this}});t.exports=a},86741:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(20926);t.exports=function(t,e,i,r){var s=e._text,a=s.length,o=t.currentContext;if(0!==a&&n(t,o,e,i,r)){i.addToRenderList(e);var l=e.fromAtlas?e.frame:e.texture.frames.__BASE,h=e.displayCallback,u=e.callbackData,c=e.fontData.chars,d=e.fontData.lineHeight,f=e._letterSpacing,p=0,m=0,g=0,v=null,y=0,b=0,x=0,w=0,T=0,S=0,E=null,C=0,A=e.frame.source.image,_=l.cutX,k=l.cutY,P=0,M=0,D=e._fontSize/e.fontData.size,O=e._align,R=0,I=0;e.getTextBounds(!1);var F=e._bounds.lines;1===O?I=(F.longest-F.lengths[0])/2:2===O&&(I=F.longest-F.lengths[0]),o.translate(-e.displayOriginX,-e.displayOriginY);var L=i.roundPixels;e.cropWidth>0&&e.cropHeight>0&&(o.beginPath(),o.rect(0,0,e.cropWidth,e.cropHeight),o.clip());for(var N=0;N{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(2638),r=i(25305),s=i(44603),a=i(23568);s.register(\"dynamicBitmapText\",(function(t,e){void 0===t&&(t={});var i=a(t,\"font\",\"\"),s=a(t,\"text\",\"\"),o=a(t,\"size\",!1),l=new n(this.scene,0,0,i,s,o);return void 0!==e&&(t.add=e),r(this.scene,l,t),l}))},72566:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(2638);i(39429).register(\"dynamicBitmapText\",(function(t,e,i,r,s){return this.displayList.add(new n(this.scene,t,e,i,r,s))}))},12310:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(29747),r=n,s=n;r=i(73482),s=i(86741),t.exports={renderWebGL:r,renderCanvas:s}},73482:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(91296),r=i(61340),s=i(70554),a=new r;t.exports=function(t,e,i,r){var o=e.text,l=o.length;if(0!==l){i.addToRenderList(e);var h=t.pipelines.set(e.pipeline,e),u=n(e,i,r);t.pipelines.preBatch(e);var c=u.sprite,d=u.calc,f=a,p=e.cropWidth>0||e.cropHeight>0;p&&(h.flush(),t.pushScissor(d.tx,d.ty,e.cropWidth*d.scaleX,e.cropHeight*d.scaleY));var m,g,v=e.frame.glTexture,y=e.tintFill,b=s.getTintAppendFloatAlpha(e.tintTopLeft,i.alpha*e._alphaTL),x=s.getTintAppendFloatAlpha(e.tintTopRight,i.alpha*e._alphaTR),w=s.getTintAppendFloatAlpha(e.tintBottomLeft,i.alpha*e._alphaBL),T=s.getTintAppendFloatAlpha(e.tintBottomRight,i.alpha*e._alphaBR),S=h.setGameObject(e),E=0,C=0,A=0,_=0,k=e.letterSpacing,P=0,M=0,D=e.scrollX,O=e.scrollY,R=e.fontData,I=R.chars,F=R.lineHeight,L=e.fontSize/R.size,N=0,B=e._align,z=0,j=0,U=e.getTextBounds(!1);e.maxWidth>0&&(l=(o=U.wrappedText).length);var V=e._bounds.lines;1===B?j=(V.longest-V.lengths[0])/2:2===B&&(j=V.longest-V.lengths[0]);for(var G=i.roundPixels,H=e.displayCallback,Y=e.callbackData,X=0;X{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(83419),r=i(45319),s=i(31401),a=i(95643),o=i(53048),l=i(61327),h=i(21859),u=i(87841),c=i(18658),d=new n({Extends:a,Mixins:[s.Alpha,s.BlendMode,s.Depth,s.GetBounds,s.Mask,s.Origin,s.Pipeline,s.PostPipeline,s.ScrollFactor,s.Texture,s.Tint,s.Transform,s.Visible,c],initialize:function(t,e,i,n,r,s,l){void 0===r&&(r=\"\"),void 0===l&&(l=0),a.call(this,t,\"BitmapText\"),this.font=n;var h=this.scene.sys.cache.bitmapFont.get(n);if(!h)throw new Error(\"Invalid BitmapText key: \"+n);this.fontData=h.data,this._text=\"\",this._fontSize=s||this.fontData.size,this._letterSpacing=0,this._lineSpacing=0,this._align=l,this._bounds=o(),this._dirty=!0,this._maxWidth=0,this.wordWrapCharCode=32,this.charColors=[],this.dropShadowX=0,this.dropShadowY=0,this.dropShadowColor=0,this.dropShadowAlpha=.5,this.fromAtlas=h.fromAtlas,this.setTexture(h.texture,h.frame),this.setPosition(e,i),this.setOrigin(0,0),this.initPipeline(),this.initPostPipeline(),this.setText(r)},setLeftAlign:function(){return this._align=d.ALIGN_LEFT,this._dirty=!0,this},setCenterAlign:function(){return this._align=d.ALIGN_CENTER,this._dirty=!0,this},setRightAlign:function(){return this._align=d.ALIGN_RIGHT,this._dirty=!0,this},setFontSize:function(t){return this._fontSize=t,this._dirty=!0,this},setLetterSpacing:function(t){return void 0===t&&(t=0),this._letterSpacing=t,this._dirty=!0,this},setLineSpacing:function(t){return void 0===t&&(t=0),this.lineSpacing=t,this},setText:function(t){return t||0===t||(t=\"\"),Array.isArray(t)&&(t=t.join(\"\\n\")),t!==this.text&&(this._text=t.toString(),this._dirty=!0,this.updateDisplayOrigin()),this},setDropShadow:function(t,e,i,n){return void 0===t&&(t=0),void 0===e&&(e=0),void 0===i&&(i=0),void 0===n&&(n=.5),this.dropShadowX=t,this.dropShadowY=e,this.dropShadowColor=i,this.dropShadowAlpha=n,this},setCharacterTint:function(t,e,i,n,s,a,o){void 0===t&&(t=0),void 0===e&&(e=1),void 0===i&&(i=!1),void 0===n&&(n=-1),void 0===s&&(s=n,a=n,o=n);var l=this.text.length;-1===e&&(e=l),t<0&&(t=l+t),t=r(t,0,l-1);for(var h=r(t+e,t,l),u=this.charColors,c=t;c{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(20926);t.exports=function(t,e,i,r){var s=e._text,a=s.length,o=t.currentContext;if(0!==a&&n(t,o,e,i,r)){i.addToRenderList(e);var l=e.fromAtlas?e.frame:e.texture.frames.__BASE,h=e.fontData.chars,u=e.fontData.lineHeight,c=e._letterSpacing,d=e._lineSpacing,f=0,p=0,m=0,g=null,v=0,y=0,b=0,x=0,w=0,T=0,S=null,E=0,C=l.source.image,A=l.cutX,_=l.cutY,k=e._fontSize/e.fontData.size,P=e._align,M=0,D=0,O=e.getTextBounds(!1);e.maxWidth>0&&(a=(s=O.wrappedText).length);var R=e._bounds.lines;1===P?D=(R.longest-R.lengths[0])/2:2===P&&(D=R.longest-R.lengths[0]),o.translate(-e.displayOriginX,-e.displayOriginY);for(var I=i.roundPixels,F=0;F{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(22186),r=i(25305),s=i(44603),a=i(23568),o=i(35154);s.register(\"bitmapText\",(function(t,e){void 0===t&&(t={});var i=o(t,\"font\",\"\"),s=a(t,\"text\",\"\"),l=a(t,\"size\",!1),h=o(t,\"align\",0),u=new n(this.scene,0,0,i,s,l,h);return void 0!==e&&(t.add=e),r(this.scene,u,t),u}))},34914:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(22186);i(39429).register(\"bitmapText\",(function(t,e,i,r,s,a){return this.displayList.add(new n(this.scene,t,e,i,r,s,a))}))},18658:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(29747),r=n,s=n;r=i(33590),s=i(37289),t.exports={renderWebGL:r,renderCanvas:s}},33590:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(3217),r=i(91296),s=i(70554);t.exports=function(t,e,i,a){if(0!==e._text.length){i.addToRenderList(e);var o=t.pipelines.set(e.pipeline,e),l=r(e,i,a).calc;t.pipelines.preBatch(e);var h,u,c,d=i.roundPixels,f=i.alpha,p=e.charColors,m=e.tintFill,g=s.getTintAppendFloatAlpha,v=g(e.tintTopLeft,f*e._alphaTL),y=g(e.tintTopRight,f*e._alphaTR),b=g(e.tintBottomLeft,f*e._alphaBL),x=g(e.tintBottomRight,f*e._alphaBR),w=e.frame.glTexture,T=o.setGameObject(e),S=e.getTextBounds(!1).characters,E=e.dropShadowX,C=e.dropShadowY;if(0!==E||0!==C){var A=e.dropShadowColor,_=e.dropShadowAlpha,k=g(A,f*_*e._alphaTL),P=g(A,f*_*e._alphaTR),M=g(A,f*_*e._alphaBL),D=g(A,f*_*e._alphaBR);for(h=0;h{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(48011),r=i(46590),s=i(83419),a=i(31401),o=i(4327),l=i(95643),h=i(73162),u=new s({Extends:l,Mixins:[a.Alpha,a.BlendMode,a.Depth,a.Mask,a.Pipeline,a.PostPipeline,a.ScrollFactor,a.Size,a.Texture,a.Transform,a.Visible,n],initialize:function(t,e,i,n,r){l.call(this,t,\"Blitter\"),this.setTexture(n,r),this.setPosition(e,i),this.initPipeline(),this.initPostPipeline(),this.children=new h,this.renderList=[],this.dirty=!1},create:function(t,e,i,n,s){void 0===n&&(n=!0),void 0===s&&(s=this.children.length),void 0===i?i=this.frame:i instanceof o||(i=this.texture.get(i));var a=new r(this,t,e,i,n);return this.children.addAt(a,s,!1),this.dirty=!0,a},createFromCallback:function(t,e,i,n){for(var r=this.createMultiple(e,i,n),s=0;s0},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=[]}});t.exports=u},72396:t=>{t.exports=function(t,e,i,n){var r=e.getRenderList();if(0!==r.length){var s=t.currentContext,a=i.alpha*e.alpha;if(0!==a){i.addToRenderList(e),s.globalCompositeOperation=t.blendModes[e.blendMode],s.imageSmoothingEnabled=!e.frame.source.scaleMode;var o=e.x-i.scrollX*e.scrollFactorX,l=e.y-i.scrollY*e.scrollFactorY;s.save(),n&&n.copyToContext(s);for(var h=i.roundPixels,u=0;u0&&p.height>0&&(s.save(),s.translate(c.x+o,c.y+l),s.scale(v,y),s.drawImage(f.source.image,p.x,p.y,p.width,p.height,m,g,p.width,p.height),s.restore())):(h&&(m=Math.round(m),g=Math.round(g)),p.width>0&&p.height>0&&s.drawImage(f.source.image,p.x,p.y,p.width,p.height,m+c.x+o,g+c.y+l,p.width,p.height)))}s.restore()}}}},9403:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(6107),r=i(25305),s=i(44603),a=i(23568);s.register(\"blitter\",(function(t,e){void 0===t&&(t={});var i=a(t,\"key\",null),s=a(t,\"frame\",null),o=new n(this.scene,0,0,i,s);return void 0!==e&&(t.add=e),r(this.scene,o,t),o}))},12709:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(6107);i(39429).register(\"blitter\",(function(t,e,i,r){return this.displayList.add(new n(this.scene,t,e,i,r))}))},48011:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(29747),r=n,s=n;r=i(99485),s=i(72396),t.exports={renderWebGL:r,renderCanvas:s}},99485:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(61340),r=i(70554),s=new n;t.exports=function(t,e,i,n){var a=e.getRenderList(),o=i.alpha*e.alpha;if(0!==a.length&&0!==o){i.addToRenderList(e);var l=t.pipelines.set(this.pipeline,e),h=i.scrollX*e.scrollFactorX,u=i.scrollY*e.scrollFactorY,c=s.copyFrom(i.matrix);n&&(c.multiplyWithOffset(n,-h,-u),h=0,u=0);var d=e.x-h,f=e.y-u,p=-1,m=i.roundPixels;t.pipelines.preBatch(e);for(var g=0;g{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(83419),r=i(4327),s=new n({initialize:function(t,e,i,n,r){this.parent=t,this.x=e,this.y=i,this.frame=n,this.data={},this.tint=16777215,this._visible=r,this._alpha=1,this.flipX=!1,this.flipY=!1,this.hasTransformComponent=!0},setFrame:function(t){return void 0===t?this.frame=this.parent.frame:t instanceof r&&t.texture===this.parent.texture?this.frame=t:this.frame=this.parent.texture.get(t),this},resetFlip:function(){return this.flipX=!1,this.flipY=!1,this},reset:function(t,e,i){return this.x=t,this.y=e,this.flipX=!1,this.flipY=!1,this._alpha=1,this._visible=!0,this.parent.dirty=!0,i&&this.setFrame(i),this},setPosition:function(t,e){return this.x=t,this.y=e,this},setFlipX:function(t){return this.flipX=t,this},setFlipY:function(t){return this.flipY=t,this},setFlip:function(t,e){return this.flipX=t,this.flipY=e,this},setVisible:function(t){return this.visible=t,this},setAlpha:function(t){return this.alpha=t,this},setTint:function(t){return this.tint=t,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(t){this.parent.dirty|=this._visible!==t,this._visible=t}},alpha:{get:function(){return this._alpha},set:function(t){this.parent.dirty|=this._alpha>0!=t>0,this._alpha=t}}});t.exports=s},16005:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(45319),r={_alpha:1,_alphaTL:1,_alphaTR:1,_alphaBL:1,_alphaBR:1,clearAlpha:function(){return this.setAlpha(1)},setAlpha:function(t,e,i,r){return void 0===t&&(t=1),void 0===e?this.alpha=t:(this._alphaTL=n(t,0,1),this._alphaTR=n(e,0,1),this._alphaBL=n(i,0,1),this._alphaBR=n(r,0,1)),this},alpha:{get:function(){return this._alpha},set:function(t){var e=n(t,0,1);this._alpha=e,this._alphaTL=e,this._alphaTR=e,this._alphaBL=e,this._alphaBR=e,0===e?this.renderFlags&=-3:this.renderFlags|=2}},alphaTopLeft:{get:function(){return this._alphaTL},set:function(t){var e=n(t,0,1);this._alphaTL=e,0!==e&&(this.renderFlags|=2)}},alphaTopRight:{get:function(){return this._alphaTR},set:function(t){var e=n(t,0,1);this._alphaTR=e,0!==e&&(this.renderFlags|=2)}},alphaBottomLeft:{get:function(){return this._alphaBL},set:function(t){var e=n(t,0,1);this._alphaBL=e,0!==e&&(this.renderFlags|=2)}},alphaBottomRight:{get:function(){return this._alphaBR},set:function(t){var e=n(t,0,1);this._alphaBR=e,0!==e&&(this.renderFlags|=2)}}};t.exports=r},88509:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(45319),r={_alpha:1,clearAlpha:function(){return this.setAlpha(1)},setAlpha:function(t){return void 0===t&&(t=1),this.alpha=t,this},alpha:{get:function(){return this._alpha},set:function(t){var e=n(t,0,1);this._alpha=e,0===e?this.renderFlags&=-3:this.renderFlags|=2}}};t.exports=r},90065:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(10312),r={_blendMode:n.NORMAL,blendMode:{get:function(){return this._blendMode},set:function(t){\"string\"==typeof t&&(t=n[t]),(t|=0)>=-1&&(this._blendMode=t)}},setBlendMode:function(t){return this.blendMode=t,this}};t.exports=r},94215:t=>{t.exports={width:0,height:0,displayWidth:{get:function(){return this.scaleX*this.width},set:function(t){this.scaleX=t/this.width}},displayHeight:{get:function(){return this.scaleY*this.height},set:function(t){this.scaleY=t/this.height}},setSize:function(t,e){return this.width=t,this.height=e,this},setDisplaySize:function(t,e){return this.displayWidth=t,this.displayHeight=e,this}}},61683:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar e={texture:null,frame:null,isCropped:!1,setCrop:function(t,e,i,n){if(void 0===t)this.isCropped=!1;else if(this.frame){if(\"number\"==typeof t)this.frame.setCropUVs(this._crop,t,e,i,n,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}}};t.exports=e},89272:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(37105),r={_depth:0,depth:{get:function(){return this._depth},set:function(t){this.displayList&&this.displayList.queueDepthSort(),this._depth=t}},setDepth:function(t){return void 0===t&&(t=0),this.depth=t,this},setToTop:function(){var t=this.getDisplayList();return t&&n.BringToTop(t,this),this},setToBack:function(){var t=this.getDisplayList();return t&&n.SendToBack(t,this),this},setAbove:function(t){var e=this.getDisplayList();return e&&t&&n.MoveAbove(e,this,t),this},setBelow:function(t){var e=this.getDisplayList();return e&&t&&n.MoveBelow(e,this,t),this}};t.exports=r},47059:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(83419),r=i(66064),s=i(19133),a=new n({initialize:function(t,e){this.gameObject=t,this.isPost=e,this.enabled=!1,this.list=[],this.padding=0},setPadding:function(t){return void 0===t&&(t=0),this.padding=t,this.gameObject},onFXCopy:function(){},onFX:function(){},enable:function(t){if(!this.isPost){var e=this.gameObject.scene.sys.renderer;e&&e.pipelines?(this.gameObject.pipeline=e.pipelines.FX_PIPELINE,void 0!==t&&(this.padding=t),this.enabled=!0):this.enabled=!1}},clear:function(){if(this.isPost)this.gameObject.resetPostPipeline(!0);else{for(var t=this.list,e=0;e{t.exports={flipX:!1,flipY:!1,toggleFlipX:function(){return this.flipX=!this.flipX,this},toggleFlipY:function(){return this.flipY=!this.flipY,this},setFlipX:function(t){return this.flipX=t,this},setFlipY:function(t){return this.flipY=t,this},setFlip:function(t,e){return this.flipX=t,this.flipY=e,this},resetFlip:function(){return this.flipX=!1,this.flipY=!1,this}}},8004:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(87841),r=i(11520),s=i(26099),a={prepareBoundsOutput:function(t,e){return void 0===e&&(e=!1),0!==this.rotation&&r(t,this.x,this.y,this.rotation),e&&this.parentContainer&&this.parentContainer.getBoundsTransformMatrix().transformPoint(t.x,t.y,t),t},getCenter:function(t,e){return void 0===t&&(t=new s),t.x=this.x-this.displayWidth*this.originX+this.displayWidth/2,t.y=this.y-this.displayHeight*this.originY+this.displayHeight/2,this.prepareBoundsOutput(t,e)},getTopLeft:function(t,e){return t||(t=new s),t.x=this.x-this.displayWidth*this.originX,t.y=this.y-this.displayHeight*this.originY,this.prepareBoundsOutput(t,e)},getTopCenter:function(t,e){return t||(t=new s),t.x=this.x-this.displayWidth*this.originX+this.displayWidth/2,t.y=this.y-this.displayHeight*this.originY,this.prepareBoundsOutput(t,e)},getTopRight:function(t,e){return t||(t=new s),t.x=this.x-this.displayWidth*this.originX+this.displayWidth,t.y=this.y-this.displayHeight*this.originY,this.prepareBoundsOutput(t,e)},getLeftCenter:function(t,e){return t||(t=new s),t.x=this.x-this.displayWidth*this.originX,t.y=this.y-this.displayHeight*this.originY+this.displayHeight/2,this.prepareBoundsOutput(t,e)},getRightCenter:function(t,e){return t||(t=new s),t.x=this.x-this.displayWidth*this.originX+this.displayWidth,t.y=this.y-this.displayHeight*this.originY+this.displayHeight/2,this.prepareBoundsOutput(t,e)},getBottomLeft:function(t,e){return t||(t=new s),t.x=this.x-this.displayWidth*this.originX,t.y=this.y-this.displayHeight*this.originY+this.displayHeight,this.prepareBoundsOutput(t,e)},getBottomCenter:function(t,e){return t||(t=new s),t.x=this.x-this.displayWidth*this.originX+this.displayWidth/2,t.y=this.y-this.displayHeight*this.originY+this.displayHeight,this.prepareBoundsOutput(t,e)},getBottomRight:function(t,e){return t||(t=new s),t.x=this.x-this.displayWidth*this.originX+this.displayWidth,t.y=this.y-this.displayHeight*this.originY+this.displayHeight,this.prepareBoundsOutput(t,e)},getBounds:function(t){var e,i,r,s,a,o,l,h;if(void 0===t&&(t=new n),this.parentContainer){var u=this.parentContainer.getBoundsTransformMatrix();this.getTopLeft(t),u.transformPoint(t.x,t.y,t),e=t.x,i=t.y,this.getTopRight(t),u.transformPoint(t.x,t.y,t),r=t.x,s=t.y,this.getBottomLeft(t),u.transformPoint(t.x,t.y,t),a=t.x,o=t.y,this.getBottomRight(t),u.transformPoint(t.x,t.y,t),l=t.x,h=t.y}else this.getTopLeft(t),e=t.x,i=t.y,this.getTopRight(t),r=t.x,s=t.y,this.getBottomLeft(t),a=t.x,o=t.y,this.getBottomRight(t),l=t.x,h=t.y;return t.x=Math.min(e,r,a,l),t.y=Math.min(i,s,o,h),t.width=Math.max(e,r,a,l)-t.x,t.height=Math.max(i,s,o,h)-t.y,t}};t.exports=a},8573:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(6858),r=i(80661),s={mask:null,setMask:function(t){return this.mask=t,this},clearMask:function(t){return void 0===t&&(t=!1),t&&this.mask&&this.mask.destroy(),this.mask=null,this},createBitmapMask:function(t,e,i,r,s){return void 0===t&&(this.texture||this.shader||this.geom)&&(t=this),new n(this.scene,t,e,i,r,s)},createGeometryMask:function(t){return void 0!==t||\"Graphics\"!==this.type&&!this.geom||(t=this),new r(this.scene,t)}};t.exports=s},27387:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar e={_originComponent:!0,originX:.5,originY:.5,_displayOriginX:0,_displayOriginY:0,displayOriginX:{get:function(){return this._displayOriginX},set:function(t){this._displayOriginX=t,this.originX=t/this.width}},displayOriginY:{get:function(){return this._displayOriginY},set:function(t){this._displayOriginY=t,this.originY=t/this.height}},setOrigin:function(t,e){return void 0===t&&(t=.5),void 0===e&&(e=t),this.originX=t,this.originY=e,this.updateDisplayOrigin()},setOriginFromFrame:function(){return this.frame&&this.frame.customPivot?(this.originX=this.frame.pivotX,this.originY=this.frame.pivotY,this.updateDisplayOrigin()):this.setOrigin()},setDisplayOrigin:function(t,e){return void 0===t&&(t=0),void 0===e&&(e=t),this.displayOriginX=t,this.displayOriginY=e,this},updateDisplayOrigin:function(){return this._displayOriginX=this.originX*this.width,this._displayOriginY=this.originY*this.height,this}};t.exports=e},37640:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(39506),r=i(57355),s=i(35154),a=i(86353),o=i(26099),l={path:null,rotateToPath:!1,pathRotationOffset:0,pathOffset:null,pathVector:null,pathDelta:null,pathTween:null,pathConfig:null,_prevDirection:a.PLAYING_FORWARD,setPath:function(t,e){void 0===e&&(e=this.pathConfig);var i=this.pathTween;return i&&i.isPlaying()&&i.stop(),this.path=t,e&&this.startFollow(e),this},setRotateToPath:function(t,e){return void 0===e&&(e=0),this.rotateToPath=t,this.pathRotationOffset=e,this},isFollowing:function(){var t=this.pathTween;return t&&t.isPlaying()},startFollow:function(t,e){void 0===t&&(t={}),void 0===e&&(e=0);var i=this.pathTween;i&&i.isPlaying()&&i.stop(),\"number\"==typeof t&&(t={duration:t}),t.from=s(t,\"from\",0),t.to=s(t,\"to\",1);var l=r(t,\"positionOnPath\",!1);this.rotateToPath=r(t,\"rotateToPath\",!1),this.pathRotationOffset=s(t,\"rotationOffset\",0);var h=s(t,\"startAt\",e);if(h&&(t.onStart=function(t){var e=t.data[0];e.progress=h,e.elapsed=e.duration*h;var i=e.ease(e.progress);e.current=e.start+(e.end-e.start)*i,e.setTargetValue()}),this.pathOffset||(this.pathOffset=new o(this.x,this.y)),this.pathVector||(this.pathVector=new o),this.pathDelta||(this.pathDelta=new o),this.pathDelta.reset(),t.persist=!0,this.pathTween=this.scene.sys.tweens.addCounter(t),this.path.getStartPoint(this.pathOffset),l&&(this.x=this.pathOffset.x,this.y=this.pathOffset.y),this.pathOffset.x=this.x-this.pathOffset.x,this.pathOffset.y=this.y-this.pathOffset.y,this._prevDirection=a.PLAYING_FORWARD,this.rotateToPath){var u=this.path.getPoint(.1);this.rotation=Math.atan2(u.y-this.y,u.x-this.x)+n(this.pathRotationOffset)}return this.pathConfig=t,this},pauseFollow:function(){var t=this.pathTween;return t&&t.isPlaying()&&t.pause(),this},resumeFollow:function(){var t=this.pathTween;return t&&t.isPaused()&&t.resume(),this},stopFollow:function(){var t=this.pathTween;return t&&t.isPlaying()&&t.stop(),this},pathUpdate:function(){var t=this.pathTween;if(t&&t.data){var e=t.data[0],i=this.pathDelta,r=this.pathVector;if(i.copy(r).negate(),e.state===a.COMPLETE)return this.path.getPoint(e.end,r),i.add(r),r.add(this.pathOffset),void this.setPosition(r.x,r.y);if(e.state!==a.PLAYING_FORWARD&&e.state!==a.PLAYING_BACKWARD)return;this.path.getPoint(t.getValue(),r),i.add(r),r.add(this.pathOffset);var s=this.x,o=this.y;this.setPosition(r.x,r.y);var l=this.x-s,h=this.y-o;if(0===l&&0===h)return;if(e.state!==this._prevDirection)return void(this._prevDirection=e.state);this.rotateToPath&&(this.rotation=Math.atan2(h,l)+n(this.pathRotationOffset))}}};t.exports=l},72699:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(62644),r={defaultPipeline:null,pipeline:null,pipelineData:null,initPipeline:function(t){this.pipelineData={};var e=this.scene.sys.renderer;if(!e)return!1;var i=e.pipelines;if(i){void 0===t&&(t=i.default);var n=i.get(t);if(n)return this.defaultPipeline=n,this.pipeline=n,!0}return!1},setPipeline:function(t,e,i){var r=this.scene.sys.renderer;if(!r)return this;var s=r.pipelines;if(s){var a=s.get(t);a&&(this.pipeline=a),e&&(this.pipelineData=i?n(e):e)}return this},setPipelineData:function(t,e){var i=this.pipelineData;return void 0===e?delete i[t]:i[t]=e,this},resetPipeline:function(t){return void 0===t&&(t=!1),this.pipeline=this.defaultPipeline,t&&(this.pipelineData={}),null!==this.pipeline},getPipelineName:function(){return null===this.pipeline?null:this.pipeline.name}};t.exports=r},17581:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(62644),r=i(47059),s=i(19133),a={hasPostPipeline:!1,postPipelines:null,postPipelineData:null,preFX:null,postFX:null,initPostPipeline:function(t){this.postPipelines=[],this.postPipelineData={},this.postFX=new r(this,!0),t&&(this.preFX=new r(this,!1))},setPostPipeline:function(t,e,i){var r=this.scene.sys.renderer;if(!r)return this;var s=r.pipelines;if(s){Array.isArray(t)||(t=[t]);for(var a=0;a0,this},setPostPipelineData:function(t,e){var i=this.postPipelineData;return void 0===e?delete i[t]:i[t]=e,this},getPostPipeline:function(t){for(var e=\"string\"==typeof t,i=this.postPipelines,n=[],r=0;r=0;n--){var r=i[n];(e&&r.name===t||!e&&r===t)&&(r.destroy(),s(i,n))}return this.hasPostPipeline=this.postPipelines.length>0,this},clearFX:function(){return this.preFX&&this.preFX.clear(),this.postFX&&this.postFX.clear(),this}};t.exports=a},80227:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar e={scrollFactorX:1,scrollFactorY:1,setScrollFactor:function(t,e){return void 0===e&&(e=t),this.scrollFactorX=t,this.scrollFactorY=e,this}};t.exports=e},16736:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar e={_sizeComponent:!0,width:0,height:0,displayWidth:{get:function(){return Math.abs(this.scaleX*this.frame.realWidth)},set:function(t){this.scaleX=t/this.frame.realWidth}},displayHeight:{get:function(){return Math.abs(this.scaleY*this.frame.realHeight)},set:function(t){this.scaleY=t/this.frame.realHeight}},setSizeToFrame:function(t){t||(t=this.frame),this.width=t.realWidth,this.height=t.realHeight;var e=this.input;return e&&!e.customHitArea&&(e.hitArea.width=this.width,e.hitArea.height=this.height),this},setSize:function(t,e){return this.width=t,this.height=e,this},setDisplaySize:function(t,e){return this.displayWidth=t,this.displayHeight=e,this}};t.exports=e},37726:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(4327),r={texture:null,frame:null,isCropped:!1,setTexture:function(t,e,i,n){return this.texture=this.scene.sys.textures.get(t),this.setFrame(e,i,n)},setFrame:function(t,e,i){return void 0===e&&(e=!0),void 0===i&&(i=!0),t instanceof n?(this.texture=this.scene.sys.textures.get(t.texture.key),this.frame=t):this.frame=this.texture.get(t),this.frame.cutWidth&&this.frame.cutHeight?this.renderFlags|=8:this.renderFlags&=-9,this._sizeComponent&&e&&this.setSizeToFrame(),this._originComponent&&i&&(this.frame.customPivot?this.setOrigin(this.frame.pivotX,this.frame.pivotY):this.updateDisplayOrigin()),this}};t.exports=r},79812:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(4327),r={texture:null,frame:null,isCropped:!1,setCrop:function(t,e,i,n){if(void 0===t)this.isCropped=!1;else if(this.frame){if(\"number\"==typeof t)this.frame.setCropUVs(this._crop,t,e,i,n,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},setTexture:function(t,e){return this.texture=this.scene.sys.textures.get(t),this.setFrame(e)},setFrame:function(t,e,i){return void 0===e&&(e=!0),void 0===i&&(i=!0),t instanceof n?(this.texture=this.scene.sys.textures.get(t.texture.key),this.frame=t):this.frame=this.texture.get(t),this.frame.cutWidth&&this.frame.cutHeight?this.renderFlags|=8:this.renderFlags&=-9,this._sizeComponent&&e&&this.setSizeToFrame(),this._originComponent&&i&&(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}}};t.exports=r},27472:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar e={tintTopLeft:16777215,tintTopRight:16777215,tintBottomLeft:16777215,tintBottomRight:16777215,tintFill:!1,clearTint:function(){return this.setTint(16777215),this},setTint:function(t,e,i,n){return void 0===t&&(t=16777215),void 0===e&&(e=t,i=t,n=t),this.tintTopLeft=t,this.tintTopRight=e,this.tintBottomLeft=i,this.tintBottomRight=n,this.tintFill=!1,this},setTintFill:function(t,e,i,n){return this.setTint(t,e,i,n),this.tintFill=!0,this},tint:{get:function(){return this.tintTopLeft},set:function(t){this.setTint(t,t,t,t)}},isTinted:{get:function(){return this.tintFill||16777215!==this.tintTopLeft||16777215!==this.tintTopRight||16777215!==this.tintBottomLeft||16777215!==this.tintBottomRight}}};t.exports=e},53774:t=>{t.exports=function(t){var e={name:t.name,type:t.type,x:t.x,y:t.y,depth:t.depth,scale:{x:t.scaleX,y:t.scaleY},origin:{x:t.originX,y:t.originY},flipX:t.flipX,flipY:t.flipY,rotation:t.rotation,alpha:t.alpha,visible:t.visible,blendMode:t.blendMode,textureKey:\"\",frameKey:\"\",data:{}};return t.texture&&(e.textureKey=t.texture.key,e.frameKey=t.frame.name),e}},16901:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(36383),r=i(61340),s=i(85955),a=i(86554),o=i(30954),l=i(26099),h={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(t){this._scaleX=t,this._scaleY=t,0===t?this.renderFlags&=-5:this.renderFlags|=4}},scaleX:{get:function(){return this._scaleX},set:function(t){this._scaleX=t,0===t?this.renderFlags&=-5:0!==this._scaleY&&(this.renderFlags|=4)}},scaleY:{get:function(){return this._scaleY},set:function(t){this._scaleY=t,0===t?this.renderFlags&=-5:0!==this._scaleX&&(this.renderFlags|=4)}},angle:{get:function(){return o(this._rotation*n.RAD_TO_DEG)},set:function(t){this.rotation=o(t)*n.DEG_TO_RAD}},rotation:{get:function(){return this._rotation},set:function(t){this._rotation=a(t)}},setPosition:function(t,e,i,n){return void 0===t&&(t=0),void 0===e&&(e=t),void 0===i&&(i=0),void 0===n&&(n=0),this.x=t,this.y=e,this.z=i,this.w=n,this},copyPosition:function(t){return void 0!==t.x&&(this.x=t.x),void 0!==t.y&&(this.y=t.y),void 0!==t.z&&(this.z=t.z),void 0!==t.w&&(this.w=t.w),this},setRandomPosition:function(t,e,i,n){return void 0===t&&(t=0),void 0===e&&(e=0),void 0===i&&(i=this.scene.sys.scale.width),void 0===n&&(n=this.scene.sys.scale.height),this.x=t+Math.random()*i,this.y=e+Math.random()*n,this},setRotation:function(t){return void 0===t&&(t=0),this.rotation=t,this},setAngle:function(t){return void 0===t&&(t=0),this.angle=t,this},setScale:function(t,e){return void 0===t&&(t=1),void 0===e&&(e=t),this.scaleX=t,this.scaleY=e,this},setX:function(t){return void 0===t&&(t=0),this.x=t,this},setY:function(t){return void 0===t&&(t=0),this.y=t,this},setZ:function(t){return void 0===t&&(t=0),this.z=t,this},setW:function(t){return void 0===t&&(t=0),this.w=t,this},getLocalTransformMatrix:function(t){return void 0===t&&(t=new r),t.applyITRS(this.x,this.y,this._rotation,this._scaleX,this._scaleY)},getWorldTransformMatrix:function(t,e){void 0===t&&(t=new r);var i=this.parentContainer;if(!i)return this.getLocalTransformMatrix(t);var n=!1;for(e||(e=new r,n=!0),t.applyITRS(this.x,this.y,this._rotation,this._scaleX,this._scaleY);i;)e.applyITRS(i.x,i.y,i._rotation,i._scaleX,i._scaleY),e.multiply(t,t),i=i.parentContainer;return n&&e.destroy(),t},getLocalPoint:function(t,e,i,n){i||(i=new l),n||(n=this.scene.sys.cameras.main);var r=n.scrollX,a=n.scrollY,o=t+r*this.scrollFactorX-r,h=e+a*this.scrollFactorY-a;return this.parentContainer?this.getWorldTransformMatrix().applyInverse(o,h,i):s(o,h,this.x,this.y,this.rotation,this.scaleX,this.scaleY,i),this._originComponent&&(i.x+=this._displayOriginX,i.y+=this._displayOriginY),i},getWorldPoint:function(t,e,i){if(void 0===t&&(t=new l),!this.parentContainer)return t.x=this.x,t.y=this.y,t;var n=this.getWorldTransformMatrix(e,i);return t.x=n.tx,t.y=n.ty,t},getParentRotation:function(){for(var t=0,e=this.parentContainer;e;)t+=e.rotation,e=e.parentContainer;return t}};t.exports=h},61340:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(83419),r=i(36383),s=i(26099),a=new n({initialize:function(t,e,i,n,r,s){void 0===t&&(t=1),void 0===e&&(e=0),void 0===i&&(i=0),void 0===n&&(n=1),void 0===r&&(r=0),void 0===s&&(s=0),this.matrix=new Float32Array([t,e,i,n,r,s,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(t){this.matrix[0]=t}},b:{get:function(){return this.matrix[1]},set:function(t){this.matrix[1]=t}},c:{get:function(){return this.matrix[2]},set:function(t){this.matrix[2]=t}},d:{get:function(){return this.matrix[3]},set:function(t){this.matrix[3]=t}},e:{get:function(){return this.matrix[4]},set:function(t){this.matrix[4]=t}},f:{get:function(){return this.matrix[5]},set:function(t){this.matrix[5]=t}},tx:{get:function(){return this.matrix[4]},set:function(t){this.matrix[4]=t}},ty:{get:function(){return this.matrix[5]},set:function(t){this.matrix[5]=t}},rotation:{get:function(){return Math.acos(this.a/this.scaleX)*(Math.atan(-this.c/this.a)<0?-1:1)}},rotationNormalized:{get:function(){var t=this.matrix,e=t[0],i=t[1],n=t[2],s=t[3];return e||i?i>0?Math.acos(e/this.scaleX):-Math.acos(e/this.scaleX):n||s?r.TAU-(s>0?Math.acos(-n/this.scaleY):-Math.acos(n/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 t=this.matrix;return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,this},translate:function(t,e){var i=this.matrix;return i[4]=i[0]*t+i[2]*e+i[4],i[5]=i[1]*t+i[3]*e+i[5],this},scale:function(t,e){var i=this.matrix;return i[0]*=t,i[1]*=t,i[2]*=e,i[3]*=e,this},rotate:function(t){var e=Math.sin(t),i=Math.cos(t),n=this.matrix,r=n[0],s=n[1],a=n[2],o=n[3];return n[0]=r*i+a*e,n[1]=s*i+o*e,n[2]=r*-e+a*i,n[3]=s*-e+o*i,this},multiply:function(t,e){var i=this.matrix,n=t.matrix,r=i[0],s=i[1],a=i[2],o=i[3],l=i[4],h=i[5],u=n[0],c=n[1],d=n[2],f=n[3],p=n[4],m=n[5],g=void 0===e?i:e.matrix;return g[0]=u*r+c*a,g[1]=u*s+c*o,g[2]=d*r+f*a,g[3]=d*s+f*o,g[4]=p*r+m*a+l,g[5]=p*s+m*o+h,g},multiplyWithOffset:function(t,e,i){var n=this.matrix,r=t.matrix,s=n[0],a=n[1],o=n[2],l=n[3],h=e*s+i*o+n[4],u=e*a+i*l+n[5],c=r[0],d=r[1],f=r[2],p=r[3],m=r[4],g=r[5];return n[0]=c*s+d*o,n[1]=c*a+d*l,n[2]=f*s+p*o,n[3]=f*a+p*l,n[4]=m*s+g*o+h,n[5]=m*a+g*l+u,this},transform:function(t,e,i,n,r,s){var a=this.matrix,o=a[0],l=a[1],h=a[2],u=a[3],c=a[4],d=a[5];return a[0]=t*o+e*h,a[1]=t*l+e*u,a[2]=i*o+n*h,a[3]=i*l+n*u,a[4]=r*o+s*h+c,a[5]=r*l+s*u+d,this},transformPoint:function(t,e,i){void 0===i&&(i={x:0,y:0});var n=this.matrix,r=n[0],s=n[1],a=n[2],o=n[3],l=n[4],h=n[5];return i.x=t*r+e*a+l,i.y=t*s+e*o+h,i},invert:function(){var t=this.matrix,e=t[0],i=t[1],n=t[2],r=t[3],s=t[4],a=t[5],o=e*r-i*n;return t[0]=r/o,t[1]=-i/o,t[2]=-n/o,t[3]=e/o,t[4]=(n*a-r*s)/o,t[5]=-(e*a-i*s)/o,this},copyFrom:function(t){var e=this.matrix;return e[0]=t.a,e[1]=t.b,e[2]=t.c,e[3]=t.d,e[4]=t.e,e[5]=t.f,this},copyFromArray:function(t){var e=this.matrix;return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],this},copyToContext:function(t){var e=this.matrix;return t.transform(e[0],e[1],e[2],e[3],e[4],e[5]),t},setToContext:function(t){return t.setTransform(this.a,this.b,this.c,this.d,this.e,this.f),t},copyToArray:function(t){var e=this.matrix;return void 0===t?t=[e[0],e[1],e[2],e[3],e[4],e[5]]:(t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5]),t},setTransform:function(t,e,i,n,r,s){var a=this.matrix;return a[0]=t,a[1]=e,a[2]=i,a[3]=n,a[4]=r,a[5]=s,this},decomposeMatrix:function(){var t=this.decomposedMatrix,e=this.matrix,i=e[0],n=e[1],r=e[2],s=e[3],a=i*s-n*r;if(t.translateX=e[4],t.translateY=e[5],i||n){var o=Math.sqrt(i*i+n*n);t.rotation=n>0?Math.acos(i/o):-Math.acos(i/o),t.scaleX=o,t.scaleY=a/o}else if(r||s){var l=Math.sqrt(r*r+s*s);t.rotation=.5*Math.PI-(s>0?Math.acos(-r/l):-Math.acos(r/l)),t.scaleX=a/l,t.scaleY=l}else t.rotation=0,t.scaleX=0,t.scaleY=0;return t},applyITRS:function(t,e,i,n,r){var s=this.matrix,a=Math.sin(i),o=Math.cos(i);return s[4]=t,s[5]=e,s[0]=o*n,s[1]=a*n,s[2]=-a*r,s[3]=o*r,this},applyInverse:function(t,e,i){void 0===i&&(i=new s);var n=this.matrix,r=n[0],a=n[1],o=n[2],l=n[3],h=n[4],u=n[5],c=1/(r*l+o*-a);return i.x=l*c*t+-o*c*e+(u*o-h*l)*c,i.y=r*c*e+-a*c*t+(-u*r+h*a)*c,i},setQuad:function(t,e,i,n,r,s){void 0===r&&(r=!1),void 0===s&&(s=this.quad);var a=this.matrix,o=a[0],l=a[1],h=a[2],u=a[3],c=a[4],d=a[5],f=t*o+e*h+c,p=t*l+e*u+d,m=t*o+n*h+c,g=t*l+n*u+d,v=i*o+n*h+c,y=i*l+n*u+d,b=i*o+e*h+c,x=i*l+e*u+d;if(r){var w=Math.floor(f+.5),T=Math.floor(p+.5),S=w-f,E=T-p;s[0]=w,s[1]=T,s[2]=m+S,s[3]=g+E,s[4]=v+S,s[5]=y+E,s[6]=b+S,s[7]=x+E}else s[0]=f,s[1]=p,s[2]=m,s[3]=g,s[4]=v,s[5]=y,s[6]=b,s[7]=x;return s},getX:function(t,e){return t*this.a+e*this.c+this.e},getY:function(t,e){return t*this.b+e*this.d+this.f},getXRound:function(t,e,i){var n=this.getX(t,e);return i&&(n=Math.floor(n+.5)),n},getYRound:function(t,e,i){var n=this.getY(t,e);return i&&(n=Math.floor(n+.5)),n},getCSSMatrix:function(){var t=this.matrix;return\"matrix(\"+t[0]+\",\"+t[1]+\",\"+t[2]+\",\"+t[3]+\",\"+t[4]+\",\"+t[5]+\")\"},destroy:function(){this.matrix=null,this.quad=null,this.decomposedMatrix=null}});t.exports=a},59715:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar e={_visible:!0,visible:{get:function(){return this._visible},set:function(t){t?(this._visible=!0,this.renderFlags|=1):(this._visible=!1,this.renderFlags&=-2)}},setVisible:function(t){return this.visible=t,this}};t.exports=e},31401:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports={Alpha:i(16005),AlphaSingle:i(88509),BlendMode:i(90065),ComputedSize:i(94215),Crop:i(61683),Depth:i(89272),Flip:i(54434),FX:i(47059),GetBounds:i(8004),Mask:i(8573),Origin:i(27387),PathFollower:i(37640),Pipeline:i(72699),PostPipeline:i(17581),ScrollFactor:i(80227),Size:i(16736),Texture:i(37726),TextureCrop:i(79812),Tint:i(27472),ToJSON:i(53774),Transform:i(16901),TransformMatrix:i(61340),Visible:i(59715)}},31559:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @author Felipe Alfonso <@bitnenfer>\n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(37105),r=i(10312),s=i(83419),a=i(31401),o=i(51708),l=i(95643),h=i(87841),u=i(29959),c=i(36899),d=i(26099),f=new a.TransformMatrix,p=new s({Extends:l,Mixins:[a.AlphaSingle,a.BlendMode,a.ComputedSize,a.Depth,a.Mask,a.PostPipeline,a.Transform,a.Visible,u],initialize:function(t,e,i,n){l.call(this,t,\"Container\"),this.list=[],this.exclusive=!0,this.maxSize=-1,this.position=0,this.localTransform=new a.TransformMatrix,this._sortKey=\"\",this._sysEvents=t.sys.events,this.scrollFactorX=1,this.scrollFactorY=1,this.initPostPipeline(),this.setPosition(e,i),this.setBlendMode(r.SKIP_CHECK),n&&this.add(n)},originX:{get:function(){return.5}},originY:{get:function(){return.5}},displayOriginX:{get:function(){return.5*this.width}},displayOriginY:{get:function(){return.5*this.height}},setExclusive:function(t){return void 0===t&&(t=!0),this.exclusive=t,this},getBounds:function(t){if(void 0===t&&(t=new h),t.setTo(this.x,this.y,0,0),this.parentContainer){var e=this.parentContainer.getBoundsTransformMatrix().transformPoint(this.x,this.y);t.setTo(e.x,e.y,0,0)}if(this.list.length>0){var i=this.list,n=new h,r=!1;t.setEmpty();for(var s=0;s-1},setAll:function(t,e,i,r){return n.SetAll(this.list,t,e,i,r),this},each:function(t,e){var i,n=[null],r=this.list.slice(),s=r.length;for(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}},preDestroy:function(){this.removeAll(!!this.exclusive),this.localTransform.destroy(),this.list=[]},onChildDestroyed:function(t){n.Remove(this.list,t),this.exclusive&&(t.parentContainer=null,t.removedFromScene())}});t.exports=p},53584:t=>{t.exports=function(t,e,i,n){i.addToRenderList(e);var r=e.list;if(0!==r.length){var s=e.localTransform;n?(s.loadIdentity(),s.multiply(n),s.translate(e.x,e.y),s.rotate(e.rotation),s.scale(e.scaleX,e.scaleY)):s.applyITRS(e.x,e.y,e.rotation,e.scaleX,e.scaleY);var a=-1!==e.blendMode;a||t.setBlendMode(0);var o=e._alpha,l=e.scrollFactorX,h=e.scrollFactorY;e.mask&&e.mask.preRenderCanvas(t,null,i);for(var u=0;u{\n/**\n * @author Richard Davey \n * @author Felipe Alfonso <@bitnenfer>\n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(25305),r=i(31559),s=i(44603),a=i(23568),o=i(95540);s.register(\"container\",(function(t,e){void 0===t&&(t={});var i=a(t,\"x\",0),s=a(t,\"y\",0),l=o(t,\"children\",null),h=new r(this.scene,i,s,l);return void 0!==e&&(t.add=e),n(this.scene,h,t),h}))},24961:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @author Felipe Alfonso <@bitnenfer>\n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(31559);i(39429).register(\"container\",(function(t,e,i){return this.displayList.add(new n(this.scene,t,e,i))}))},29959:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @author Felipe Alfonso <@bitnenfer>\n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(29747),r=n,s=n;r=i(72249),s=i(53584),t.exports={renderWebGL:r,renderCanvas:s}},72249:t=>{t.exports=function(t,e,i,n){i.addToRenderList(e);var r=e.list,s=r.length;if(0!==s){var a=e.localTransform;n?(a.loadIdentity(),a.multiply(n),a.translate(e.x,e.y),a.rotate(e.rotation),a.scale(e.scaleX,e.scaleY)):a.applyITRS(e.x,e.y,e.rotation,e.scaleX,e.scaleY),t.pipelines.preBatch(e);var o=-1!==e.blendMode;o||t.setBlendMode(0);for(var l=e.alpha,h=e.scrollFactorX,u=e.scrollFactorY,c=0;c{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports=[\"normal\",\"multiply\",\"multiply\",\"screen\",\"overlay\",\"darken\",\"lighten\",\"color-dodge\",\"color-burn\",\"hard-light\",\"soft-light\",\"difference\",\"exclusion\",\"hue\",\"saturation\",\"color\",\"luminosity\"]},3069:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(83419),r=i(31401),s=i(441),a=i(95643),o=i(41212),l=i(35846),h=i(44594),u=i(61369),c=new n({Extends:a,Mixins:[r.AlphaSingle,r.BlendMode,r.Depth,r.Origin,r.ScrollFactor,r.Transform,r.Visible,s],initialize:function(t,e,i,n,r,s){a.call(this,t,\"DOMElement\"),this.parent=t.sys.game.domContainer,this.cache=t.sys.cache.html,this.node,this.transformOnly=!1,this.skewX=0,this.skewY=0,this.rotate3d=new u,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(e,i),\"string\"==typeof n?\"#\"===n[0]?this.setElement(n.substr(1),r,s):this.createElement(n,r,s):n&&this.setElement(n,r,s),t.sys.events.on(h.SLEEP,this.handleSceneEvent,this),t.sys.events.on(h.WAKE,this.handleSceneEvent,this),t.sys.events.on(h.PRE_RENDER,this.preRender,this)},handleSceneEvent:function(t){var e=this.node,i=e.style;e&&(i.display=t.settings.visible?\"block\":\"none\")},setSkew:function(t,e){return void 0===t&&(t=0),void 0===e&&(e=t),this.skewX=t,this.skewY=e,this},setPerspective:function(t){return this.parent.style.perspective=t+\"px\",this},perspective:{get:function(){return parseFloat(this.parent.style.perspective)},set:function(t){this.parent.style.perspective=t+\"px\"}},addListener:function(t){if(this.node){t=t.split(\" \");for(var e=0;e{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(47407),r=i(95643),s=i(61340),a=new s,o=new s,l=new s;t.exports=function(t,e,i,s){if(e.node){var h=e.node.style,u=e.scene.sys.settings;if(!h||!u.visible||r.RENDER_MASK!==e.renderFlags||0!==e.cameraFilter&&e.cameraFilter&i.id||e.parentContainer&&!e.parentContainer.willRender())h.display=\"none\";else{var c=e.parentContainer,d=i.alpha*e.alpha;c&&(d*=c.alpha);var f=a,p=o,m=l,g=0,v=0,y=\"0%\",b=\"0%\";s?(g=e.width*e.scaleX*e.originX,v=e.height*e.scaleY*e.originY,p.applyITRS(e.x-g,e.y-v,e.rotation,e.scaleX,e.scaleY),f.copyFrom(i.matrix),f.multiplyWithOffset(s,-i.scrollX*e.scrollFactorX,-i.scrollY*e.scrollFactorY),p.e=e.x-g,p.f=e.y-v,f.multiply(p,m)):(g=e.width*e.originX,v=e.height*e.originY,p.applyITRS(e.x,e.y,e.rotation,e.scaleX,e.scaleY),f.copyFrom(i.matrix),y=100*e.originX+\"%\",b=100*e.originY+\"%\",p.e-=i.scrollX*e.scrollFactorX,p.f-=i.scrollY*e.scrollFactorY,f.multiply(p,m),m.e-=g,m.f-=v),e.transformOnly||(h.display=\"block\",h.opacity=d,h.zIndex=e._depth,h.pointerEvents=e.pointerEvents,h.mixBlendMode=n[e._blendMode]),h.transform=m.getCSSMatrix()+\" skew(\"+e.skewX+\"rad, \"+e.skewY+\"rad) rotate3d(\"+e.rotate3d.x+\",\"+e.rotate3d.y+\",\"+e.rotate3d.z+\",\"+e.rotate3d.w+e.rotate3dAngle+\")\",h.transformOrigin=y+\" \"+b}}}},2611:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(3069);i(39429).register(\"dom\",(function(t,e,i,r,s){var a=new n(this.scene,t,e,i,r,s);return this.displayList.add(a),a}))},441:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(29747),r=n,s=n;r=i(49381),s=i(49381),t.exports={renderWebGL:r,renderCanvas:s}},62980:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports=\"addedtoscene\"},41337:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports=\"destroy\"},44947:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports=\"removedfromscene\"},49358:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports=\"complete\"},35163:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports=\"created\"},97249:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports=\"error\"},19483:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports=\"locked\"},56059:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports=\"loop\"},26772:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports=\"metadata\"},64437:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports=\"playing\"},83411:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports=\"play\"},75780:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports=\"seeked\"},67799:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports=\"seeking\"},63500:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports=\"stalled\"},55541:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports=\"stop\"},53208:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports=\"textureready\"},4992:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports=\"unlocked\"},12:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports=\"unsupported\"},51708:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports={ADDED_TO_SCENE:i(62980),DESTROY:i(41337),REMOVED_FROM_SCENE:i(44947),VIDEO_COMPLETE:i(49358),VIDEO_CREATED:i(35163),VIDEO_ERROR:i(97249),VIDEO_LOCKED:i(19483),VIDEO_LOOP:i(56059),VIDEO_METADATA:i(26772),VIDEO_PLAY:i(83411),VIDEO_PLAYING:i(64437),VIDEO_SEEKED:i(75780),VIDEO_SEEKING:i(67799),VIDEO_STALLED:i(63500),VIDEO_STOP:i(55541),VIDEO_TEXTURE:i(53208),VIDEO_UNLOCKED:i(4992),VIDEO_UNSUPPORTED:i(12)}},42421:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(83419),r=i(31401),s=i(95643),a=i(64993),o=new n({Extends:s,Mixins:[r.Alpha,r.BlendMode,r.Depth,r.Flip,r.Origin,r.ScrollFactor,r.Size,r.Texture,r.Tint,r.Transform,r.Visible,a],initialize:function(t){s.call(this,t,\"Extern\")},addedToScene:function(){this.scene.sys.updateList.add(this)},removedFromScene:function(){this.scene.sys.updateList.remove(this)},preUpdate:function(){},render:function(){}});t.exports=o},70217:()=>{},56315:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(42421);i(39429).register(\"extern\",(function(){var t=new n(this.scene);return this.displayList.add(t),t}))},64993:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(29747),r=n,s=n;r=i(80287),s=i(70217),t.exports={renderWebGL:r,renderCanvas:s}},80287:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(91296);t.exports=function(t,e,i,r){t.pipelines.clear();var s=n(e,i,r).calc;e.render.call(e,t,i,s),t.pipelines.rebind()}},85592:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports={ARC:0,BEGIN_PATH:1,CLOSE_PATH:2,FILL_RECT:3,LINE_TO:4,MOVE_TO:5,LINE_STYLE:6,FILL_STYLE:7,FILL_PATH:8,STROKE_PATH:9,FILL_TRIANGLE:10,STROKE_TRIANGLE:11,SAVE:14,RESTORE:15,TRANSLATE:16,SCALE:17,ROTATE:18,GRADIENT_FILL_STYLE:21,GRADIENT_LINE_STYLE:22}},43831:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(71911),r=i(83419),s=i(85592),a=i(31401),o=i(8497),l=i(95643),h=i(95540),u=i(35154),c=i(36383),d=i(84503),f=new r({Extends:l,Mixins:[a.AlphaSingle,a.BlendMode,a.Depth,a.Mask,a.Pipeline,a.PostPipeline,a.Transform,a.Visible,a.ScrollFactor,d],initialize:function(t,e){var i=u(e,\"x\",0),n=u(e,\"y\",0);l.call(this,t,\"Graphics\"),this.setPosition(i,n),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(e)},setDefaultStyles:function(t){return u(t,\"lineStyle\",null)&&(this.defaultStrokeWidth=u(t,\"lineStyle.width\",1),this.defaultStrokeColor=u(t,\"lineStyle.color\",16777215),this.defaultStrokeAlpha=u(t,\"lineStyle.alpha\",1),this.lineStyle(this.defaultStrokeWidth,this.defaultStrokeColor,this.defaultStrokeAlpha)),u(t,\"fillStyle\",null)&&(this.defaultFillColor=u(t,\"fillStyle.color\",16777215),this.defaultFillAlpha=u(t,\"fillStyle.alpha\",1),this.fillStyle(this.defaultFillColor,this.defaultFillAlpha)),this},lineStyle:function(t,e,i){return void 0===i&&(i=1),this.commandBuffer.push(s.LINE_STYLE,t,e,i),this._lineWidth=t,this},fillStyle:function(t,e){return void 0===e&&(e=1),this.commandBuffer.push(s.FILL_STYLE,t,e),this},fillGradientStyle:function(t,e,i,n,r,a,o,l){return void 0===r&&(r=1),void 0===a&&(a=r),void 0===o&&(o=r),void 0===l&&(l=r),this.commandBuffer.push(s.GRADIENT_FILL_STYLE,r,a,o,l,t,e,i,n),this},lineGradientStyle:function(t,e,i,n,r,a){return void 0===a&&(a=1),this.commandBuffer.push(s.GRADIENT_LINE_STYLE,t,a,e,i,n,r),this},beginPath:function(){return this.commandBuffer.push(s.BEGIN_PATH),this},closePath:function(){return this.commandBuffer.push(s.CLOSE_PATH),this},fillPath:function(){return this.commandBuffer.push(s.FILL_PATH),this},fill:function(){return this.commandBuffer.push(s.FILL_PATH),this},strokePath:function(){return this.commandBuffer.push(s.STROKE_PATH),this},stroke:function(){return this.commandBuffer.push(s.STROKE_PATH),this},fillCircleShape:function(t){return this.fillCircle(t.x,t.y,t.radius)},strokeCircleShape:function(t){return this.strokeCircle(t.x,t.y,t.radius)},fillCircle:function(t,e,i){return this.beginPath(),this.arc(t,e,i,0,c.PI2),this.fillPath(),this},strokeCircle:function(t,e,i){return this.beginPath(),this.arc(t,e,i,0,c.PI2),this.strokePath(),this},fillRectShape:function(t){return this.fillRect(t.x,t.y,t.width,t.height)},strokeRectShape:function(t){return this.strokeRect(t.x,t.y,t.width,t.height)},fillRect:function(t,e,i,n){return this.commandBuffer.push(s.FILL_RECT,t,e,i,n),this},strokeRect:function(t,e,i,n){var r=this._lineWidth/2,s=t-r,a=t+r;return this.beginPath(),this.moveTo(t,e),this.lineTo(t,e+n),this.strokePath(),this.beginPath(),this.moveTo(t+i,e),this.lineTo(t+i,e+n),this.strokePath(),this.beginPath(),this.moveTo(s,e),this.lineTo(a+i,e),this.strokePath(),this.beginPath(),this.moveTo(s,e+n),this.lineTo(a+i,e+n),this.strokePath(),this},fillRoundedRect:function(t,e,i,n,r){void 0===r&&(r=20);var s=r,a=r,o=r,l=r;\"number\"!=typeof r&&(s=h(r,\"tl\",20),a=h(r,\"tr\",20),o=h(r,\"bl\",20),l=h(r,\"br\",20));var u=s>=0,d=a>=0,f=o>=0,p=l>=0;return s=Math.abs(s),a=Math.abs(a),o=Math.abs(o),l=Math.abs(l),this.beginPath(),this.moveTo(t+s,e),this.lineTo(t+i-a,e),d?this.arc(t+i-a,e+a,a,-c.TAU,0):this.arc(t+i,e,a,Math.PI,c.TAU,!0),this.lineTo(t+i,e+n-l),p?this.arc(t+i-l,e+n-l,l,0,c.TAU):this.arc(t+i,e+n,l,-c.TAU,Math.PI,!0),this.lineTo(t+o,e+n),f?this.arc(t+o,e+n-o,o,c.TAU,Math.PI):this.arc(t,e+n,o,0,-c.TAU,!0),this.lineTo(t,e+s),u?this.arc(t+s,e+s,s,-Math.PI,-c.TAU):this.arc(t,e,s,c.TAU,0,!0),this.fillPath(),this},strokeRoundedRect:function(t,e,i,n,r){void 0===r&&(r=20);var s=r,a=r,o=r,l=r,u=Math.min(i,n)/2;\"number\"!=typeof r&&(s=h(r,\"tl\",20),a=h(r,\"tr\",20),o=h(r,\"bl\",20),l=h(r,\"br\",20));var d=s>=0,f=a>=0,p=o>=0,m=l>=0;return s=Math.min(Math.abs(s),u),a=Math.min(Math.abs(a),u),o=Math.min(Math.abs(o),u),l=Math.min(Math.abs(l),u),this.beginPath(),this.moveTo(t+s,e),this.lineTo(t+i-a,e),this.moveTo(t+i-a,e),f?this.arc(t+i-a,e+a,a,-c.TAU,0):this.arc(t+i,e,a,Math.PI,c.TAU,!0),this.lineTo(t+i,e+n-l),this.moveTo(t+i,e+n-l),m?this.arc(t+i-l,e+n-l,l,0,c.TAU):this.arc(t+i,e+n,l,-c.TAU,Math.PI,!0),this.lineTo(t+o,e+n),this.moveTo(t+o,e+n),p?this.arc(t+o,e+n-o,o,c.TAU,Math.PI):this.arc(t,e+n,o,0,-c.TAU,!0),this.lineTo(t,e+s),this.moveTo(t,e+s),d?this.arc(t+s,e+s,s,-Math.PI,-c.TAU):this.arc(t,e,s,c.TAU,0,!0),this.strokePath(),this},fillPointShape:function(t,e){return this.fillPoint(t.x,t.y,e)},fillPoint:function(t,e,i){return!i||i<1?i=1:(t-=i/2,e-=i/2),this.commandBuffer.push(s.FILL_RECT,t,e,i,i),this},fillTriangleShape:function(t){return this.fillTriangle(t.x1,t.y1,t.x2,t.y2,t.x3,t.y3)},strokeTriangleShape:function(t){return this.strokeTriangle(t.x1,t.y1,t.x2,t.y2,t.x3,t.y3)},fillTriangle:function(t,e,i,n,r,a){return this.commandBuffer.push(s.FILL_TRIANGLE,t,e,i,n,r,a),this},strokeTriangle:function(t,e,i,n,r,a){return this.commandBuffer.push(s.STROKE_TRIANGLE,t,e,i,n,r,a),this},strokeLineShape:function(t){return this.lineBetween(t.x1,t.y1,t.x2,t.y2)},lineBetween:function(t,e,i,n){return this.beginPath(),this.moveTo(t,e),this.lineTo(i,n),this.strokePath(),this},lineTo:function(t,e){return this.commandBuffer.push(s.LINE_TO,t,e),this},moveTo:function(t,e){return this.commandBuffer.push(s.MOVE_TO,t,e),this},strokePoints:function(t,e,i,n){void 0===e&&(e=!1),void 0===i&&(i=!1),void 0===n&&(n=t.length),this.beginPath(),this.moveTo(t[0].x,t[0].y);for(var r=1;r-1&&this.fillStyle(this.defaultFillColor,this.defaultFillAlpha),this.defaultStrokeColor>-1&&this.lineStyle(this.defaultStrokeWidth,this.defaultStrokeColor,this.defaultStrokeAlpha),this},generateTexture:function(t,e,i){var n,r,s=this.scene.sys,a=s.game.renderer;void 0===e&&(e=s.scale.width),void 0===i&&(i=s.scale.height),f.TargetCamera.setScene(this.scene),f.TargetCamera.setViewport(0,0,e,i),f.TargetCamera.scrollX=this.x,f.TargetCamera.scrollY=this.y;var o={willReadFrequently:!0};if(\"string\"==typeof t)if(s.textures.exists(t)){var l=(n=s.textures.get(t)).getSourceImage();l instanceof HTMLCanvasElement&&(r=l.getContext(\"2d\",o))}else r=(n=s.textures.createCanvas(t,e,i)).getSourceImage().getContext(\"2d\",o);else t instanceof HTMLCanvasElement&&(r=t.getContext(\"2d\",o));return r&&(this.renderCanvas(a,this,f.TargetCamera,null,r,!1),n&&n.refresh()),this},preDestroy:function(){this.commandBuffer=[]}});f.TargetCamera=new n,t.exports=f},32768:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(85592),r=i(20926);t.exports=function(t,e,i,s,a,o){var l=e.commandBuffer,h=l.length,u=a||t.currentContext;if(0!==h&&r(t,u,e,i,s)){i.addToRenderList(e);var c=1,d=1,f=0,p=0,m=1,g=0,v=0,y=0;u.beginPath();for(var b=0;b>>16,v=(65280&f)>>>8,y=255&f,u.strokeStyle=\"rgba(\"+g+\",\"+v+\",\"+y+\",\"+c+\")\",u.lineWidth=m,b+=3;break;case n.FILL_STYLE:p=l[b+1],d=l[b+2],g=(16711680&p)>>>16,v=(65280&p)>>>8,y=255&p,u.fillStyle=\"rgba(\"+g+\",\"+v+\",\"+y+\",\"+d+\")\",b+=2;break;case n.BEGIN_PATH:u.beginPath();break;case n.CLOSE_PATH:u.closePath();break;case n.FILL_PATH:o||u.fill();break;case n.STROKE_PATH:o||u.stroke();break;case n.FILL_RECT:o?u.rect(l[b+1],l[b+2],l[b+3],l[b+4]):u.fillRect(l[b+1],l[b+2],l[b+3],l[b+4]),b+=4;break;case n.FILL_TRIANGLE:u.beginPath(),u.moveTo(l[b+1],l[b+2]),u.lineTo(l[b+3],l[b+4]),u.lineTo(l[b+5],l[b+6]),u.closePath(),o||u.fill(),b+=6;break;case n.STROKE_TRIANGLE:u.beginPath(),u.moveTo(l[b+1],l[b+2]),u.lineTo(l[b+3],l[b+4]),u.lineTo(l[b+5],l[b+6]),u.closePath(),o||u.stroke(),b+=6;break;case n.LINE_TO:u.lineTo(l[b+1],l[b+2]),b+=2;break;case n.MOVE_TO:u.moveTo(l[b+1],l[b+2]),b+=2;break;case n.LINE_FX_TO:u.lineTo(l[b+1],l[b+2]),b+=5;break;case n.MOVE_FX_TO:u.moveTo(l[b+1],l[b+2]),b+=5;break;case n.SAVE:u.save();break;case n.RESTORE:u.restore();break;case n.TRANSLATE:u.translate(l[b+1],l[b+2]),b+=2;break;case n.SCALE:u.scale(l[b+1],l[b+2]),b+=2;break;case n.ROTATE:u.rotate(l[b+1]),b+=1;break;case n.GRADIENT_FILL_STYLE:b+=5;break;case n.GRADIENT_LINE_STYLE:b+=6}u.restore()}}},87079:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(44603),r=i(43831);n.register(\"graphics\",(function(t,e){void 0===t&&(t={}),void 0!==e&&(t.add=e);var i=new r(this.scene,t);return t.add&&this.scene.sys.displayList.add(i),i}))},1201:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(43831);i(39429).register(\"graphics\",(function(t){return this.displayList.add(new n(this.scene,t))}))},84503:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(29747),r=n,s=n;r=i(77545),s=i(32768),s=i(32768),t.exports={renderWebGL:r,renderCanvas:s}},77545:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(85592),r=i(91296),s=i(61340),a=i(70554),o=function(t,e,i){this.x=t,this.y=e,this.width=i},l=function(t,e,i){this.points=[],this.pointsLength=1,this.points[0]=new o(t,e,i)},h=[],u=new s;t.exports=function(t,e,i,s){if(0!==e.commandBuffer.length){i.addToRenderList(e);var c=t.pipelines.set(e.pipeline,e);t.pipelines.preBatch(e);for(var d=r(e,i,s).calc,f=u.loadIdentity(),p=e.commandBuffer,m=i.alpha*e.alpha,g=1,v=c.fillTint,y=c.strokeTint,b=0,x=0,w=0,T=2*Math.PI,S=[],E=0,C=!0,A=null,_=a.getTintAppendFloatAlpha,k=0;k0&&(U=U%T-T):U>T?U=T:U<0&&(U=T+U%T),null===A&&(A=new l(N+Math.cos(j)*z,B+Math.sin(j)*z,g),S.push(A),L+=.01);L<1+G;)w=U*L+j,b=N+Math.cos(w)*z,x=B+Math.sin(w)*z,A.points.push(new o(b,x,g)),L+=.01;w=U+j,b=N+Math.cos(w)*z,x=B+Math.sin(w)*z,A.points.push(new o(b,x,g));break;case n.FILL_RECT:c.batchFillRect(p[++k],p[++k],p[++k],p[++k],f,d);break;case n.FILL_TRIANGLE:c.batchFillTriangle(p[++k],p[++k],p[++k],p[++k],p[++k],p[++k],f,d);break;case n.STROKE_TRIANGLE:c.batchStrokeTriangle(p[++k],p[++k],p[++k],p[++k],p[++k],p[++k],g,f,d);break;case n.LINE_TO:null!==A?A.points.push(new o(p[++k],p[++k],g)):(A=new l(p[++k],p[++k],g),S.push(A));break;case n.MOVE_TO:A=new l(p[++k],p[++k],g),S.push(A);break;case n.SAVE:h.push(f.copyToArray());break;case n.RESTORE:f.copyFromArray(h.pop());break;case n.TRANSLATE:N=p[++k],B=p[++k],f.translate(N,B);break;case n.SCALE:N=p[++k],B=p[++k],f.scale(N,B);break;case n.ROTATE:f.rotate(p[++k])}t.pipelines.postBatch(e)}}},26479:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(61061),r=i(83419),s=i(51708),a=i(50792),o=i(46710),l=i(95540),h=i(35154),u=i(97022),c=i(41212),d=i(88492),f=i(35072),p=i(68287),m=new r({Extends:a,initialize:function(t,e,i){a.call(this),i?e&&!Array.isArray(e)&&(e=[e]):Array.isArray(e)?c(e[0])&&(i=e,e=null):c(e)&&(i=e,e=null),this.scene=t,this.children=new f,this.isParent=!0,this.type=\"Group\",this.classType=l(i,\"classType\",p),this.name=l(i,\"name\",\"\"),this.active=l(i,\"active\",!0),this.maxSize=l(i,\"maxSize\",-1),this.defaultKey=l(i,\"defaultKey\",null),this.defaultFrame=l(i,\"defaultFrame\",null),this.runChildUpdate=l(i,\"runChildUpdate\",!1),this.createCallback=l(i,\"createCallback\",null),this.removeCallback=l(i,\"removeCallback\",null),this.createMultipleCallback=l(i,\"createMultipleCallback\",null),this.internalCreateCallback=l(i,\"internalCreateCallback\",null),this.internalRemoveCallback=l(i,\"internalRemoveCallback\",null),e&&this.addMultiple(e),i&&this.createMultiple(i),this.on(s.ADDED_TO_SCENE,this.addedToScene,this),this.on(s.REMOVED_FROM_SCENE,this.removedFromScene,this)},addedToScene:function(){this.scene.sys.updateList.add(this)},removedFromScene:function(){this.scene.sys.updateList.remove(this)},create:function(t,e,i,n,r,s){if(void 0===t&&(t=0),void 0===e&&(e=0),void 0===i&&(i=this.defaultKey),void 0===n&&(n=this.defaultFrame),void 0===r&&(r=!0),void 0===s&&(s=!0),this.isFull())return null;var a=new this.classType(this.scene,t,e,i,n);return a.addToDisplayList(this.scene.sys.displayList),a.addToUpdateList(),a.visible=r,a.setActive(s),this.add(a),a},createMultiple:function(t){if(this.isFull())return[];Array.isArray(t)||(t=[t]);var e=[];if(t[0].key)for(var i=0;i=0;u--)if((h=d[u]).active===i){if(++c===e)break}else h=null;return h?(\"number\"==typeof r&&(h.x=r),\"number\"==typeof s&&(h.y=s),h):n?this.create(r,s,a,o,l):null},get:function(t,e,i,n,r){return this.getFirst(!1,!0,t,e,i,n,r)},getFirstAlive:function(t,e,i,n,r,s){return this.getFirst(!0,t,e,i,n,r,s)},getFirstDead:function(t,e,i,n,r,s){return this.getFirst(!1,t,e,i,n,r,s)},playAnimation:function(t,e){return n.PlayAnimation(this.children.entries,t,e),this},isFull:function(){return-1!==this.maxSize&&this.children.size>=this.maxSize},countActive:function(t){void 0===t&&(t=!0);for(var e=0,i=0;i{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(44603),r=i(26479);n.register(\"group\",(function(t){return new r(this.scene,null,t)}))},3385:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(26479);i(39429).register(\"group\",(function(t,e){return this.updateList.add(new n(this.scene,t,e))}))},88571:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(83419),r=i(31401),s=i(95643),a=i(59819),o=new n({Extends:s,Mixins:[r.Alpha,r.BlendMode,r.Depth,r.Flip,r.GetBounds,r.Mask,r.Origin,r.Pipeline,r.PostPipeline,r.ScrollFactor,r.Size,r.TextureCrop,r.Tint,r.Transform,r.Visible,a],initialize:function(t,e,i,n,r){s.call(this,t,\"Image\"),this._crop=this.resetCropObject(),this.setTexture(n,r),this.setPosition(e,i),this.setSizeToFrame(),this.setOriginFromFrame(),this.initPipeline(),this.initPostPipeline(!0)}});t.exports=o},40652:t=>{t.exports=function(t,e,i,n){i.addToRenderList(e),t.batchSprite(e,e.frame,i,n)}},82459:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(25305),r=i(44603),s=i(23568),a=i(88571);r.register(\"image\",(function(t,e){void 0===t&&(t={});var i=s(t,\"key\",null),r=s(t,\"frame\",null),o=new a(this.scene,0,0,i,r);return void 0!==e&&(t.add=e),n(this.scene,o,t),o}))},2117:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(88571);i(39429).register(\"image\",(function(t,e,i,r){return this.displayList.add(new n(this.scene,t,e,i,r))}))},59819:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(29747),r=n,s=n;r=i(99517),s=i(40652),t.exports={renderWebGL:r,renderCanvas:s}},99517:t=>{t.exports=function(t,e,i,n){i.addToRenderList(e),this.pipeline.batchSprite(e,i,n)}},77856:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n={Events:i(51708),DisplayList:i(8050),GameObjectCreator:i(44603),GameObjectFactory:i(39429),UpdateList:i(45027),Components:i(31401),GetCalcMatrix:i(91296),BuildGameObject:i(25305),BuildGameObjectAnimation:i(13059),GameObject:i(95643),BitmapText:i(22186),Blitter:i(6107),Bob:i(46590),Container:i(31559),DOMElement:i(3069),DynamicBitmapText:i(2638),Extern:i(42421),Graphics:i(43831),Group:i(26479),Image:i(88571),Layer:i(93595),Particles:i(18404),PathFollower:i(1159),RenderTexture:i(591),RetroFont:i(196),Rope:i(77757),Sprite:i(68287),Text:i(50171),GetTextSize:i(14220),MeasureText:i(79557),TextStyle:i(35762),TileSprite:i(20839),Zone:i(41481),Video:i(18471),Shape:i(17803),Arc:i(23629),Curve:i(89),Ellipse:i(19921),Grid:i(30479),IsoBox:i(61475),IsoTriangle:i(16933),Line:i(57847),Polygon:i(24949),Rectangle:i(74561),Star:i(55911),Triangle:i(36931),Factories:{Blitter:i(12709),Container:i(24961),DOMElement:i(2611),DynamicBitmapText:i(72566),Extern:i(56315),Graphics:i(1201),Group:i(3385),Image:i(2117),Layer:i(20005),Particles:i(676),PathFollower:i(90145),RenderTexture:i(60505),Rope:i(96819),Sprite:i(46409),StaticBitmapText:i(34914),Text:i(68005),TileSprite:i(91681),Zone:i(84175),Video:i(89025),Arc:i(42563),Curve:i(40511),Ellipse:i(1543),Grid:i(34137),IsoBox:i(3933),IsoTriangle:i(49803),Line:i(2481),Polygon:i(64827),Rectangle:i(87959),Star:i(93697),Triangle:i(45245)},Creators:{Blitter:i(9403),Container:i(77143),DynamicBitmapText:i(11164),Graphics:i(87079),Group:i(94975),Image:i(82459),Layer:i(25179),Particles:i(92730),RenderTexture:i(34495),Rope:i(26209),Sprite:i(15567),StaticBitmapText:i(57336),Text:i(71259),TileSprite:i(14167),Zone:i(95261),Video:i(11511)}};n.Shader=i(20071),n.Mesh=i(4703),n.NineSlice=i(28103),n.PointLight=i(80321),n.Plane=i(33663),n.Factories.Shader=i(74177),n.Factories.Mesh=i(9225),n.Factories.NineSlice=i(47521),n.Factories.PointLight=i(71255),n.Factories.Plane=i(30985),n.Creators.Shader=i(54935),n.Creators.Mesh=i(20527),n.Creators.NineSlice=i(28279),n.Creators.PointLight=i(39829),n.Creators.Plane=i(56015),n.Light=i(41432),n.LightsManager=i(61356),n.LightsPlugin=i(88992),t.exports=n},93595:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(10312),r=i(83419),s=i(31401),a=i(53774),o=i(45893),l=i(50792),h=i(51708),u=i(73162),c=i(33963),d=i(44594),f=i(19186),p=new r({Extends:u,Mixins:[s.AlphaSingle,s.BlendMode,s.Depth,s.Mask,s.PostPipeline,s.Visible,l,c],initialize:function(t,e){u.call(this,t),l.call(this),this.scene=t,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=t.sys,this.events=t.sys.events,this.sortChildrenFlag=!1,this.addCallback=this.addChildCallback,this.removeCallback=this.removeChildCallback,this.initPostPipeline(),this.clearAlpha(),this.setBlendMode(n.SKIP_CHECK),e&&this.add(e),t.sys.queueDepthSort()},setActive:function(t){return this.active=t,this},setName:function(t){return this.name=t,this},setState:function(t){return this.state=t,this},setDataEnabled:function(){return this.data||(this.data=new o(this)),this},setData:function(t,e){return this.data||(this.data=new o(this)),this.data.set(t,e),this},incData:function(t,e){return this.data||(this.data=new o(this)),this.data.inc(t,e),this},toggleData:function(t){return this.data||(this.data=new o(this)),this.data.toggle(t),this},getData:function(t){return this.data||(this.data=new o(this)),this.data.get(t)},setInteractive:function(){return this},disableInteractive:function(){return this},removeInteractive:function(){return this},addedToScene:function(){},removedFromScene:function(){},update:function(){},toJSON:function(){return a(this)},willRender:function(t){return!(15!==this.renderFlags||0===this.list.length||0!==this.cameraFilter&&this.cameraFilter&t.id)},getIndexList:function(){for(var t=this,e=this.parentContainer,i=[];e&&(i.unshift(e.getIndex(t)),t=e,e.parentContainer);)e=e.parentContainer;return i.unshift(this.displayList.getIndex(t)),i},addChildCallback:function(t){var e=t.displayList;e&&e!==this&&t.removeFromDisplayList(),t.displayList||(this.queueDepthSort(),t.displayList=this,t.emit(h.ADDED_TO_SCENE,t,this.scene),this.events.emit(d.ADDED_TO_SCENE,t,this.scene))},removeChildCallback:function(t){this.queueDepthSort(),t.displayList=null,t.emit(h.REMOVED_FROM_SCENE,t,this.scene),this.events.emit(d.REMOVED_FROM_SCENE,t,this.scene)},queueDepthSort:function(){this.sortChildrenFlag=!0},depthSort:function(){this.sortChildrenFlag&&(f(this.list,this.sortByDepth),this.sortChildrenFlag=!1)},sortByDepth:function(t,e){return t._depth-e._depth},getChildren:function(){return this.list},addToDisplayList:function(t){return void 0===t&&(t=this.scene.sys.displayList),this.displayList&&this.displayList!==t&&this.removeFromDisplayList(),t.exists(this)||(this.displayList=t,t.add(this,!0),t.queueDepthSort(),this.emit(h.ADDED_TO_SCENE,this,this.scene),t.events.emit(d.ADDED_TO_SCENE,this,this.scene)),this},removeFromDisplayList:function(){var t=this.displayList||this.scene.sys.displayList;return t.exists(this)&&(t.remove(this,!0),t.queueDepthSort(),this.displayList=null,this.emit(h.REMOVED_FROM_SCENE,this,this.scene),t.events.emit(d.REMOVED_FROM_SCENE,this,this.scene)),this},getDisplayList:function(){var t=null;return this.parentContainer?t=this.parentContainer.list:this.displayList&&(t=this.displayList.list),t},destroy:function(t){if(this.scene&&!this.ignoreDestroy){this.emit(h.DESTROY,this);for(var e=this.list;e.length;)e[0].destroy(t);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}}});t.exports=p},2956:t=>{t.exports=function(t,e,i){var n=e.list;if(0!==n.length){e.depthSort();var r=-1!==e.blendMode;r||t.setBlendMode(0);var s=e._alpha;e.mask&&e.mask.preRenderCanvas(t,null,i);for(var a=0;a{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(25305),r=i(93595),s=i(44603),a=i(23568);s.register(\"layer\",(function(t,e){void 0===t&&(t={});var i=a(t,\"children\",null),s=new r(this.scene,i);return void 0!==e&&(t.add=e),n(this.scene,s,t),s}))},20005:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(93595);i(39429).register(\"layer\",(function(t){return this.displayList.add(new n(this.scene,t))}))},33963:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(29747),r=n,s=n;r=i(15869),s=i(2956),t.exports={renderWebGL:r,renderCanvas:s}},15869:t=>{t.exports=function(t,e,i){var n=e.list,r=n.length;if(0!==r){e.depthSort(),t.pipelines.preBatch(e);var s=-1!==e.blendMode;s||t.setBlendMode(0);for(var a=e.alpha,o=0;o{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(96503),r=i(83419),s=i(31401),a=i(51767),o=i(70554),l=new r({Extends:n,Mixins:[s.Origin,s.ScrollFactor,s.Visible],initialize:function(t,e,i,r,s,o,l){n.call(this,t,e,i),this.color=new a(r,s,o),this.intensity=l,this.renderFlags=15,this.cameraFilter=0,this.setScrollFactor(1,1),this.setOrigin(),this.setDisplayOrigin(i)},displayWidth:{get:function(){return this.diameter},set:function(t){this.diameter=t}},displayHeight:{get:function(){return this.diameter},set:function(t){this.diameter=t}},width:{get:function(){return this.diameter},set:function(t){this.diameter=t}},height:{get:function(){return this.diameter},set:function(t){this.diameter=t}},willRender:function(t){return!(l.RENDER_MASK!==this.renderFlags||0!==this.cameraFilter&&this.cameraFilter&t.id)},setColor:function(t){var e=o.getFloatsFromUintRGB(t);return this.color.set(e[0],e[1],e[2]),this},setIntensity:function(t){return this.intensity=t,this},setRadius:function(t){return this.radius=t,this}});l.RENDER_MASK=15,t.exports=l},61356:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(81491),r=i(83419),s=i(20339),a=i(41432),o=i(80321),l=i(51767),h=i(19133),u=i(19186),c=i(70554),d=new r({initialize:function(){this.lights=[],this.ambientColor=new l(.1,.1,.1),this.active=!1,this.maxLights=-1,this.visibleLights=0},addPointLight:function(t,e,i,n,r,s){return this.systems.displayList.add(new o(this.scene,t,e,i,n,r,s))},enable:function(){return-1===this.maxLights&&(this.maxLights=this.systems.renderer.config.maxLights),this.active=!0,this},disable:function(){return this.active=!1,this},getLights:function(t){for(var e=this.lights,i=t.worldView,r=[],a=0;athis.maxLights&&(u(r,this.sortByDistance),r=r.slice(0,this.maxLights)),this.visibleLights=r.length,r},sortByDistance:function(t,e){return t.distance>=e.distance},setAmbientColor:function(t){var e=c.getFloatsFromUintRGB(t);return this.ambientColor.set(e[0],e[1],e[2]),this},getMaxVisibleLights:function(){return this.maxLights},getLightCount:function(){return this.lights.length},addLight:function(t,e,i,n,r){void 0===t&&(t=0),void 0===e&&(e=0),void 0===i&&(i=128),void 0===n&&(n=16777215),void 0===r&&(r=1);var s=c.getFloatsFromUintRGB(n),o=new a(t,e,i,s[0],s[1],s[2],r);return this.lights.push(o),o},removeLight:function(t){var e=this.lights.indexOf(t);return e>=0&&h(this.lights,e),this},shutdown:function(){this.lights.length=0},destroy:function(){this.shutdown()}});t.exports=d},88992:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(83419),r=i(61356),s=i(37277),a=i(44594),o=new n({Extends:r,initialize:function(t){this.scene=t,this.systems=t.sys,t.sys.settings.isBooted||t.sys.events.once(a.BOOT,this.boot,this),r.call(this)},boot:function(){var t=this.systems.events;t.on(a.SHUTDOWN,this.shutdown,this),t.on(a.DESTROY,this.destroy,this)},destroy:function(){this.shutdown(),this.scene=void 0,this.systems=void 0}});s.register(\"LightsPlugin\",o,\"lights\"),t.exports=o},4703:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(83419),r=i(31401),s=i(39506),a=i(83997),o=i(95643),l=i(34684),h=i(92515),u=i(91296),c=i(37867),d=i(29807),f=i(43396),p=i(19186),m=i(25836),g=i(39318),v=new n({Extends:o,Mixins:[r.AlphaSingle,r.BlendMode,r.Depth,r.Mask,r.Pipeline,r.PostPipeline,r.ScrollFactor,r.Size,r.Texture,r.Transform,r.Visible,d],initialize:function(t,e,i,n,r,s,a,l,h,u,d,f){void 0===e&&(e=0),void 0===i&&(i=0),void 0===n&&(n=\"__WHITE\"),o.call(this,t,\"Mesh\"),this.faces=[],this.vertices=[],this.tintFill=!1,this.debugCallback=null,this.debugGraphic=null,this.hideCCW=!0,this.modelPosition=new m,this.modelScale=new m(1,1,1),this.modelRotation=new m,this.dirtyCache=[0,0,0,0,0,0,0,0,0,0,0,0],this.transformMatrix=new c,this.viewPosition=new m,this.viewMatrix=new c,this.projectionMatrix=new c,this.totalRendered=0,this.totalFrame=0,this.ignoreDirtyCache=!1,this.fov,this.displayOriginX=0,this.displayOriginY=0;var p=t.sys.renderer;this.setPosition(e,i),this.setTexture(n,r),this.setSize(p.width,p.height),this.initPipeline(),this.initPostPipeline(),this.setPerspective(p.width,p.height),s&&this.addVertices(s,a,l,h,u,d,f)},addedToScene:function(){this.scene.sys.updateList.add(this)},removedFromScene:function(){this.scene.sys.updateList.remove(this)},panX:function(t){return this.viewPosition.addScale(m.LEFT,t),this.dirtyCache[10]=1,this},panY:function(t){return this.viewPosition.y+=m.DOWN.y*t,this.dirtyCache[10]=1,this},panZ:function(t){return this.viewPosition.z+=t,this.dirtyCache[10]=1,this},setPerspective:function(t,e,i,n,r){return void 0===i&&(i=45),void 0===n&&(n=.01),void 0===r&&(r=1e3),this.fov=i,this.projectionMatrix.perspective(s(i),t/e,n,r),this.dirtyCache[10]=1,this.dirtyCache[11]=0,this},setOrtho:function(t,e,i,n){return void 0===t&&(t=this.scene.sys.renderer.getAspectRatio()),void 0===e&&(e=1),void 0===i&&(i=-1e3),void 0===n&&(n=1e3),this.fov=0,this.projectionMatrix.ortho(-t,t,-e,e,i,n),this.dirtyCache[10]=1,this.dirtyCache[11]=1,this},clear:function(){return this.faces.forEach((function(t){t.destroy()})),this.faces=[],this.vertices=[],this},addVerticesFromObj:function(t,e,i,n,r,s,a,o,h){var u,c=this.scene.sys.cache.obj.get(t);return c&&(u=l(c,this,e,i,n,r,s,a,o,h)),u&&0!==u.verts.length||console.warn(\"Mesh.addVerticesFromObj data empty:\",t),this},sortByDepth:function(t,e){return t.depth-e.depth},depthSort:function(){return p(this.faces,this.sortByDepth),this},addVertex:function(t,e,i,n,r,s,a){var o=new g(t,e,i,n,r,s,a);return this.vertices.push(o),o},addFace:function(t,e,i){var n=new a(t,e,i);return this.faces.push(n),this.dirtyCache[9]=-1,n},addVertices:function(t,e,i,n,r,s,a){var o=h(t,e,i,n,r,s,a);return o?(this.faces=this.faces.concat(o.faces),this.vertices=this.vertices.concat(o.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(t){return this.faces[t]},hasFaceAt:function(t,e,i){void 0===i&&(i=this.scene.sys.cameras.main);for(var n=u(this,i).calc,r=this.faces,s=0;s{t.exports=function(){}},20527:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(25305),r=i(44603),s=i(23568),a=i(35154),o=i(4703);r.register(\"mesh\",(function(t,e){void 0===t&&(t={});var i=s(t,\"key\",null),r=s(t,\"frame\",null),l=a(t,\"vertices\",[]),h=a(t,\"uvs\",[]),u=a(t,\"indicies\",[]),c=a(t,\"containsZ\",!1),d=a(t,\"normals\",[]),f=a(t,\"colors\",16777215),p=a(t,\"alphas\",1),m=new o(this.scene,0,0,i,r,l,h,u,c,d,f,p);return void 0!==e&&(t.add=e),n(this.scene,m,t),m}))},9225:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(4703);i(39429).register(\"mesh\",(function(t,e,i,r,s,a,o,l,h,u,c){return this.displayList.add(new n(this.scene,t,e,i,r,s,a,o,l,h,u,c))}))},29807:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(29747),r=n,s=n;r=i(48833),s=i(36488),t.exports={renderWebGL:r,renderCanvas:s}},48833:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(91296);t.exports=function(t,e,i,r){var s=e.faces,a=s.length;if(0!==a){i.addToRenderList(e);var o=t.pipelines.set(e.pipeline,e),l=n(e,i,r).calc;t.pipelines.preBatch(e);for(var h=o.setGameObject(e),u=o.vertexViewF32,c=o.vertexViewU32,d=o.vertexCount*o.currentShader.vertexComponentCount-1,f=e.tintFill,p=[],m=e.debugCallback,g=l.a,v=l.b,y=l.c,b=l.d,x=l.e,w=l.f,T=e.viewPosition.z,S=e.hideCCW,E=i.roundPixels,C=i.alpha*e.alpha,A=0,_=0;_{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(83419),r=i(31401),s=i(95643),a=i(78023),o=i(39318),l=new n({Extends:s,Mixins:[r.AlphaSingle,r.BlendMode,r.Depth,r.GetBounds,r.Mask,r.Origin,r.Pipeline,r.PostPipeline,r.ScrollFactor,r.Texture,r.Transform,r.Visible,a],initialize:function(t,e,i,n,r,a,l,h,u,c,d){s.call(this,t,\"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 f=t.textures.getFrame(n,r);this.is3Slice=!c&&!d,f&&f.scale9&&(this.is3Slice=f.is3Slice);for(var p=this.is3Slice?18:54,m=0;m{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(25305),r=i(44603),s=i(23568),a=i(35154),o=i(28103);r.register(\"nineslice\",(function(t,e){void 0===t&&(t={});var i=s(t,\"key\",null),r=s(t,\"frame\",null),l=a(t,\"width\",256),h=a(t,\"height\",256),u=a(t,\"leftWidth\",10),c=a(t,\"rightWidth\",10),d=a(t,\"topHeight\",0),f=a(t,\"bottomHeight\",0),p=new o(this.scene,0,0,i,r,l,h,u,c,d,f);return void 0!==e&&(t.add=e),n(this.scene,p,t),p}))},47521:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(28103);i(39429).register(\"nineslice\",(function(t,e,i,r,s,a,o,l,h,u){return this.displayList.add(new n(this.scene,t,e,i,r,s,a,o,l,h,u))}))},78023:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(29747),r=n,s=n;r=i(52230),t.exports={renderWebGL:r,renderCanvas:s}},52230:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(91296),r=i(70554);t.exports=function(t,e,i,s){var a=e.vertices,o=a.length;if(0!==o){i.addToRenderList(e);var l=t.pipelines.set(e.pipeline,e),h=n(e,i,s,!1).calc;t.pipelines.preBatch(e);var u=l.setGameObject(e),c=l.vertexViewF32,d=l.vertexViewU32,f=l.vertexCount*l.currentShader.vertexComponentCount-1,p=i.roundPixels,m=e.tintFill,g=i.alpha*e.alpha,v=r.getTintAppendFloatAlpha(e.tint,g),y=l.vertexAvailable(),b=-1;y{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(83419),r=i(44777),s=i(37589),a=i(6113),o=i(91389),l=i(90664),h=new n({Extends:r,initialize:function(t){r.call(this,t,null,!1),this.active=!1,this.easeName=\"Linear\",this.r=[],this.g=[],this.b=[]},getMethod:function(){return null===this.propertyValue?0:9},setMethods:function(){var t=this.propertyValue,e=t,i=this.defaultEmit,n=this.defaultUpdate;if(9===this.method){this.start=t[0],this.ease=a(\"Linear\"),this.interpolation=o(\"linear\"),i=this.easedValueEmit,n=this.easeValueUpdate,e=t[0],this.active=!0;for(var r=0;r{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(30976),r=i(45319),s=i(83419),a=i(99472),o=i(6113),l=i(95540),h=i(91389),u=i(77720),c=i(15994),d=new s({initialize:function(t,e,i){void 0===i&&(i=!1),this.propertyKey=t,this.propertyValue=e,this.defaultValue=e,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=i,this.onEmit=this.defaultEmit,this.onUpdate=this.defaultUpdate,this.active=!0,this.method=0,this._onEmit,this._onUpdate},loadConfig:function(t,e){void 0===t&&(t={}),e&&(this.propertyKey=e),this.propertyValue=l(t,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(t){var e;switch(this.method){case 1:case 3:case 8:e=t;break;case 2:this.propertyValue.indexOf(t)>=0&&(e=t);break;case 4:var i=(this.end-this.start)/this.steps;e=u(t,i),this.counter=e;break;case 5:case 6:case 7:e=r(t,this.start,this.end);break;case 9:e=this.start[0]}return this.current=e,this},getMethod:function(){var t=this.propertyValue;if(null===t)return 0;var e=typeof t;if(\"number\"===e)return 1;if(Array.isArray(t))return 2;if(\"function\"===e)return 3;if(\"object\"===e){if(this.hasBoth(t,\"start\",\"end\"))return this.has(t,\"steps\")?4:5;if(this.hasBoth(t,\"min\",\"max\"))return 6;if(this.has(t,\"random\"))return 7;if(this.hasEither(t,\"onEmit\",\"onUpdate\"))return 8;if(this.hasEither(t,\"values\",\"interpolation\"))return 9}return 0},setMethods:function(){var t=this.propertyValue,e=t,i=this.defaultEmit,n=this.defaultUpdate;switch(this.method){case 1:i=this.staticValueEmit;break;case 2:i=this.randomStaticValueEmit,e=t[0];break;case 3:this._onEmit=t,i=this.proxyEmit,e=this.defaultValue;break;case 4:this.start=t.start,this.end=t.end,this.steps=t.steps,this.counter=this.start,this.yoyo=!!this.has(t,\"yoyo\")&&t.yoyo,this.direction=0,i=this.steppedEmit,e=this.start;break;case 5:this.start=t.start,this.end=t.end;var r=this.has(t,\"ease\")?t.ease:\"Linear\";this.ease=o(r,t.easeParams),i=this.has(t,\"random\")&&t.random?this.randomRangedValueEmit:this.easedValueEmit,n=this.easeValueUpdate,e=this.start;break;case 6:this.start=t.min,this.end=t.max,i=this.has(t,\"int\")&&t.int?this.randomRangedIntEmit:this.randomRangedValueEmit,e=this.start;break;case 7:var s=t.random;Array.isArray(s)&&(this.start=s[0],this.end=s[1]),i=this.randomRangedIntEmit,e=this.start;break;case 8:this._onEmit=this.has(t,\"onEmit\")?t.onEmit:this.defaultEmit,this._onUpdate=this.has(t,\"onUpdate\")?t.onUpdate:this.defaultUpdate,i=this.proxyEmit,n=this.proxyUpdate,e=this.defaultValue;break;case 9:this.start=t.values;var a=this.has(t,\"ease\")?t.ease:\"Linear\";this.ease=o(a,t.easeParams),this.interpolation=h(t.interpolation),i=this.easedValueEmit,n=this.easeValueUpdate,e=this.start[0]}return this.onEmit=i,this.onUpdate=n,this.current=e,this},has:function(t,e){return t.hasOwnProperty(e)},hasBoth:function(t,e,i){return t.hasOwnProperty(e)&&t.hasOwnProperty(i)},hasEither:function(t,e,i){return t.hasOwnProperty(e)||t.hasOwnProperty(i)},defaultEmit:function(){return this.defaultValue},defaultUpdate:function(t,e,i,n){return n},proxyEmit:function(t,e,i){var n=this._onEmit(t,e,i);return this.current=n,n},proxyUpdate:function(t,e,i,n){var r=this._onUpdate(t,e,i,n);return this.current=r,r},staticValueEmit:function(){return this.current},staticValueUpdate:function(){return this.current},randomStaticValueEmit:function(){var t=Math.floor(Math.random()*this.propertyValue.length);return this.current=this.propertyValue[t],this.current},randomRangedValueEmit:function(t,e){var i=a(this.start,this.end);return t&&t.data[e]&&(t.data[e].min=i,t.data[e].max=this.end),this.current=i,i},randomRangedIntEmit:function(t,e){var i=n(this.start,this.end);return t&&t.data[e]&&(t.data[e].min=i,t.data[e].max=this.end),this.current=i,i},steppedEmit:function(){var t,e=this.counter,i=e,n=(this.end-this.start)/this.steps;return this.yoyo?(0===this.direction?(i+=n)>=this.end&&(t=i-this.end,i=this.end-t,this.direction=1):(i-=n)<=this.start&&(t=this.start-i,i=this.start+t,this.direction=0),this.counter=i):this.counter=c(i+n,this.start,this.end),this.current=e,e},easedValueEmit:function(t,e){if(t&&t.data[e]){var i=t.data[e];i.min=this.start,i.max=this.end}return this.current=this.start,this.start},easeValueUpdate:function(t,e,i){var n,r=t.data[e],s=this.ease(i);return n=this.interpolation?this.interpolation(this.start,s):(r.max-r.min)*s+r.min,this.current=n,n},destroy:function(){this.propertyValue=null,this.defaultValue=null,this.ease=null,this.interpolation=null,this._onEmit=null,this._onUpdate=null}});t.exports=d},24502:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(83419),r=i(95540),s=i(20286),a=new n({Extends:s,initialize:function(t,e,i,n,a){if(\"object\"==typeof t){var o=t;t=r(o,\"x\",0),e=r(o,\"y\",0),i=r(o,\"power\",0),n=r(o,\"epsilon\",100),a=r(o,\"gravity\",50)}else void 0===t&&(t=0),void 0===e&&(e=0),void 0===i&&(i=0),void 0===n&&(n=100),void 0===a&&(a=50);s.call(this,t,e,!0),this._gravity=a,this._power=i*a,this._epsilon=n*n},update:function(t,e){var i=this.x-t.x,n=this.y-t.y,r=i*i+n*n;if(0!==r){var s=Math.sqrt(r);r{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(9674),r=i(45319),s=i(83419),a=i(39506),o=i(87841),l=i(11520),h=i(26099),u=new s({initialize:function(t){this.emitter=t,this.texture=null,this.frame=null,this.x=0,this.y=0,this.worldPosition=new h,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=t.scene,this.anims=null,this.emitter.anims.length>0&&(this.anims=new n(this)),this.bounds=new o},emit:function(t,e,i,n,r,s){return this.emitter.emit(t,e,i,n,r,s)},isAlive:function(){return this.lifeCurrent>0},kill:function(){this.lifeCurrent=0},setPosition:function(t,e){void 0===t&&(t=0),void 0===e&&(e=0),this.x=t,this.y=e},fire:function(t,e){var i=this.emitter,n=i.ops,r=i.getAnim();if(r?this.anims.play(r):(this.frame=i.getFrame(),this.texture=this.frame.texture),!this.frame)throw new Error(\"Particle has no texture frame\");if(i.getEmitZone(this),void 0===t?this.x+=n.x.onEmit(this,\"x\"):n.x.steps>0?this.x+=t+n.x.onEmit(this,\"x\"):this.x+=t,void 0===e?this.y+=n.y.onEmit(this,\"y\"):n.y.steps>0?this.y+=e+n.y.onEmit(this,\"y\"):this.y+=e,this.life=n.lifespan.onEmit(this,\"lifespan\"),this.lifeCurrent=this.life,this.lifeT=0,this.delayCurrent=n.delay.onEmit(this,\"delay\"),this.holdCurrent=n.hold.onEmit(this,\"hold\"),this.scaleX=n.scaleX.onEmit(this,\"scaleX\"),this.scaleY=n.scaleY.active?n.scaleY.onEmit(this,\"scaleY\"):this.scaleX,this.angle=n.rotate.onEmit(this,\"rotate\"),this.rotation=a(this.angle),i.worldMatrix.transformPoint(this.x,this.y,this.worldPosition),0===this.delayCurrent&&i.getDeathZone(this))return this.lifeCurrent=0,!1;var s=n.speedX.onEmit(this,\"speedX\"),o=n.speedY.active?n.speedY.onEmit(this,\"speedY\"):s;if(i.radial){var l=a(n.angle.onEmit(this,\"angle\"));this.velocityX=Math.cos(l)*Math.abs(s),this.velocityY=Math.sin(l)*Math.abs(o)}else if(i.moveTo){var h=n.moveToX.onEmit(this,\"moveToX\"),u=n.moveToY.onEmit(this,\"moveToY\"),c=this.life/1e3;this.velocityX=(h-this.x)/c,this.velocityY=(u-this.y)/c}else this.velocityX=s,this.velocityY=o;return i.acceleration&&(this.accelerationX=n.accelerationX.onEmit(this,\"accelerationX\"),this.accelerationY=n.accelerationY.onEmit(this,\"accelerationY\")),this.maxVelocityX=n.maxVelocityX.onEmit(this,\"maxVelocityX\"),this.maxVelocityY=n.maxVelocityY.onEmit(this,\"maxVelocityY\"),this.bounce=n.bounce.onEmit(this,\"bounce\"),this.alpha=n.alpha.onEmit(this,\"alpha\"),n.color.active?this.tint=n.color.onEmit(this,\"tint\"):this.tint=n.tint.onEmit(this,\"tint\"),!0},update:function(t,e,i){if(this.lifeCurrent<=0)return!(this.holdCurrent>0)||(this.holdCurrent-=t,this.holdCurrent<=0);if(this.delayCurrent>0)return this.delayCurrent-=t,!1;this.anims&&this.anims.update(0,t);var n=this.emitter,s=n.ops,o=1-this.lifeCurrent/this.life;if(this.lifeT=o,this.x=s.x.onUpdate(this,\"x\",o,this.x),this.y=s.y.onUpdate(this,\"y\",o,this.y),n.moveTo){var l=s.moveToX.onUpdate(this,\"moveToX\",o,n.moveToX),h=s.moveToY.onUpdate(this,\"moveToY\",o,n.moveToY),u=this.lifeCurrent/1e3;this.velocityX=(l-this.x)/u,this.velocityY=(h-this.y)/u}return this.computeVelocity(n,t,e,i,o),this.scaleX=s.scaleX.onUpdate(this,\"scaleX\",o,this.scaleX),s.scaleY.active?this.scaleY=s.scaleY.onUpdate(this,\"scaleY\",o,this.scaleY):this.scaleY=this.scaleX,this.angle=s.rotate.onUpdate(this,\"rotate\",o,this.angle),this.rotation=a(this.angle),n.getDeathZone(this)?(this.lifeCurrent=0,!0):(this.alpha=r(s.alpha.onUpdate(this,\"alpha\",o,this.alpha),0,1),s.color.active?this.tint=s.color.onUpdate(this,\"color\",o,this.tint):this.tint=s.tint.onUpdate(this,\"tint\",o,this.tint),this.lifeCurrent-=t,this.lifeCurrent<=0&&this.holdCurrent<=0)},computeVelocity:function(t,e,i,n,s){var a=t.ops,o=this.velocityX,l=this.velocityY,h=a.accelerationX.onUpdate(this,\"accelerationX\",s,this.accelerationX),u=a.accelerationY.onUpdate(this,\"accelerationY\",s,this.accelerationY),c=a.maxVelocityX.onUpdate(this,\"maxVelocityX\",s,this.maxVelocityX),d=a.maxVelocityY.onUpdate(this,\"maxVelocityY\",s,this.maxVelocityY);this.bounce=a.bounce.onUpdate(this,\"bounce\",s,this.bounce),o+=t.gravityX*i+h*i,l+=t.gravityY*i+u*i,o=r(o,-c,c),l=r(l,-d,d),this.velocityX=o,this.velocityY=l,this.x+=o*i,this.y+=l*i,t.worldMatrix.transformPoint(this.x,this.y,this.worldPosition);for(var f=0;f{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(83419),r=i(20286),s=i(87841),a=new n({Extends:r,initialize:function(t,e,i,n,a,o,l,h){void 0===a&&(a=!0),void 0===o&&(o=!0),void 0===l&&(l=!0),void 0===h&&(h=!0),r.call(this,t,e,!0),this.bounds=new s(t,e,i,n),this.collideLeft=a,this.collideRight=o,this.collideTop=l,this.collideBottom=h},update:function(t){var e=this.bounds,i=-t.bounce,n=t.worldPosition;n.xe.right&&this.collideRight&&(t.x-=n.x-e.right,t.velocityX*=i),n.ye.bottom&&this.collideBottom&&(t.y-=n.y-e.bottom,t.velocityY*=i)}});t.exports=a},31600:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(83419),r=i(31401),s=i(53774),a=i(43459),o=i(26388),l=i(19909),h=i(76472),u=i(44777),c=i(20696),d=i(95643),f=i(95540),p=i(26546),m=i(24502),g=i(1985),v=i(97022),y=i(86091),b=i(73162),x=i(20074),w=i(269),T=i(56480),S=i(69601),E=i(68875),C=i(87841),A=i(59996),_=i(72905),k=i(90668),P=i(19186),M=i(61340),D=i(26099),O=i(15994),R=[\"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\"],I=[\"accelerationX\",\"accelerationY\",\"alpha\",\"angle\",\"bounce\",\"color\",\"delay\",\"hold\",\"lifespan\",\"maxVelocityX\",\"maxVelocityY\",\"moveToX\",\"moveToY\",\"quantity\",\"rotate\",\"scaleX\",\"scaleY\",\"speedX\",\"speedY\",\"tint\",\"x\",\"y\"],F=new n({Extends:d,Mixins:[r.AlphaSingle,r.BlendMode,r.Depth,r.Mask,r.Pipeline,r.PostPipeline,r.ScrollFactor,r.Texture,r.Transform,r.Visible,k],initialize:function(t,e,i,n,r){d.call(this,t,\"ParticleEmitter\"),this.particleClass=T,this.config=null,this.ops={accelerationX:new u(\"accelerationX\",0),accelerationY:new u(\"accelerationY\",0),alpha:new u(\"alpha\",1),angle:new u(\"angle\",{min:0,max:360},!0),bounce:new u(\"bounce\",0),color:new h(\"color\"),delay:new u(\"delay\",0,!0),hold:new u(\"hold\",0,!0),lifespan:new u(\"lifespan\",1e3,!0),maxVelocityX:new u(\"maxVelocityX\",1e4),maxVelocityY:new u(\"maxVelocityY\",1e4),moveToX:new u(\"moveToX\",0),moveToY:new u(\"moveToY\",0),quantity:new u(\"quantity\",1,!0),rotate:new u(\"rotate\",0),scaleX:new u(\"scaleX\",1),scaleY:new u(\"scaleY\",1),speedX:new u(\"speedX\",0,!0),speedY:new u(\"speedY\",0,!0),tint:new u(\"tint\",16777215),x:new u(\"x\",0),y:new u(\"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 D,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 M,this.sortProperty=\"\",this.sortOrderAsc=!0,this.sortCallback=this.depthSortCallback,this.processors=new b(this),this.tintFill=!1,this.initPipeline(),this.initPostPipeline(),this.setPosition(e,i),this.setTexture(n),r&&this.setConfig(r)},addedToScene:function(){this.scene.sys.updateList.add(this)},removedFromScene:function(){this.scene.sys.updateList.remove(this)},setConfig:function(t){if(!t)return this;this.config=t;var e=0,i=\"\",n=this.ops;for(e=0;e=this.animQuantity&&(this.animCounter=0,this.currentAnim=O(this.currentAnim+1,0,e)),i},setAnim:function(t,e,i){void 0===e&&(e=!0),void 0===i&&(i=1),this.randomAnim=e,this.animQuantity=i,this.currentAnim=0;var n=typeof t;if(this.anims.length=0,Array.isArray(t))this.anims=this.anims.concat(t);else if(\"string\"===n)this.anims.push(t);else if(\"object\"===n){var r=t;(t=f(r,\"anims\",null))&&(this.anims=this.anims.concat(t));var s=f(r,\"cycle\",!1);this.randomAnim=!s,this.animQuantity=f(r,\"quantity\",i)}return 1===this.anims.length&&(this.animQuantity=1,this.randomAnim=!1),this},setRadial:function(t){return void 0===t&&(t=!0),this.radial=t,this},addParticleBounds:function(t,e,i,n,r,s,a,o){if(\"object\"==typeof t){var l=t;t=l.x,e=l.y,i=v(l,\"w\")?l.w:l.width,n=v(l,\"h\")?l.h:l.height}return this.addParticleProcessor(new S(t,e,i,n,r,s,a,o))},setParticleSpeed:function(t,e){return void 0===e&&(e=t),this.ops.speedX.onChange(t),t===e?this.ops.speedY.active=!1:this.ops.speedY.onChange(e),this.radial=!0,this},setParticleScale:function(t,e){return void 0===t&&(t=1),void 0===e&&(e=t),this.ops.scaleX.onChange(t),this.ops.scaleY.onChange(e),this},setParticleGravity:function(t,e){return this.gravityX=t,this.gravityY=e,this},setParticleAlpha:function(t){return this.ops.alpha.onChange(t),this},setParticleTint:function(t){return this.ops.tint.onChange(t),this},setEmitterAngle:function(t){return this.ops.angle.onChange(t),this},setParticleLifespan:function(t){return this.ops.lifespan.onChange(t),this},setQuantity:function(t){return this.quantity=t,this},setFrequency:function(t,e){return this.frequency=t,this.flowCounter=t>0?t:0,e&&(this.quantity=e),this},addDeathZone:function(t){var e;Array.isArray(t)||(t=[t]);for(var i=[],n=0;n-1&&(this.zoneTotal++,this.zoneTotal===n.total&&(this.zoneTotal=0,this.zoneIndex++,this.zoneIndex===i&&(this.zoneIndex=0)))}},getDeathZone:function(t){for(var e=this.deathZones,i=0;i=0&&(this.zoneIndex=e),this},addParticleProcessor:function(t){return this.processors.exists(t)||(t.emitter&&t.emitter.removeParticleProcessor(t),this.processors.add(t),t.emitter=this),t},removeParticleProcessor:function(t){return this.processors.exists(t)&&(this.processors.remove(t,!0),t.emitter=null),t},getProcessors:function(){return this.processors.getAll(\"active\",!0)},createGravityWell:function(t){return this.addParticleProcessor(new m(t))},reserve:function(t){var e=this.dead;if(this.maxParticles>0){var i=this.getParticleCount();i+t>this.maxParticles&&(t=this.maxParticles-(i+t))}for(var n=0;n0&&this.getParticleCount()>=this.maxParticles||this.maxAliveParticles>0&&this.getAliveParticleCount()>=this.maxAliveParticles},onParticleEmit:function(t,e){return void 0===t?(this.emitCallback=null,this.emitCallbackScope=null):\"function\"==typeof t&&(this.emitCallback=t,e&&(this.emitCallbackScope=e)),this},onParticleDeath:function(t,e){return void 0===t?(this.deathCallback=null,this.deathCallbackScope=null):\"function\"==typeof t&&(this.deathCallback=t,e&&(this.deathCallbackScope=e)),this},killAll:function(){for(var t=this.dead,e=this.alive;e.length>0;)t.push(e.pop());return this},forEachAlive:function(t,e){for(var i=this.alive,n=i.length,r=0;r0&&this.fastForward(t),this.emitting=!0,this.resetCounters(this.frequency,!0),void 0!==e&&(this.duration=Math.abs(e)),this.emit(c.START,this)),this},stop:function(t){return void 0===t&&(t=!1),this.emitting&&(this.emitting=!1,t&&this.killAll(),this.emit(c.STOP,this)),this},pause:function(){return this.active=!1,this},resume:function(){return this.active=!0,this},setSortProperty:function(t,e){return void 0===t&&(t=\"\"),void 0===e&&(e=this.true),this.sortProperty=t,this.sortOrderAsc=e,this.sortCallback=this.depthSortCallback,this},setSortCallback:function(t){return t=\"\"!==this.sortProperty?this.depthSortCallback:null,this.sortCallback=t,this},depthSort:function(){return P(this.alive,this.sortCallback.bind(this)),this},depthSortCallback:function(t,e){var i=this.sortProperty;return this.sortOrderAsc?t[i]-e[i]:e[i]-t[i]},flow:function(t,e,i){return void 0===e&&(e=1),this.emitting=!1,this.frequency=t,this.quantity=e,void 0!==i&&(this.stopAfter=i),this.start()},explode:function(t,e,i){this.frequency=-1,this.resetCounters(-1,!0);var n=this.emitParticle(t,e,i);return this.emit(c.EXPLODE,this,n),n},emitParticleAt:function(t,e,i){return this.emitParticle(i,t,e)},emitParticle:function(t,e,i){if(!this.atLimit()){void 0===t&&(t=this.ops.quantity.onEmit());for(var n=this.dead,r=this.stopAfter,s=this.follow?this.follow.x+this.followOffset.x:e,a=this.follow?this.follow.y+this.followOffset.y:i,o=0;o0&&(this.stopCounter++,this.stopCounter>=r))break;if(this.atLimit())break}return l}},fastForward:function(t,e){void 0===e&&(e=1e3/60);var i=0;for(this.skipping=!0;i0){var u=this.deathCallback,d=this.deathCallbackScope;for(a=l-1;a>=0;a--){var f=o[a];r.splice(f.index,1),s.push(f.particle),u&&u.call(d,f.particle),f.particle.setPosition()}}if(this.emitting||this.skipping){if(0===this.frequency)this.emitParticle();else if(this.frequency>0)for(this.flowCounter-=e;this.flowCounter<=0;)this.emitParticle(),this.flowCounter+=this.frequency;this.skipping||(this.duration>0&&(this.elapsed+=e,this.elapsed>=this.duration&&this.stop()),this.stopAfter>0&&this.stopCounter>=this.stopAfter&&this.stop())}else 1===this.completeFlag&&0===r.length&&(this.completeFlag=0,this.emit(c.COMPLETE,this))},overlap:function(t){for(var e=this.getWorldTransformMatrix(),i=this.alive,n=i.length,r=[],s=0;s0){var u=0;for(this.skipping=!0;u0&&y(n,t,t),n},createEmitter:function(){throw new Error(\"createEmitter removed. See ParticleEmitter docs for info\")},particleX:{get:function(){return this.ops.x.current},set:function(t){this.ops.x.onChange(t)}},particleY:{get:function(){return this.ops.y.current},set:function(t){this.ops.y.onChange(t)}},accelerationX:{get:function(){return this.ops.accelerationX.current},set:function(t){this.ops.accelerationX.onChange(t)}},accelerationY:{get:function(){return this.ops.accelerationY.current},set:function(t){this.ops.accelerationY.onChange(t)}},maxVelocityX:{get:function(){return this.ops.maxVelocityX.current},set:function(t){this.ops.maxVelocityX.onChange(t)}},maxVelocityY:{get:function(){return this.ops.maxVelocityY.current},set:function(t){this.ops.maxVelocityY.onChange(t)}},speed:{get:function(){return this.ops.speedX.current},set:function(t){this.ops.speedX.onChange(t),this.ops.speedY.onChange(t)}},speedX:{get:function(){return this.ops.speedX.current},set:function(t){this.ops.speedX.onChange(t)}},speedY:{get:function(){return this.ops.speedY.current},set:function(t){this.ops.speedY.onChange(t)}},moveToX:{get:function(){return this.ops.moveToX.current},set:function(t){this.ops.moveToX.onChange(t)}},moveToY:{get:function(){return this.ops.moveToY.current},set:function(t){this.ops.moveToY.onChange(t)}},bounce:{get:function(){return this.ops.bounce.current},set:function(t){this.ops.bounce.onChange(t)}},particleScaleX:{get:function(){return this.ops.scaleX.current},set:function(t){this.ops.scaleX.onChange(t)}},particleScaleY:{get:function(){return this.ops.scaleY.current},set:function(t){this.ops.scaleY.onChange(t)}},particleColor:{get:function(){return this.ops.color.current},set:function(t){this.ops.color.onChange(t)}},colorEase:{get:function(){return this.ops.color.easeName},set:function(t){this.ops.color.setEase(t)}},particleTint:{get:function(){return this.ops.tint.current},set:function(t){this.ops.tint.onChange(t)}},particleAlpha:{get:function(){return this.ops.alpha.current},set:function(t){this.ops.alpha.onChange(t)}},lifespan:{get:function(){return this.ops.lifespan.current},set:function(t){this.ops.lifespan.onChange(t)}},particleAngle:{get:function(){return this.ops.angle.current},set:function(t){this.ops.angle.onChange(t)}},particleRotate:{get:function(){return this.ops.rotate.current},set:function(t){this.ops.rotate.onChange(t)}},quantity:{get:function(){return this.ops.quantity.current},set:function(t){this.ops.quantity.onChange(t)}},delay:{get:function(){return this.ops.delay.current},set:function(t){this.ops.delay.onChange(t)}},hold:{get:function(){return this.ops.hold.current},set:function(t){this.ops.hold.onChange(t)}},flowCounter:{get:function(){return this.counters[0]},set:function(t){this.counters[0]=t}},frameCounter:{get:function(){return this.counters[1]},set:function(t){this.counters[1]=t}},animCounter:{get:function(){return this.counters[2]},set:function(t){this.counters[2]=t}},elapsed:{get:function(){return this.counters[3]},set:function(t){this.counters[3]=t}},stopCounter:{get:function(){return this.counters[4]},set:function(t){this.counters[4]=t}},completeFlag:{get:function(){return this.counters[5]},set:function(t){this.counters[5]=t}},zoneIndex:{get:function(){return this.counters[6]},set:function(t){this.counters[6]=t}},zoneTotal:{get:function(){return this.counters[7]},set:function(t){this.counters[7]=t}},currentFrame:{get:function(){return this.counters[8]},set:function(t){this.counters[8]=t}},currentAnim:{get:function(){return this.counters[9]},set:function(t){this.counters[9]=t}},preDestroy:function(){var t;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 e=this.ops;for(t=0;t{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(59996),r=i(61340),s=new r,a=new r,o=new r,l=new r;t.exports=function(t,e,i,r){var h=s,u=a,c=o,d=l;r?(d.loadIdentity(),d.multiply(r),d.translate(e.x,e.y),d.rotate(e.rotation),d.scale(e.scaleX,e.scaleY)):d.applyITRS(e.x,e.y,e.rotation,e.scaleX,e.scaleY);var f=t.currentContext,p=i.roundPixels,m=i.alpha,g=e.alpha,v=e.alive,y=v.length,b=e.viewBounds;if(e.visible&&0!==y&&(!b||n(b,i.worldView))){e.sortCallback&&e.depthSort(),i.addToRenderList(e);var x=e.scrollFactorX,w=e.scrollFactorY;f.save(),f.globalCompositeOperation=t.blendModes[e.blendMode];for(var T=0;T0&&A.height>0){var _=-C.halfWidth,k=-C.halfHeight;f.globalAlpha=E,f.save(),u.setToContext(f),p&&(_=Math.round(_),k=Math.round(k)),f.imageSmoothingEnabled=!C.source.scaleMode,f.drawImage(C.source.image,A.x,A.y,A.width,A.height,_,k,A.width,A.height),f.restore()}}}f.restore()}}},92730:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(25305),r=i(44603),s=i(23568),a=i(95540),o=i(31600);r.register(\"particles\",(function(t,e){void 0===t&&(t={});var i=s(t,\"key\",null),r=a(t,\"config\",null),l=new o(this.scene,0,0,i);return void 0!==e&&(t.add=e),n(this.scene,l,t),r&&l.setConfig(r),l}))},676:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(39429),r=i(31600);n.register(\"particles\",(function(t,e,i,n){return void 0!==t&&\"string\"==typeof t&&console.warn(\"ParticleEmitterManager was removed in Phaser 3.60. See documentation for details\"),this.displayList.add(new r(this.scene,t,e,i,n))}))},90668:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(29747),r=n,s=n;r=i(21188),s=i(9871),t.exports={renderWebGL:r,renderCanvas:s}},21188:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(59996),r=i(61340),s=i(70554),a=new r,o=new r,l=new r,h=new r;t.exports=function(t,e,i,r){var u=t.pipelines.set(e.pipeline),c=a,d=o,f=l,p=h;r?(p.loadIdentity(),p.multiply(r),p.translate(e.x,e.y),p.rotate(e.rotation),p.scale(e.scaleX,e.scaleY)):p.applyITRS(e.x,e.y,e.rotation,e.scaleX,e.scaleY);var m=s.getTintAppendFloatAlpha,g=i.alpha,v=e.alpha;t.pipelines.preBatch(e);var y=e.alive,b=y.length,x=e.viewBounds;if(0!==b&&(!x||n(x,i.worldView))){e.sortCallback&&e.depthSort(),i.addToRenderList(e),c.copyFrom(i.matrix),c.multiplyWithOffset(p,-i.scrollX*e.scrollFactorX,-i.scrollY*e.scrollFactorY),t.setBlendMode(e.blendMode),e.mask&&(e.mask.preRenderWebGL(t,e,i),t.pipelines.set(e.pipeline));for(var w,T,S=e.tintFill,E=0;E{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=new(i(83419))({initialize:function(t,e,i){void 0===t&&(t=0),void 0===e&&(e=0),void 0===i&&(i=!0),this.emitter,this.x=t,this.y=e,this.active=i},update:function(){},destroy:function(){this.emitter=null}});t.exports=n},9774:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports=\"complete\"},812:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports=\"deathzone\"},30522:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports=\"explode\"},96695:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports=\"start\"},18677:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports=\"stop\"},20696:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports={COMPLETE:i(9774),DEATH_ZONE:i(812),EXPLODE:i(30522),START:i(96695),STOP:i(18677)}},18404:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports={EmitterColorOp:i(76472),EmitterOp:i(44777),Events:i(20696),GravityWell:i(24502),Particle:i(56480),ParticleBounds:i(69601),ParticleEmitter:i(31600),ParticleProcessor:i(20286),Zones:i(21024)}},26388:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=new(i(83419))({initialize:function(t,e){this.source=t,this.killOnEnter=e},willKill:function(t){var e=t.worldPosition,i=this.source.contains(e.x,e.y);return i&&this.killOnEnter||!i&&!this.killOnEnter}});t.exports=n},19909:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=new(i(83419))({initialize:function(t,e,i,n,r,s){void 0===n&&(n=!1),void 0===r&&(r=!0),void 0===s&&(s=-1),this.source=t,this.points=[],this.quantity=e,this.stepRate=i,this.yoyo=n,this.counter=-1,this.seamless=r,this._length=0,this._direction=0,this.total=s,this.updateSource()},updateSource:function(){if(this.points=this.source.getPoints(this.quantity,this.stepRate),this.seamless){var t=this.points[0],e=this.points[this.points.length-1];t.x===e.x&&t.y===e.y&&this.points.pop()}var i=this._length;return this._length=this.points.length,this._lengththis._length&&(this.counter=this._length-1),this},changeSource:function(t){return this.source=t,this.updateSource()},getPoint:function(t){0===this._direction?(this.counter++,this.counter>=this._length&&(this.yoyo?(this._direction=1,this.counter=this._length-1):this.counter=0)):(this.counter--,-1===this.counter&&(this.yoyo?(this._direction=0,this.counter=0):this.counter=this._length-1));var e=this.points[this.counter];e&&(t.x=e.x,t.y=e.y)}});t.exports=n},68875:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(83419),r=i(26099),s=new n({initialize:function(t){this.source=t,this._tempVec=new r,this.total=-1},getPoint:function(t){var e=this._tempVec;this.source.getRandomPoint(e),t.x=e.x,t.y=e.y}});t.exports=s},21024:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports={DeathZone:i(26388),EdgeZone:i(19909),RandomZone:i(68875)}},1159:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(83419),r=i(31401),s=i(68287),a=new n({Extends:s,Mixins:[r.PathFollower],initialize:function(t,e,i,n,r,a){s.call(this,t,i,n,r,a),this.path=e},preUpdate:function(t,e){this.anims.update(t,e),this.pathUpdate(t)}});t.exports=a},90145:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(39429),r=i(1159);n.register(\"follower\",(function(t,e,i,n,s){var a=new r(this.scene,t,e,i,n,s);return this.displayList.add(a),this.updateList.add(a),a}))},33663:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(9674),r=i(83419),s=i(48803),a=i(90664),o=i(4703),l=i(45650),h=new r({Extends:o,initialize:function(t,e,i,r,s,a,l,h){r||(r=\"__DEFAULT\"),o.call(this,t,e,i,r,s),this.type=\"Plane\",this.anims=new n(this),this.gridWidth,this.gridHeight,this.isTiled,this._checkerboard=null,this.hideCCW=!1,this.setGridSize(a,l,h),this.setSizeToFrame(!1),this.setViewHeight()},originX:{get:function(){return.5}},originY:{get:function(){return.5}},setGridSize:function(t,e,i){void 0===t&&(t=8),void 0===e&&(e=8),void 0===i&&(i=!1);var n=!1;return i&&(n=!0),this.gridWidth=t,this.gridHeight=e,this.isTiled=i,this.clear(),s({mesh:this,widthSegments:t,heightSegments:e,isOrtho:!1,tile:i,flipY:n}),this},setSizeToFrame:function(t){void 0===t&&(t=!0);var e=this.frame;if(this.setPerspective(this.width/e.width,this.height/e.height),this._checkerboard&&this._checkerboard!==this.texture&&this.removeCheckerboard(),!t)return this;var i,n,r=this.gridWidth,s=this.gridHeight,a=this.vertices,o=e.u0,l=e.u1,h=e.v0,u=e.v1,c=0;if(this.isTiled)for(h=e.v1,u=e.v0,n=0;n7&&c>7?h.push(s.r,s.g,s.b,i):h.push(o.r,o.g,o.b,n);var d=this.scene.sys.textures.addUint8Array(l(),new Uint8Array(h),16,16);return this.removeCheckerboard(),this.setTexture(d),this.setSizeToFrame(),this.setViewHeight(r),this},removeCheckerboard:function(){this._checkerboard&&(this._checkerboard.destroy(),this._checkerboard=null)},play:function(t,e){return this.anims.play(t,e)},playReverse:function(t,e){return this.anims.playReverse(t,e)},playAfterDelay:function(t,e){return this.anims.playAfterDelay(t,e)},playAfterRepeat:function(t,e){return this.anims.playAfterRepeat(t,e)},stop:function(){return this.anims.stop()},stopAfterDelay:function(t){return this.anims.stopAfterDelay(t)},stopAfterRepeat:function(t){return this.anims.stopAfterRepeat(t)},stopOnFrame:function(t){return this.anims.stopOnFrame(t)},preUpdate:function(t,e){o.prototype.preUpdate.call(this,t,e),this.anims.update(t,e)},preDestroy:function(){this.clear(),this.removeCheckerboard(),this.anims.destroy(),this.anims=void 0,this.debugCallback=null,this.debugGraphic=null}});t.exports=h},56015:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(25305),r=i(13059),s=i(44603),a=i(23568),o=i(35154),l=i(33663);s.register(\"plane\",(function(t,e){void 0===t&&(t={});var i=a(t,\"key\",null),s=a(t,\"frame\",null),h=o(t,\"width\",8),u=o(t,\"height\",8),c=o(t,\"tile\",!1),d=new l(this.scene,0,0,i,s,h,u,c);void 0!==e&&(t.add=e);var f=o(t,\"checkerboard\",null);if(f){var p=o(f,\"color1\",16777215),m=o(f,\"color2\",255),g=o(f,\"alpha1\",255),v=o(f,\"alpha2\",255),y=o(f,\"height\",128);d.createCheckerboard(p,m,g,v,y)}return n(this.scene,d,t),r(d,t),d}))},30985:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(33663);i(39429).register(\"plane\",(function(t,e,i,r,s,a,o){return this.displayList.add(new n(this.scene,t,e,i,r,s,a,o))}))},80321:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(83419),r=i(31401),s=i(95643),a=i(30100),o=i(36060),l=i(67277),h=new n({Extends:s,Mixins:[r.AlphaSingle,r.BlendMode,r.Depth,r.Mask,r.Pipeline,r.PostPipeline,r.ScrollFactor,r.Transform,r.Visible,l],initialize:function(t,e,i,n,r,l,h){void 0===n&&(n=16777215),void 0===r&&(r=128),void 0===l&&(l=1),void 0===h&&(h=.1),s.call(this,t,\"PointLight\"),this.initPipeline(o.POINTLIGHT_PIPELINE),this.initPostPipeline(),this.setPosition(e,i),this.color=a(n),this.intensity=l,this.attenuation=h,this.width=2*r,this.height=2*r,this._radius=r},radius:{get:function(){return this._radius},set:function(t){this._radius=t,this.width=2*t,this.height=2*t}},originX:{get:function(){return.5}},originY:{get:function(){return.5}},displayOriginX:{get:function(){return this._radius}},displayOriginY:{get:function(){return this._radius}}});t.exports=h},39829:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(25305),r=i(44603),s=i(23568),a=i(80321);r.register(\"pointlight\",(function(t,e){void 0===t&&(t={});var i=s(t,\"color\",16777215),r=s(t,\"radius\",128),o=s(t,\"intensity\",1),l=s(t,\"attenuation\",.1),h=new a(this.scene,0,0,i,r,o,l);return void 0!==e&&(t.add=e),n(this.scene,h,t),h}))},71255:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(39429),r=i(80321);n.register(\"pointlight\",(function(t,e,i,n,s,a){return this.displayList.add(new r(this.scene,t,e,i,n,s,a))}))},67277:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(29747),r=n,s=n;r=i(57787),t.exports={renderWebGL:r,renderCanvas:s}},57787:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(91296);t.exports=function(t,e,i,r){i.addToRenderList(e);var s=t.pipelines.set(e.pipeline),a=n(e,i,r).calc,o=e.width,l=e.height,h=-e._radius,u=-e._radius,c=h+o,d=u+l,f=a.getX(0,0),p=a.getY(0,0),m=a.getX(h,u),g=a.getY(h,u),v=a.getX(h,d),y=a.getY(h,d),b=a.getX(c,d),x=a.getY(c,d),w=a.getX(c,u),T=a.getY(c,u);t.pipelines.preBatch(e),s.batchPointLight(e,i,m,g,v,y,b,x,w,T,f,p),t.pipelines.postBatch(e)}},591:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(83419),r=i(81320),s=i(88571),a=new n({Extends:s,initialize:function(t,e,i,n,a,o){void 0===e&&(e=0),void 0===i&&(i=0),void 0===n&&(n=32),void 0===a&&(a=32),void 0===o&&(o=!0);var l=new r(t.sys.textures,\"\",n,a,o);s.call(this,t,e,i,l),this.type=\"RenderTexture\",this.camera=this.texture.camera,this._saved=!1},setSize:function(t,e){this.width=t,this.height=e,this.updateDisplayOrigin();var i=this.input;return i&&!i.customHitArea&&(i.hitArea.width=t,i.hitArea.height=e),this},resize:function(t,e,i){return this.texture.setSize(t,e,i),this.setSize(this.texture.width,this.texture.height),this},saveTexture:function(t){var e=this.texture;return e.key=t,e.manager.addDynamicTexture(e)&&(this._saved=!0),e},fill:function(t,e,i,n,r,s){return this.texture.fill(t,e,i,n,r,s),this},clear:function(){return this.texture.clear(),this},stamp:function(t,e,i,n,r){return this.texture.stamp(t,e,i,n,r),this},erase:function(t,e,i){return this.texture.erase(t,e,i),this},draw:function(t,e,i,n,r){return this.texture.draw(t,e,i,n,r),this},drawFrame:function(t,e,i,n,r,s){return this.texture.drawFrame(t,e,i,n,r,s),this},repeat:function(t,e,i,n,r,s,a,o,l){return this.texture.repeat(t,e,i,n,r,s,a,o,l),this},beginDraw:function(){return this.texture.beginDraw(),this},batchDraw:function(t,e,i,n,r){return this.texture.batchDraw(t,e,i,n,r),this},batchDrawFrame:function(t,e,i,n,r,s){return this.texture.batchDrawFrame(t,e,i,n,r,s),this},endDraw:function(t){return this.texture.endDraw(t),this},snapshotArea:function(t,e,i,n,r,s,a){return this.texture.snapshotArea(t,e,i,n,r,s,a),this},snapshot:function(t,e,i){return this.snapshotArea(0,0,this.width,this.height,t,e,i)},snapshotPixel:function(t,e,i){return this.snapshotArea(t,e,1,1,i,\"pixel\")},preDestroy:function(){this.camera=null,this._saved||this.texture.destroy()}});t.exports=a},34495:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(25305),r=i(44603),s=i(23568),a=i(591);r.register(\"renderTexture\",(function(t,e){void 0===t&&(t={});var i=s(t,\"x\",0),r=s(t,\"y\",0),o=s(t,\"width\",32),l=s(t,\"height\",32),h=new a(this.scene,i,r,o,l);return void 0!==e&&(t.add=e),n(this.scene,h,t),h}))},60505:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(39429),r=i(591);n.register(\"renderTexture\",(function(t,e,i,n){return this.displayList.add(new r(this.scene,t,e,i,n))}))},77757:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(9674),r=i(83419),s=i(31401),a=i(95643),o=i(36060),l=i(38745),h=i(26099),u=new r({Extends:a,Mixins:[s.AlphaSingle,s.BlendMode,s.Depth,s.Flip,s.Mask,s.Pipeline,s.PostPipeline,s.Size,s.Texture,s.Transform,s.Visible,s.ScrollFactor,l],initialize:function(t,e,i,r,s,l,u,c,d){void 0===r&&(r=\"__DEFAULT\"),void 0===l&&(l=2),void 0===u&&(u=!0),a.call(this,t,\"Rope\"),this.anims=new n(this),this.points=l,this.vertices,this.uv,this.colors,this.alphas,this.tintFill=\"__DEFAULT\"===r,this.dirty=!1,this.horizontal=u,this._flipX=!1,this._flipY=!1,this._perp=new h,this.debugCallback=null,this.debugGraphic=null,this.setTexture(r,s),this.setPosition(e,i),this.setSizeToFrame(),this.initPipeline(o.ROPE_PIPELINE),this.initPostPipeline(),Array.isArray(l)&&this.resizeArrays(l.length),this.setPoints(l,c,d),this.updateVertices()},addedToScene:function(){this.scene.sys.updateList.add(this)},removedFromScene:function(){this.scene.sys.updateList.remove(this)},preUpdate:function(t,e){var i=this.anims.currentFrame;this.anims.update(t,e),this.anims.currentFrame!==i&&(this.updateUVs(),this.updateVertices())},play:function(t,e,i){return this.anims.play(t,e,i),this},setDirty:function(){return this.dirty=!0,this},setHorizontal:function(t,e,i){return void 0===t&&(t=this.points.length),this.horizontal?this:(this.horizontal=!0,this.setPoints(t,e,i))},setVertical:function(t,e,i){return void 0===t&&(t=this.points.length),this.horizontal?(this.horizontal=!1,this.setPoints(t,e,i)):this},setTintFill:function(t){return void 0===t&&(t=!1),this.tintFill=t,this},setAlphas:function(t,e){var i=this.points.length;if(i<1)return this;var n,r=this.alphas;void 0===t?t=[1]:Array.isArray(t)||void 0!==e||(t=[t]);var s=0;if(void 0!==e)for(n=0;ns&&(a=t[s]),r[s]=a,t.length>s+1&&(a=t[s+1]),r[s+1]=a}return this},setColors:function(t){var e=this.points.length;if(e<1)return this;var i,n=this.colors;void 0===t?t=[16777215]:Array.isArray(t)||(t=[t]);var r=0;if(t.length===e)for(i=0;ir&&(s=t[r]),n[r]=s,t.length>r+1&&(s=t[r+1]),n[r+1]=s}return this},setPoints:function(t,e,i){if(void 0===t&&(t=2),\"number\"==typeof t){var n,r,s,a=t;if(a<2&&(a=2),t=[],this.horizontal)for(s=-this.frame.halfWidth,r=this.frame.width/(a-1),n=0;n{t.exports=function(){}},26209:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(25305),r=i(44603),s=i(23568),a=i(35154),o=i(77757);r.register(\"rope\",(function(t,e){void 0===t&&(t={});var i=s(t,\"key\",null),r=s(t,\"frame\",null),l=s(t,\"horizontal\",!0),h=a(t,\"points\",void 0),u=a(t,\"colors\",void 0),c=a(t,\"alphas\",void 0),d=new o(this.scene,0,0,i,r,h,l,u,c);return void 0!==e&&(t.add=e),n(this.scene,d,t),d}))},96819:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(77757);i(39429).register(\"rope\",(function(t,e,i,r,s,a,o,l){return this.displayList.add(new n(this.scene,t,e,i,r,s,a,o,l))}))},38745:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(29747),r=n,s=n;r=i(20439),s=i(95262),t.exports={renderWebGL:r,renderCanvas:s}},20439:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(91296),r=i(70554);t.exports=function(t,e,i,s){i.addToRenderList(e);var a=t.pipelines.set(e.pipeline,e),o=n(e,i,s).calc,l=e.vertices,h=e.uv,u=e.colors,c=e.alphas,d=e.alpha,f=r.getTintAppendFloatAlpha,p=i.roundPixels,m=l.length,g=Math.floor(.5*m);a.flush(),t.pipelines.preBatch(e);var v=a.setGameObject(e),y=a.vertexViewF32,b=a.vertexViewU32,x=a.vertexCount*a.currentShader.vertexComponentCount-1,w=0,T=e.tintFill;e.dirty&&e.updateVertices();for(var S=e.debugCallback,E=[],C=0;C{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(83419),r=i(31401),s=i(95643),a=i(95540),o=i(79291),l=i(61622),h=i(25479),u=i(61340),c=i(95428),d=i(92503),f=new n({Extends:s,Mixins:[r.ComputedSize,r.Depth,r.GetBounds,r.Mask,r.Origin,r.ScrollFactor,r.Transform,r.Visible,h],initialize:function(t,e,i,n,r,a,o,l){void 0===i&&(i=0),void 0===n&&(n=0),void 0===r&&(r=128),void 0===a&&(a=128),s.call(this,t,\"Shader\"),this.blendMode=-1,this.shader;var h=t.sys.renderer;this.renderer=h,this.gl=h.gl,this.vertexData=new ArrayBuffer(2*Float32Array.BYTES_PER_ELEMENT*6),this.vertexBuffer=h.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 u,this._tempMatrix2=new u,this._tempMatrix3=new u,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=h.width,this._rendererHeight=h.height,this._textureCount=0,this.framebuffer=null,this.glTexture=null,this.renderToTexture=!1,this.texture=null,this.setPosition(i,n),this.setSize(r,a),this.setOrigin(.5,.5),this.setShader(e,o,l),this.renderer.on(d.RESTORE_WEBGL,this.onContextRestored,this)},willRender:function(t){return!!this.renderToTexture||!(s.RENDER_MASK!==this.renderFlags||0!==this.cameraFilter&&this.cameraFilter&t.id)},setRenderToTexture:function(t,e){if(void 0===e&&(e=!1),!this.renderToTexture){var i=this.width,n=this.height,r=this.renderer;this.glTexture=r.createTextureFromSource(null,i,n,0),this.framebuffer=r.createFramebuffer(i,n,this.glTexture,!1),this._rendererWidth=i,this._rendererHeight=n,this.renderToTexture=!0,this.projOrtho(0,this.width,this.height,0),t&&(this.texture=this.scene.sys.textures.addGLTexture(t,this.glTexture))}return this.shader&&(r.pipelines.clear(),this.load(),this.flush(),r.pipelines.rebind()),this},setShader:function(t,e,i){if(this.renderer.contextLost)return this._deferSetShader={key:t,textures:e,textureData:i},this;if(void 0===e&&(e=[]),\"string\"==typeof t){var n=this.scene.sys.cache.shader;if(!n.has(t))return console.warn(\"Shader missing: \"+t),this;this.shader=n.get(t)}else this.shader=t;var r=this.gl,s=this.renderer;this.program&&s.deleteProgram(this.program);var a=s.createProgram(this.shader.vertexSrc,this.shader.fragmentSrc);r.uniformMatrix4fv(r.getUniformLocation(a.webGLProgram,\"uViewMatrix\"),!1,this.viewMatrix),r.uniformMatrix4fv(r.getUniformLocation(a.webGLProgram,\"uProjectionMatrix\"),!1,this.projectionMatrix),r.uniform2f(r.getUniformLocation(a.webGLProgram,\"uResolution\"),this.width,this.height),this.program=a;var l=new Date,h={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:[l.getFullYear(),l.getMonth(),l.getDate(),60*l.getHours()*60+60*l.getMinutes()+l.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=o(!0,{},this.shader.uniforms,h):this.uniforms=h;for(var u=0;u<4;u++)e[u]&&this.setSampler2D(\"iChannel\"+u,e[u],u,i);return this.initUniforms(),this.projOrtho(0,this._rendererWidth,this._rendererHeight,0),this},setPointer:function(t){return this.pointer=t,this},projOrtho:function(t,e,i,n){if(this.renderer.contextLost)this._deferProjOrtho={left:t,right:e,bottom:i,top:n};else{var r=1/(t-e),s=1/(i-n),a=this.projectionMatrix;a[0]=-2*r,a[5]=-2*s,a[10]=-.001,a[12]=(t+e)*r,a[13]=(n+i)*s,a[14]=-0;var o=this.program,l=this.gl;this.renderer.setProgram(o),l.uniformMatrix4fv(l.getUniformLocation(o.webGLProgram,\"uProjectionMatrix\"),!1,this.projectionMatrix),this._rendererWidth=e,this._rendererHeight=i}},initUniforms:function(){var t=this.renderer.glFuncMap,e=this.program;for(var i in this._textureCount=0,this.uniforms){var n=this.uniforms[i],r=n.type,s=t[r];n.uniformLocation=this.renderer.createUniformLocation(e,i),\"sampler2D\"!==r&&(n.glMatrix=s.matrix,n.glValueLength=s.length,n.glFunc=s.func)}},setSampler2DBuffer:function(t,e,i,n,r,s){void 0===r&&(r=0),void 0===s&&(s={});var a=this.uniforms[t];return a.value=e,s.width=i,s.height=n,a.textureData=s,this._textureCount=r,this.initSampler2D(a),this},setSampler2D:function(t,e,i,n){void 0===i&&(i=0);var r=this.scene.sys.textures;if(r.exists(e)){var s=r.getFrame(e);if(s.glTexture&&s.glTexture.isRenderTexture)return this.setSampler2DBuffer(t,s.glTexture,s.width,s.height,i,n);var a=this.uniforms[t],o=s.source;a.textureKey=e,a.source=o.image,a.value=s.glTexture,o.isGLTexture&&(n||(n={}),n.width=o.width,n.height=o.height),n&&(a.textureData=n),this._textureCount=i,this.initSampler2D(a)}return this},setUniform:function(t,e){return l(this.uniforms,t,e),this},getUniform:function(t){return a(this.uniforms,t,null)},setChannel0:function(t,e){return this.setSampler2D(\"iChannel0\",t,0,e)},setChannel1:function(t,e){return this.setSampler2D(\"iChannel1\",t,1,e)},setChannel2:function(t,e){return this.setSampler2D(\"iChannel2\",t,2,e)},setChannel3:function(t,e){return this.setSampler2D(\"iChannel3\",t,3,e)},initSampler2D:function(t){if(t.value){var e=t.textureData;if(e&&!t.value.isRenderTexture){var i=this.gl,n=t.value,r=i[a(e,\"magFilter\",\"linear\").toUpperCase()],s=i[a(e,\"minFilter\",\"linear\").toUpperCase()],o=i[a(e,\"wrapS\",\"repeat\").toUpperCase()],l=i[a(e,\"wrapT\",\"repeat\").toUpperCase()],h=i[a(e,\"format\",\"rgba\").toUpperCase()],u=a(e,\"flipY\",!1),c=a(e,\"width\",n.width),d=a(e,\"height\",n.height),f=a(e,\"source\",n.pixels);e.repeat&&(o=i.REPEAT,l=i.REPEAT),e.width&&(f=null),n.update(f,c,d,u,o,l,s,r,h)}this.renderer.setProgram(this.program),this._textureCount++}},syncUniforms:function(){var t,e,i,n,r,s=this.gl,a=this.uniforms,o=0;for(var l in a)i=(t=a[l]).glFunc,e=t.glValueLength,n=t.uniformLocation,null!==(r=t.value)&&(1===e?t.glMatrix?i.call(s,n.webGLUniformLocation,t.transpose,r):i.call(s,n.webGLUniformLocation,r):2===e?i.call(s,n.webGLUniformLocation,r.x,r.y):3===e?i.call(s,n.webGLUniformLocation,r.x,r.y,r.z):4===e?i.call(s,n.webGLUniformLocation,r.x,r.y,r.z,r.w):\"sampler2D\"===t.type&&(s.activeTexture(s.TEXTURE0+o),s.bindTexture(s.TEXTURE_2D,r.webGLTexture),s.uniform1i(n.webGLUniformLocation,o),o++))},load:function(t){var e=this.gl,i=this.width,n=this.height,r=this.renderer,s=this.program,a=this.viewMatrix;if(!this.renderToTexture){var o=-this._displayOriginX,l=-this._displayOriginY;a[0]=t[0],a[1]=t[1],a[4]=t[2],a[5]=t[3],a[8]=t[4],a[9]=t[5],a[12]=a[0]*o+a[4]*l,a[13]=a[1]*o+a[5]*l}e.useProgram(s.webGLProgram),e.uniformMatrix4fv(e.getUniformLocation(s.webGLProgram,\"uViewMatrix\"),!1,a),e.uniformMatrix4fv(e.getUniformLocation(s.webGLProgram,\"uProjectionMatrix\"),!1,this.projectionMatrix),e.uniform2f(e.getUniformLocation(s.webGLProgram,\"uResolution\"),this.width,this.height);var h=this.uniforms,u=h.resolution;u.value.x=i,u.value.y=n,h.time.value=r.game.loop.getDuration();var c=this.pointer;if(c){var d=h.mouse,f=c.x/i,p=1-c.y/n;d.value.x=f.toFixed(2),d.value.y=p.toFixed(2)}this.syncUniforms()},flush:function(){var t=this.width,e=this.height,i=this.program,n=this.gl,r=this.vertexBuffer,s=this.renderer,a=2*Float32Array.BYTES_PER_ELEMENT;this.renderToTexture&&(s.setFramebuffer(this.framebuffer),n.clearColor(0,0,0,0),n.clear(n.COLOR_BUFFER_BIT)),n.bindBuffer(n.ARRAY_BUFFER,r.webGLBuffer);var o=n.getAttribLocation(i.webGLProgram,\"inPosition\");-1!==o&&(n.enableVertexAttribArray(o),n.vertexAttribPointer(o,2,n.FLOAT,!1,a,0));var l=this.vertexViewF32;l[3]=e,l[4]=t,l[5]=e,l[8]=t,l[9]=e,l[10]=t,n.bufferSubData(n.ARRAY_BUFFER,0,this.bytes.subarray(0,6*a)),n.drawArrays(n.TRIANGLES,0,6),this.renderToTexture&&s.setFramebuffer(null,!1)},setAlpha:function(){},setBlendMode:function(){},onContextRestored:function(){if(null!==this._deferSetShader){var t=this._deferSetShader.key,e=this._deferSetShader.textures,i=this._deferSetShader.textureData;this._deferSetShader=null,this.setShader(t,e,i)}if(null!==this._deferProjOrtho){var n=this._deferProjOrtho.left,r=this._deferProjOrtho.right,s=this._deferProjOrtho.bottom,a=this._deferProjOrtho.top;this._deferProjOrtho=null,this.projOrtho(n,r,s,a)}},preDestroy:function(){var t=this.renderer;t.off(d.RESTORE_WEBGL,this.onContextRestored,this),t.deleteProgram(this.program),t.deleteBuffer(this.vertexBuffer),this.renderToTexture&&(t.deleteFramebuffer(this.framebuffer),this.texture.destroy(),this.framebuffer=null,this.glTexture=null,this.texture=null),c(this.uniforms,(function(e){t.deleteUniformLocation(e.uniformLocation),e.uniformLocation=null}))}});t.exports=f},80464:t=>{t.exports=function(){}},54935:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(25305),r=i(44603),s=i(23568),a=i(20071);r.register(\"shader\",(function(t,e){void 0===t&&(t={});var i=s(t,\"key\",null),r=s(t,\"x\",0),o=s(t,\"y\",0),l=s(t,\"width\",128),h=s(t,\"height\",128),u=new a(this.scene,i,r,o,l,h);return void 0!==e&&(t.add=e),n(this.scene,u,t),u}))},74177:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(20071);i(39429).register(\"shader\",(function(t,e,i,r,s,a,o){return this.displayList.add(new n(this.scene,t,e,i,r,s,a,o))}))},25479:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(29747),r=n,s=n;r=i(19257),s=i(80464),t.exports={renderWebGL:r,renderCanvas:s}},19257:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(91296);t.exports=function(t,e,i,r){if(e.shader){if(i.addToRenderList(e),t.pipelines.clear(),e.renderToTexture)e.load(),e.flush();else{var s=n(e,i,r).calc;t.width===e._rendererWidth&&t.height===e._rendererHeight||e.projOrtho(0,t.width,t.height,0),e.load(s.matrix),e.flush()}t.pipelines.rebind()}}},10441:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(70554);t.exports=function(t,e,i,r,s,a){for(var o=n.getTintAppendFloatAlpha(i.fillColor,i.fillAlpha*r),l=i.pathData,h=i.pathIndexes,u=0;u{t.exports=function(t,e,i,n){var r=i||e.fillColor,s=n||e.fillAlpha,a=(16711680&r)>>>16,o=(65280&r)>>>8,l=255&r;t.fillStyle=\"rgba(\"+a+\",\"+o+\",\"+l+\",\"+s+\")\"}},75177:t=>{t.exports=function(t,e,i,n){var r=i||e.strokeColor,s=n||e.strokeAlpha,a=(16711680&r)>>>16,o=(65280&r)>>>8,l=255&r;t.strokeStyle=\"rgba(\"+a+\",\"+o+\",\"+l+\",\"+s+\")\",t.lineWidth=e.lineWidth}},17803:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(83419),r=i(31401),s=i(95643),a=i(23031),o=new n({Extends:s,Mixins:[r.AlphaSingle,r.BlendMode,r.Depth,r.GetBounds,r.Mask,r.Origin,r.Pipeline,r.PostPipeline,r.ScrollFactor,r.Transform,r.Visible],initialize:function(t,e,i){void 0===e&&(e=\"Shape\"),s.call(this,t,e),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 a,this.width=0,this.height=0,this.initPipeline(),this.initPostPipeline()},setFillStyle:function(t,e){return void 0===e&&(e=1),void 0===t?this.isFilled=!1:(this.fillColor=t,this.fillAlpha=e,this.isFilled=!0),this},setStrokeStyle:function(t,e,i){return void 0===i&&(i=1),void 0===t?this.isStroked=!1:(this.lineWidth=t,this.strokeColor=e,this.strokeAlpha=i,this.isStroked=!0),this},setClosePath:function(t){return this.closePath=t,this},setSize:function(t,e){return this.width=t,this.height=e,this},setDisplaySize:function(t,e){return this.displayWidth=t,this.displayHeight=e,this},preDestroy:function(){this.geom=null,this._tempLine=null,this.pathData=[],this.pathIndexes=[]},displayWidth:{get:function(){return this.scaleX*this.width},set:function(t){this.scaleX=t/this.width}},displayHeight:{get:function(){return this.scaleY*this.height},set:function(t){this.scaleY=t/this.height}}});t.exports=o},34682:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(70554);t.exports=function(t,e,i,r,s){var a=t.strokeTint,o=n.getTintAppendFloatAlpha(e.strokeColor,e.strokeAlpha*i);a.TL=o,a.TR=o,a.BL=o,a.BR=o;var l=e.pathData,h=l.length-1,u=e.lineWidth,c=u/2,d=l[0]-r,f=l[1]-s;e.closePath||(h-=2);for(var p=2;p{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(13609),r=i(83419),s=i(39506),a=i(94811),o=i(96503),l=i(36383),h=i(17803),u=new r({Extends:h,Mixins:[n],initialize:function(t,e,i,n,r,s,a,l,u){void 0===e&&(e=0),void 0===i&&(i=0),void 0===n&&(n=128),void 0===r&&(r=0),void 0===s&&(s=360),void 0===a&&(a=!1),h.call(this,t,\"Arc\",new o(0,0,n)),this._startAngle=r,this._endAngle=s,this._anticlockwise=a,this._iterations=.01,this.setPosition(e,i);var c=2*this.geom.radius;this.setSize(c,c),void 0!==l&&this.setFillStyle(l,u),this.updateDisplayOrigin(),this.updateData()},iterations:{get:function(){return this._iterations},set:function(t){this._iterations=t,this.updateData()}},radius:{get:function(){return this.geom.radius},set:function(t){this.geom.radius=t;var e=2*t;this.setSize(e,e),this.updateDisplayOrigin(),this.updateData()}},startAngle:{get:function(){return this._startAngle},set:function(t){this._startAngle=t,this.updateData()}},endAngle:{get:function(){return this._endAngle},set:function(t){this._endAngle=t,this.updateData()}},anticlockwise:{get:function(){return this._anticlockwise},set:function(t){this._anticlockwise=t,this.updateData()}},setRadius:function(t){return this.radius=t,this},setIterations:function(t){return void 0===t&&(t=.01),this.iterations=t,this},setStartAngle:function(t,e){return this._startAngle=t,void 0!==e&&(this._anticlockwise=e),this.updateData()},setEndAngle:function(t,e){return this._endAngle=t,void 0!==e&&(this._anticlockwise=e),this.updateData()},updateData:function(){var t=this._iterations,e=t,i=this.geom.radius,n=s(this._startAngle),r=s(this._endAngle),o=i,h=i;r-=n,this._anticlockwise?r<-l.PI2?r=-l.PI2:r>0&&(r=-l.PI2+r%l.PI2):r>l.PI2?r=l.PI2:r<0&&(r=l.PI2+r%l.PI2);for(var u,c=[o+Math.cos(n)*i,h+Math.sin(n)*i];e<1;)u=r*e+n,c.push(o+Math.cos(u)*i,h+Math.sin(u)*i),e+=t;return u=r+n,c.push(o+Math.cos(u)*i,h+Math.sin(u)*i),c.push(o+Math.cos(n)*i,h+Math.sin(n)*i),this.pathIndexes=a(c),this.pathData=c,this}});t.exports=u},42542:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(39506),r=i(65960),s=i(75177),a=i(20926);t.exports=function(t,e,i,o){i.addToRenderList(e);var l=t.currentContext;if(a(t,l,e,i,o)){var h=e.radius;l.beginPath(),l.arc(h-e.originX*(2*h),h-e.originY*(2*h),h,n(e._startAngle),n(e._endAngle),e.anticlockwise),e.closePath&&l.closePath(),e.isFilled&&(r(l,e),l.fill()),e.isStroked&&(s(l,e),l.stroke()),l.restore()}}},42563:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(23629),r=i(39429);r.register(\"arc\",(function(t,e,i,r,s,a,o,l){return this.displayList.add(new n(this.scene,t,e,i,r,s,a,o,l))})),r.register(\"circle\",(function(t,e,i,r,s){return this.displayList.add(new n(this.scene,t,e,i,0,360,!1,r,s))}))},13609:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(29747),r=n,s=n;r=i(41447),s=i(42542),t.exports={renderWebGL:r,renderCanvas:s}},41447:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(91296),r=i(10441),s=i(34682);t.exports=function(t,e,i,a){i.addToRenderList(e);var o=t.pipelines.set(e.pipeline),l=n(e,i,a),h=o.calcMatrix.copyFrom(l.calc),u=e._displayOriginX,c=e._displayOriginY,d=i.alpha*e.alpha;t.pipelines.preBatch(e),e.isFilled&&r(o,h,e,d,u,c),e.isStroked&&s(o,e,d,u,c),t.pipelines.postBatch(e)}},89:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(83419),r=i(33141),s=i(94811),a=i(87841),o=i(17803),l=new n({Extends:o,Mixins:[r],initialize:function(t,e,i,n,r,s){void 0===e&&(e=0),void 0===i&&(i=0),o.call(this,t,\"Curve\",n),this._smoothness=32,this._curveBounds=new a,this.closePath=!1,this.setPosition(e,i),void 0!==r&&this.setFillStyle(r,s),this.updateData()},smoothness:{get:function(){return this._smoothness},set:function(t){this._smoothness=t,this.updateData()}},setSmoothness:function(t){return this._smoothness=t,this.updateData()},updateData:function(){var t=this._curveBounds,e=this._smoothness;this.geom.getBounds(t,e),this.setSize(t.width,t.height),this.updateDisplayOrigin();for(var i=[],n=this.geom.getPoints(e),r=0;r{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(65960),r=i(75177),s=i(20926);t.exports=function(t,e,i,a){i.addToRenderList(e);var o=t.currentContext;if(s(t,o,e,i,a)){var l=e._displayOriginX+e._curveBounds.x,h=e._displayOriginY+e._curveBounds.y,u=e.pathData,c=u.length-1,d=u[0]-l,f=u[1]-h;o.beginPath(),o.moveTo(d,f),e.closePath||(c-=2);for(var p=2;p{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(39429),r=i(89);n.register(\"curve\",(function(t,e,i,n,s){return this.displayList.add(new r(this.scene,t,e,i,n,s))}))},33141:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(29747),r=n,s=n;r=i(53987),s=i(3170),t.exports={renderWebGL:r,renderCanvas:s}},53987:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(10441),r=i(91296),s=i(34682);t.exports=function(t,e,i,a){i.addToRenderList(e);var o=t.pipelines.set(e.pipeline),l=r(e,i,a),h=o.calcMatrix.copyFrom(l.calc),u=e._displayOriginX+e._curveBounds.x,c=e._displayOriginY+e._curveBounds.y,d=i.alpha*e.alpha;t.pipelines.preBatch(e),e.isFilled&&n(o,h,e,d,u,c),e.isStroked&&s(o,e,d,u,c),t.pipelines.postBatch(e)}},19921:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(83419),r=i(94811),s=i(54205),a=i(8497),o=i(17803),l=new n({Extends:o,Mixins:[s],initialize:function(t,e,i,n,r,s,l){void 0===e&&(e=0),void 0===i&&(i=0),void 0===n&&(n=128),void 0===r&&(r=128),o.call(this,t,\"Ellipse\",new a(n/2,r/2,n,r)),this._smoothness=64,this.setPosition(e,i),this.width=n,this.height=r,void 0!==s&&this.setFillStyle(s,l),this.updateDisplayOrigin(),this.updateData()},smoothness:{get:function(){return this._smoothness},set:function(t){this._smoothness=t,this.updateData()}},setSize:function(t,e){return this.width=t,this.height=e,this.geom.setPosition(t/2,e/2),this.geom.setSize(t,e),this.updateDisplayOrigin(),this.updateData()},setSmoothness:function(t){return this._smoothness=t,this.updateData()},updateData:function(){for(var t=[],e=this.geom.getPoints(this._smoothness),i=0;i{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(65960),r=i(75177),s=i(20926);t.exports=function(t,e,i,a){i.addToRenderList(e);var o=t.currentContext;if(s(t,o,e,i,a)){var l=e._displayOriginX,h=e._displayOriginY,u=e.pathData,c=u.length-1,d=u[0]-l,f=u[1]-h;o.beginPath(),o.moveTo(d,f),e.closePath||(c-=2);for(var p=2;p{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(19921);i(39429).register(\"ellipse\",(function(t,e,i,r,s,a){return this.displayList.add(new n(this.scene,t,e,i,r,s,a))}))},54205:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(29747),r=n,s=n;r=i(19467),s=i(7930),t.exports={renderWebGL:r,renderCanvas:s}},19467:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(10441),r=i(91296),s=i(34682);t.exports=function(t,e,i,a){i.addToRenderList(e);var o=t.pipelines.set(e.pipeline),l=r(e,i,a),h=o.calcMatrix.copyFrom(l.calc),u=e._displayOriginX,c=e._displayOriginY,d=i.alpha*e.alpha;t.pipelines.preBatch(e),e.isFilled&&n(o,h,e,d,u,c),e.isStroked&&s(o,e,d,u,c),t.pipelines.postBatch(e)}},30479:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(83419),r=i(17803),s=i(26015),a=new n({Extends:r,Mixins:[s],initialize:function(t,e,i,n,s,a,o,l,h,u,c){void 0===e&&(e=0),void 0===i&&(i=0),void 0===n&&(n=128),void 0===s&&(s=128),void 0===a&&(a=32),void 0===o&&(o=32),r.call(this,t,\"Grid\",null),this.cellWidth=a,this.cellHeight=o,this.showCells=!0,this.outlineFillColor=0,this.outlineFillAlpha=0,this.showOutline=!0,this.showAltCells=!1,this.altFillColor,this.altFillAlpha,this.setPosition(e,i),this.setSize(n,s),this.setFillStyle(l,h),void 0!==u&&this.setOutlineStyle(u,c),this.updateDisplayOrigin()},setFillStyle:function(t,e){return void 0===e&&(e=1),void 0===t?this.showCells=!1:(this.fillColor=t,this.fillAlpha=e,this.showCells=!0),this},setAltFillStyle:function(t,e){return void 0===e&&(e=1),void 0===t?this.showAltCells=!1:(this.altFillColor=t,this.altFillAlpha=e,this.showAltCells=!0),this},setOutlineStyle:function(t,e){return void 0===e&&(e=1),void 0===t?this.showOutline=!1:(this.outlineFillColor=t,this.outlineFillAlpha=e,this.showOutline=!0),this}});t.exports=a},49912:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(65960),r=i(75177),s=i(20926);t.exports=function(t,e,i,a){i.addToRenderList(e);var o=t.currentContext;if(s(t,o,e,i,a)){var l=-e._displayOriginX,h=-e._displayOriginY,u=i.alpha*e.alpha,c=e.width,d=e.height,f=e.cellWidth,p=e.cellHeight,m=Math.ceil(c/f),g=Math.ceil(d/p),v=f,y=p,b=f-(m*f-c),x=p-(g*p-d),w=e.showCells,T=e.showAltCells,S=e.showOutline,E=0,C=0,A=0,_=0,k=0;if(S&&(v--,y--,b===f&&b--,x===p&&x--),w&&e.fillAlpha>0)for(n(o,e),C=0;C0)for(n(o,e,e.altFillColor,e.altFillAlpha*u),C=0;C0){for(r(o,e,e.outlineFillColor,e.outlineFillAlpha*u),E=1;E{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(39429),r=i(30479);n.register(\"grid\",(function(t,e,i,n,s,a,o,l,h,u){return this.displayList.add(new r(this.scene,t,e,i,n,s,a,o,l,h,u))}))},26015:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(29747),r=n,s=n;r=i(46161),s=i(49912),t.exports={renderWebGL:r,renderCanvas:s}},46161:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(91296),r=i(70554);t.exports=function(t,e,i,s){i.addToRenderList(e);var a=t.pipelines.set(e.pipeline),o=n(e,i,s);a.calcMatrix.copyFrom(o.calc).translate(-e._displayOriginX,-e._displayOriginY);var l,h,u=i.alpha*e.alpha,c=e.width,d=e.height,f=e.cellWidth,p=e.cellHeight,m=Math.ceil(c/f),g=Math.ceil(d/p),v=f,y=p,b=f-(m*f-c),x=p-(g*p-d),w=e.showCells,T=e.showAltCells,S=e.showOutline,E=0,C=0,A=0,_=0,k=0;if(S&&(v--,y--,b===f&&b--,x===p&&x--),t.pipelines.preBatch(e),w&&e.fillAlpha>0)for(l=a.fillTint,h=r.getTintAppendFloatAlpha(e.fillColor,e.fillAlpha*u),l.TL=h,l.TR=h,l.BL=h,l.BR=h,C=0;C0)for(l=a.fillTint,h=r.getTintAppendFloatAlpha(e.altFillColor,e.altFillAlpha*u),l.TL=h,l.TR=h,l.BL=h,l.BR=h,C=0;C0){var P=a.strokeTint,M=r.getTintAppendFloatAlpha(e.outlineFillColor,e.outlineFillAlpha*u);for(P.TL=M,P.TR=M,P.BL=M,P.BR=M,E=1;E{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(99651),r=i(83419),s=i(17803),a=new r({Extends:s,Mixins:[n],initialize:function(t,e,i,n,r,a,o,l){void 0===e&&(e=0),void 0===i&&(i=0),void 0===n&&(n=48),void 0===r&&(r=32),void 0===a&&(a=15658734),void 0===o&&(o=10066329),void 0===l&&(l=13421772),s.call(this,t,\"IsoBox\",null),this.projection=4,this.fillTop=a,this.fillLeft=o,this.fillRight=l,this.showTop=!0,this.showLeft=!0,this.showRight=!0,this.isFilled=!0,this.setPosition(e,i),this.setSize(n,r),this.updateDisplayOrigin()},setProjection:function(t){return this.projection=t,this},setFaces:function(t,e,i){return void 0===t&&(t=!0),void 0===e&&(e=!0),void 0===i&&(i=!0),this.showTop=t,this.showLeft=e,this.showRight=i,this},setFillStyle:function(t,e,i){return this.fillTop=t,this.fillLeft=e,this.fillRight=i,this.isFilled=!0,this}});t.exports=a},11508:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(65960),r=i(20926);t.exports=function(t,e,i,s){i.addToRenderList(e);var a=t.currentContext;if(r(t,a,e,i,s)&&e.isFilled){var o=e.width,l=e.height,h=o/2,u=o/e.projection;e.showTop&&(n(a,e,e.fillTop),a.beginPath(),a.moveTo(-h,-l),a.lineTo(0,-u-l),a.lineTo(h,-l),a.lineTo(h,-1),a.lineTo(0,u-1),a.lineTo(-h,-1),a.lineTo(-h,-l),a.fill()),e.showLeft&&(n(a,e,e.fillLeft),a.beginPath(),a.moveTo(-h,0),a.lineTo(0,u),a.lineTo(0,u-l),a.lineTo(-h,-l),a.lineTo(-h,0),a.fill()),e.showRight&&(n(a,e,e.fillRight),a.beginPath(),a.moveTo(h,0),a.lineTo(0,u),a.lineTo(0,u-l),a.lineTo(h,-l),a.lineTo(h,0),a.fill()),a.restore()}}},3933:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(39429),r=i(61475);n.register(\"isobox\",(function(t,e,i,n,s,a,o){return this.displayList.add(new r(this.scene,t,e,i,n,s,a,o))}))},99651:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(29747),r=n,s=n;r=i(68149),s=i(11508),t.exports={renderWebGL:r,renderCanvas:s}},68149:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(91296),r=i(70554);t.exports=function(t,e,i,s){i.addToRenderList(e);var a,o,l,h,u,c,d,f,p,m=t.pipelines.set(e.pipeline),g=n(e,i,s),v=m.calcMatrix.copyFrom(g.calc),y=e.width,b=e.height,x=y/2,w=y/e.projection,T=i.alpha*e.alpha;e.isFilled&&(t.pipelines.preBatch(e),e.showTop&&(a=r.getTintAppendFloatAlpha(e.fillTop,T),o=v.getX(-x,-b),l=v.getY(-x,-b),h=v.getX(0,-w-b),u=v.getY(0,-w-b),c=v.getX(x,-b),d=v.getY(x,-b),f=v.getX(0,w-b),p=v.getY(0,w-b),m.batchQuad(e,o,l,h,u,c,d,f,p,0,0,1,1,a,a,a,a,2)),e.showLeft&&(a=r.getTintAppendFloatAlpha(e.fillLeft,T),o=v.getX(-x,0),l=v.getY(-x,0),h=v.getX(0,w),u=v.getY(0,w),c=v.getX(0,w-b),d=v.getY(0,w-b),f=v.getX(-x,-b),p=v.getY(-x,-b),m.batchQuad(e,o,l,h,u,c,d,f,p,0,0,1,1,a,a,a,a,2)),e.showRight&&(a=r.getTintAppendFloatAlpha(e.fillRight,T),o=v.getX(x,0),l=v.getY(x,0),h=v.getX(0,w),u=v.getY(0,w),c=v.getX(0,w-b),d=v.getY(0,w-b),f=v.getX(x,-b),p=v.getY(x,-b),m.batchQuad(e,o,l,h,u,c,d,f,p,0,0,1,1,a,a,a,a,2)),t.pipelines.postBatch(e))}},16933:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(83419),r=i(60561),s=i(17803),a=new n({Extends:s,Mixins:[r],initialize:function(t,e,i,n,r,a,o,l,h){void 0===e&&(e=0),void 0===i&&(i=0),void 0===n&&(n=48),void 0===r&&(r=32),void 0===a&&(a=!1),void 0===o&&(o=15658734),void 0===l&&(l=10066329),void 0===h&&(h=13421772),s.call(this,t,\"IsoTriangle\",null),this.projection=4,this.fillTop=o,this.fillLeft=l,this.fillRight=h,this.showTop=!0,this.showLeft=!0,this.showRight=!0,this.isReversed=a,this.isFilled=!0,this.setPosition(e,i),this.setSize(n,r),this.updateDisplayOrigin()},setProjection:function(t){return this.projection=t,this},setReversed:function(t){return this.isReversed=t,this},setFaces:function(t,e,i){return void 0===t&&(t=!0),void 0===e&&(e=!0),void 0===i&&(i=!0),this.showTop=t,this.showLeft=e,this.showRight=i,this},setFillStyle:function(t,e,i){return this.fillTop=t,this.fillLeft=e,this.fillRight=i,this.isFilled=!0,this}});t.exports=a},79590:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(65960),r=i(20926);t.exports=function(t,e,i,s){i.addToRenderList(e);var a=t.currentContext;if(r(t,a,e,i,s)&&e.isFilled){var o=e.width,l=e.height,h=o/2,u=o/e.projection,c=e.isReversed;e.showTop&&c&&(n(a,e,e.fillTop),a.beginPath(),a.moveTo(-h,-l),a.lineTo(0,-u-l),a.lineTo(h,-l),a.lineTo(0,u-l),a.fill()),e.showLeft&&(n(a,e,e.fillLeft),a.beginPath(),c?(a.moveTo(-h,-l),a.lineTo(0,u),a.lineTo(0,u-l)):(a.moveTo(-h,0),a.lineTo(0,u),a.lineTo(0,u-l)),a.fill()),e.showRight&&(n(a,e,e.fillRight),a.beginPath(),c?(a.moveTo(h,-l),a.lineTo(0,u),a.lineTo(0,u-l)):(a.moveTo(h,0),a.lineTo(0,u),a.lineTo(0,u-l)),a.fill()),a.restore()}}},49803:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(39429),r=i(16933);n.register(\"isotriangle\",(function(t,e,i,n,s,a,o,l){return this.displayList.add(new r(this.scene,t,e,i,n,s,a,o,l))}))},60561:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(29747),r=n,s=n;r=i(51503),s=i(79590),t.exports={renderWebGL:r,renderCanvas:s}},51503:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(91296),r=i(70554);t.exports=function(t,e,i,s){i.addToRenderList(e);var a=t.pipelines.set(e.pipeline),o=n(e,i,s),l=a.calcMatrix.copyFrom(o.calc),h=e.width,u=e.height,c=h/2,d=h/e.projection,f=e.isReversed,p=i.alpha*e.alpha;if(e.isFilled){var m,g,v,y,b,x,w;if(t.pipelines.preBatch(e),e.showTop&&f){m=r.getTintAppendFloatAlpha(e.fillTop,p),g=l.getX(-c,-u),v=l.getY(-c,-u),y=l.getX(0,-d-u),b=l.getY(0,-d-u),x=l.getX(c,-u),w=l.getY(c,-u);var T=l.getX(0,d-u),S=l.getY(0,d-u);a.batchQuad(e,g,v,y,b,x,w,T,S,0,0,1,1,m,m,m,m,2)}e.showLeft&&(m=r.getTintAppendFloatAlpha(e.fillLeft,p),f?(g=l.getX(-c,-u),v=l.getY(-c,-u),y=l.getX(0,d),b=l.getY(0,d),x=l.getX(0,d-u),w=l.getY(0,d-u)):(g=l.getX(-c,0),v=l.getY(-c,0),y=l.getX(0,d),b=l.getY(0,d),x=l.getX(0,d-u),w=l.getY(0,d-u)),a.batchTri(e,g,v,y,b,x,w,0,0,1,1,m,m,m,2)),e.showRight&&(m=r.getTintAppendFloatAlpha(e.fillRight,p),f?(g=l.getX(c,-u),v=l.getY(c,-u),y=l.getX(0,d),b=l.getY(0,d),x=l.getX(0,d-u),w=l.getY(0,d-u)):(g=l.getX(c,0),v=l.getY(c,0),y=l.getX(0,d),b=l.getY(0,d),x=l.getX(0,d-u),w=l.getY(0,d-u)),a.batchTri(e,g,v,y,b,x,w,0,0,1,1,m,m,m,2)),t.pipelines.postBatch(e)}}},57847:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(83419),r=i(17803),s=i(23031),a=i(36823),o=new n({Extends:r,Mixins:[a],initialize:function(t,e,i,n,a,o,l,h,u){void 0===e&&(e=0),void 0===i&&(i=0),void 0===n&&(n=0),void 0===a&&(a=0),void 0===o&&(o=128),void 0===l&&(l=0),r.call(this,t,\"Line\",new s(n,a,o,l));var c=Math.max(1,this.geom.right-this.geom.left),d=Math.max(1,this.geom.bottom-this.geom.top);this.lineWidth=1,this._startWidth=1,this._endWidth=1,this.setPosition(e,i),this.setSize(c,d),void 0!==h&&this.setStrokeStyle(1,h,u),this.updateDisplayOrigin()},setLineWidth:function(t,e){return void 0===e&&(e=t),this._startWidth=t,this._endWidth=e,this.lineWidth=t,this},setTo:function(t,e,i,n){return this.geom.setTo(t,e,i,n),this}});t.exports=o},17440:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(75177),r=i(20926);t.exports=function(t,e,i,s){i.addToRenderList(e);var a=t.currentContext;if(r(t,a,e,i,s)){var o=e._displayOriginX,l=e._displayOriginY;e.isStroked&&(n(a,e),a.beginPath(),a.moveTo(e.geom.x1-o,e.geom.y1-l),a.lineTo(e.geom.x2-o,e.geom.y2-l),a.stroke()),a.restore()}}},2481:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(39429),r=i(57847);n.register(\"line\",(function(t,e,i,n,s,a,o,l){return this.displayList.add(new r(this.scene,t,e,i,n,s,a,o,l))}))},36823:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(29747),r=n,s=n;r=i(77385),s=i(17440),t.exports={renderWebGL:r,renderCanvas:s}},77385:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(91296),r=i(70554);t.exports=function(t,e,i,s){i.addToRenderList(e);var a=t.pipelines.set(e.pipeline),o=n(e,i,s);a.calcMatrix.copyFrom(o.calc);var l=e._displayOriginX,h=e._displayOriginY,u=i.alpha*e.alpha;if(t.pipelines.preBatch(e),e.isStroked){var c=a.strokeTint,d=r.getTintAppendFloatAlpha(e.strokeColor,e.strokeAlpha*u);c.TL=d,c.TR=d,c.BL=d,c.BR=d,a.batchLine(e.geom.x1-l,e.geom.y1-h,e.geom.x2-l,e.geom.y2-h,e._startWidth/2,e._endWidth/2,1,0,!1,o.sprite,o.camera)}t.pipelines.postBatch(e)}},24949:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(90273),r=i(83419),s=i(94811),a=i(13829),o=i(25717),l=i(17803),h=i(5469),u=new r({Extends:l,Mixins:[n],initialize:function(t,e,i,n,r,s){void 0===e&&(e=0),void 0===i&&(i=0),l.call(this,t,\"Polygon\",new o(n));var h=a(this.geom);this.setPosition(e,i),this.setSize(h.width,h.height),void 0!==r&&this.setFillStyle(r,s),this.updateDisplayOrigin(),this.updateData()},smooth:function(t){void 0===t&&(t=1);for(var e=0;e{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(65960),r=i(75177),s=i(20926);t.exports=function(t,e,i,a){i.addToRenderList(e);var o=t.currentContext;if(s(t,o,e,i,a)){var l=e._displayOriginX,h=e._displayOriginY,u=e.pathData,c=u.length-1,d=u[0]-l,f=u[1]-h;o.beginPath(),o.moveTo(d,f),e.closePath||(c-=2);for(var p=2;p{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(39429),r=i(24949);n.register(\"polygon\",(function(t,e,i,n,s){return this.displayList.add(new r(this.scene,t,e,i,n,s))}))},90273:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(29747),r=n,s=n;r=i(73695),s=i(38710),t.exports={renderWebGL:r,renderCanvas:s}},73695:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(10441),r=i(91296),s=i(34682);t.exports=function(t,e,i,a){i.addToRenderList(e);var o=t.pipelines.set(e.pipeline),l=r(e,i,a),h=o.calcMatrix.copyFrom(l.calc),u=e._displayOriginX,c=e._displayOriginY,d=i.alpha*e.alpha;t.pipelines.preBatch(e),e.isFilled&&n(o,h,e,d,u,c),e.isStroked&&s(o,e,d,u,c),t.pipelines.postBatch(e)}},74561:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(83419),r=i(87841),s=i(17803),a=i(95597),o=new n({Extends:s,Mixins:[a],initialize:function(t,e,i,n,a,o,l){void 0===e&&(e=0),void 0===i&&(i=0),void 0===n&&(n=128),void 0===a&&(a=128),s.call(this,t,\"Rectangle\",new r(0,0,n,a)),this.setPosition(e,i),this.setSize(n,a),void 0!==o&&this.setFillStyle(o,l),this.updateDisplayOrigin(),this.updateData()},setSize:function(t,e){this.width=t,this.height=e,this.geom.setSize(t,e),this.updateData(),this.updateDisplayOrigin();var i=this.input;return i&&!i.customHitArea&&(i.hitArea.width=t,i.hitArea.height=e),this},updateData:function(){var t=[],e=this.geom,i=this._tempLine;return e.getLineA(i),t.push(i.x1,i.y1,i.x2,i.y2),e.getLineB(i),t.push(i.x2,i.y2),e.getLineC(i),t.push(i.x2,i.y2),e.getLineD(i),t.push(i.x2,i.y2),this.pathData=t,this}});t.exports=o},48682:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(65960),r=i(75177),s=i(20926);t.exports=function(t,e,i,a){i.addToRenderList(e);var o=t.currentContext;if(s(t,o,e,i,a)){var l=e._displayOriginX,h=e._displayOriginY;e.isFilled&&(n(o,e),o.fillRect(-l,-h,e.width,e.height)),e.isStroked&&(r(o,e),o.beginPath(),o.rect(-l,-h,e.width,e.height),o.stroke()),o.restore()}}},87959:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(39429),r=i(74561);n.register(\"rectangle\",(function(t,e,i,n,s,a){return this.displayList.add(new r(this.scene,t,e,i,n,s,a))}))},95597:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(29747),r=n,s=n;r=i(52059),s=i(48682),t.exports={renderWebGL:r,renderCanvas:s}},52059:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(91296),r=i(34682),s=i(70554);t.exports=function(t,e,i,a){i.addToRenderList(e);var o=t.pipelines.set(e.pipeline),l=n(e,i,a);o.calcMatrix.copyFrom(l.calc);var h=e._displayOriginX,u=e._displayOriginY,c=i.alpha*e.alpha;if(t.pipelines.preBatch(e),e.isFilled){var d=o.fillTint,f=s.getTintAppendFloatAlpha(e.fillColor,e.fillAlpha*c);d.TL=f,d.TR=f,d.BL=f,d.BR=f,o.batchFillRect(-h,-u,e.width,e.height)}e.isStroked&&r(o,e,c,h,u),t.pipelines.postBatch(e)}},55911:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(81991),r=i(83419),s=i(94811),a=i(17803),o=new r({Extends:a,Mixins:[n],initialize:function(t,e,i,n,r,s,o,l){void 0===e&&(e=0),void 0===i&&(i=0),void 0===n&&(n=5),void 0===r&&(r=32),void 0===s&&(s=64),a.call(this,t,\"Star\",null),this._points=n,this._innerRadius=r,this._outerRadius=s,this.setPosition(e,i),this.setSize(2*s,2*s),void 0!==o&&this.setFillStyle(o,l),this.updateDisplayOrigin(),this.updateData()},setPoints:function(t){return this._points=t,this.updateData()},setInnerRadius:function(t){return this._innerRadius=t,this.updateData()},setOuterRadius:function(t){return this._outerRadius=t,this.updateData()},points:{get:function(){return this._points},set:function(t){this._points=t,this.updateData()}},innerRadius:{get:function(){return this._innerRadius},set:function(t){this._innerRadius=t,this.updateData()}},outerRadius:{get:function(){return this._outerRadius},set:function(t){this._outerRadius=t,this.updateData()}},updateData:function(){var t=[],e=this._points,i=this._innerRadius,n=this._outerRadius,r=Math.PI/2*3,a=Math.PI/e,o=n,l=n;t.push(o,l+-n);for(var h=0;h{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(65960),r=i(75177),s=i(20926);t.exports=function(t,e,i,a){i.addToRenderList(e);var o=t.currentContext;if(s(t,o,e,i,a)){var l=e._displayOriginX,h=e._displayOriginY,u=e.pathData,c=u.length-1,d=u[0]-l,f=u[1]-h;o.beginPath(),o.moveTo(d,f),e.closePath||(c-=2);for(var p=2;p{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(55911);i(39429).register(\"star\",(function(t,e,i,r,s,a,o){return this.displayList.add(new n(this.scene,t,e,i,r,s,a,o))}))},81991:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(29747),r=n,s=n;r=i(57017),s=i(64272),t.exports={renderWebGL:r,renderCanvas:s}},57017:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(10441),r=i(91296),s=i(34682);t.exports=function(t,e,i,a){i.addToRenderList(e);var o=t.pipelines.set(e.pipeline),l=r(e,i,a),h=o.calcMatrix.copyFrom(l.calc),u=e._displayOriginX,c=e._displayOriginY,d=i.alpha*e.alpha;t.pipelines.preBatch(e),e.isFilled&&n(o,h,e,d,u,c),e.isStroked&&s(o,e,d,u,c),t.pipelines.postBatch(e)}},36931:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(83419),r=i(17803),s=i(16483),a=i(96195),o=new n({Extends:r,Mixins:[a],initialize:function(t,e,i,n,a,o,l,h,u,c,d){void 0===e&&(e=0),void 0===i&&(i=0),void 0===n&&(n=0),void 0===a&&(a=128),void 0===o&&(o=64),void 0===l&&(l=0),void 0===h&&(h=128),void 0===u&&(u=128),r.call(this,t,\"Triangle\",new s(n,a,o,l,h,u));var f=this.geom.right-this.geom.left,p=this.geom.bottom-this.geom.top;this.setPosition(e,i),this.setSize(f,p),void 0!==c&&this.setFillStyle(c,d),this.updateDisplayOrigin(),this.updateData()},setTo:function(t,e,i,n,r,s){return this.geom.setTo(t,e,i,n,r,s),this.updateData()},updateData:function(){var t=[],e=this.geom,i=this._tempLine;return e.getLineA(i),t.push(i.x1,i.y1,i.x2,i.y2),e.getLineB(i),t.push(i.x2,i.y2),e.getLineC(i),t.push(i.x2,i.y2),this.pathData=t,this}});t.exports=o},85172:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(65960),r=i(75177),s=i(20926);t.exports=function(t,e,i,a){i.addToRenderList(e);var o=t.currentContext;if(s(t,o,e,i,a)){var l=e._displayOriginX,h=e._displayOriginY,u=e.geom.x1-l,c=e.geom.y1-h,d=e.geom.x2-l,f=e.geom.y2-h,p=e.geom.x3-l,m=e.geom.y3-h;o.beginPath(),o.moveTo(u,c),o.lineTo(d,f),o.lineTo(p,m),o.closePath(),e.isFilled&&(n(o,e),o.fill()),e.isStroked&&(r(o,e),o.stroke()),o.restore()}}},45245:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(39429),r=i(36931);n.register(\"triangle\",(function(t,e,i,n,s,a,o,l,h,u){return this.displayList.add(new r(this.scene,t,e,i,n,s,a,o,l,h,u))}))},96195:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(29747),r=n,s=n;r=i(83253),s=i(85172),t.exports={renderWebGL:r,renderCanvas:s}},83253:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(91296),r=i(34682),s=i(70554);t.exports=function(t,e,i,a){i.addToRenderList(e);var o=t.pipelines.set(e.pipeline),l=n(e,i,a);o.calcMatrix.copyFrom(l.calc);var h=e._displayOriginX,u=e._displayOriginY,c=i.alpha*e.alpha;if(t.pipelines.preBatch(e),e.isFilled){var d=o.fillTint,f=s.getTintAppendFloatAlpha(e.fillColor,e.fillAlpha*c);d.TL=f,d.TR=f,d.BL=f,d.BR=f;var p=e.geom.x1-h,m=e.geom.y1-u,g=e.geom.x2-h,v=e.geom.y2-u,y=e.geom.x3-h,b=e.geom.y3-u;o.batchFillTriangle(p,m,g,v,y,b,l.sprite,l.camera)}e.isStroked&&r(o,e,c,h,u),t.pipelines.postBatch(e)}},68287:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(9674),r=i(83419),s=i(31401),a=i(95643),o=i(92751),l=new r({Extends:a,Mixins:[s.Alpha,s.BlendMode,s.Depth,s.Flip,s.GetBounds,s.Mask,s.Origin,s.Pipeline,s.PostPipeline,s.ScrollFactor,s.Size,s.TextureCrop,s.Tint,s.Transform,s.Visible,o],initialize:function(t,e,i,r,s){a.call(this,t,\"Sprite\"),this._crop=this.resetCropObject(),this.anims=new n(this),this.setTexture(r,s),this.setPosition(e,i),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(t,e){this.anims.update(t,e)},play:function(t,e){return this.anims.play(t,e)},playReverse:function(t,e){return this.anims.playReverse(t,e)},playAfterDelay:function(t,e){return this.anims.playAfterDelay(t,e)},playAfterRepeat:function(t,e){return this.anims.playAfterRepeat(t,e)},chain:function(t){return this.anims.chain(t)},stop:function(){return this.anims.stop()},stopAfterDelay:function(t){return this.anims.stopAfterDelay(t)},stopAfterRepeat:function(t){return this.anims.stopAfterRepeat(t)},stopOnFrame:function(t){return this.anims.stopOnFrame(t)},toJSON:function(){return s.ToJSON(this)},preDestroy:function(){this.anims.destroy(),this.anims=void 0}});t.exports=l},76552:t=>{t.exports=function(t,e,i,n){i.addToRenderList(e),t.batchSprite(e,e.frame,i,n)}},15567:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(25305),r=i(13059),s=i(44603),a=i(23568),o=i(68287);s.register(\"sprite\",(function(t,e){void 0===t&&(t={});var i=a(t,\"key\",null),s=a(t,\"frame\",null),l=new o(this.scene,0,0,i,s);return void 0!==e&&(t.add=e),n(this.scene,l,t),r(l,t),l}))},46409:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(39429),r=i(68287);n.register(\"sprite\",(function(t,e,i,n){return this.displayList.add(new r(this.scene,t,e,i,n))}))},92751:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(29747),r=n,s=n;r=i(9409),s=i(76552),t.exports={renderWebGL:r,renderCanvas:s}},9409:t=>{t.exports=function(t,e,i,n){i.addToRenderList(e),e.pipeline.batchSprite(e,i,n)}},14220:t=>{t.exports=function(t,e,i){var n=t.canvas,r=t.context,s=t.style,a=[],o=0,l=i.length;s.maxLines>0&&s.maxLines1&&(c+=h*(d.length-1))}s.wordWrap&&(c-=r.measureText(\" \").width),a[u]=Math.ceil(c),o=Math.max(o,a[u])}var p=e.fontSize+s.strokeThickness,m=p*l,g=t.lineSpacing;return l>1&&(m+=g*(l-1)),{width:o,height:m,lines:l,lineWidths:a,lineSpacing:g,lineHeight:p}}},79557:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(27919);t.exports=function(t){var e=n.create(this),i=e.getContext(\"2d\",{willReadFrequently:!0});t.syncFont(e,i);var r=i.measureText(t.testString);if(\"actualBoundingBoxAscent\"in r){var s=r.actualBoundingBoxAscent,a=r.actualBoundingBoxDescent;return n.remove(e),{ascent:s,descent:a,fontSize:s+a}}var o=Math.ceil(r.width*t.baselineX),l=o,h=2*l;l=l*t.baselineY|0,e.width=o,e.height=h,i.fillStyle=\"#f00\",i.fillRect(0,0,o,h),i.font=t._font,i.textBaseline=\"alphabetic\",i.fillStyle=\"#000\",i.fillText(t.testString,0,l);var u={ascent:0,descent:0,fontSize:0},c=i.getImageData(0,0,o,h);if(!c)return u.ascent=l,u.descent=l+6,u.fontSize=u.ascent+u.descent,n.remove(e),u;var d,f,p=c.data,m=p.length,g=4*o,v=0,y=!1;for(d=0;dl;d--){for(f=0;f{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(40366),r=i(27919),s=i(83419),a=i(31401),o=i(95643),l=i(14220),h=i(35154),u=i(35846),c=i(61771),d=i(35762),f=i(45650),p=new s({Extends:o,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,c],initialize:function(t,e,i,n,s){void 0===e&&(e=0),void 0===i&&(i=0),o.call(this,t,\"Text\"),this.renderer=t.sys.renderer,this.setPosition(e,i),this.setOrigin(0,0),this.initPipeline(),this.initPostPipeline(!0),this.canvas=r.create(this),this.context,this.style=new d(this,s),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,0===this.style.resolution&&(this.style.resolution=1),this._crop=this.resetCropObject(),this._textureKey=f(),this.texture=t.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(n),s&&s.padding&&this.setPadding(s.padding),s&&s.lineSpacing&&this.setLineSpacing(s.lineSpacing),s&&s.letterSpacing&&this.setLetterSpacing(s.letterSpacing)},initRTL:function(){this.style.rtl&&(this.canvas.dir=\"rtl\",this.context.direction=\"rtl\",this.canvas.style.display=\"none\",n(this.canvas,this.scene.sys.canvas),this.originX=1)},runWordWrap:function(t){var e=this.style;if(e.wordWrapCallback){var i=e.wordWrapCallback.call(e.wordWrapCallbackScope,t,this);return Array.isArray(i)&&(i=i.join(\"\\n\")),i}return e.wordWrapWidth?e.wordWrapUseAdvanced?this.advancedWordWrap(t,this.context,this.style.wordWrapWidth):this.basicWordWrap(t,this.context,this.style.wordWrapWidth):t},advancedWordWrap:function(t,e,i){for(var n=\"\",r=t.replace(/ +/gi,\" \").split(this.splitRegExp),s=r.length,a=0;au){if(0===d){for(var v=p;v.length;){var y=(v=v.slice(0,-1)).length*this.letterSpacing;if((g=e.measureText(v).width+y)<=u)break}if(!v.length)throw new Error(\"wordWrapWidth < a single character\");var b=f.substr(v.length);c[d]=b,l+=v}var x=c[d].length?d:d+1,w=c.slice(x).join(\" \").replace(/[ \\n]*$/gi,\"\");r.splice(a+1,0,w),s=r.length;break}l+=p,u-=g}n+=l.replace(/[ \\n]*$/gi,\"\")+\"\\n\"}}return n=n.replace(/[\\s|\\n]*$/gi,\"\")},basicWordWrap:function(t,e,i){for(var n=\"\",r=t.split(this.splitRegExp),s=r.length-1,a=e.measureText(\" \").width,o=0;o<=s;o++){for(var l=i,h=r[o].split(\" \"),u=h.length-1,c=0;c<=u;c++){var d=h[c],f=d.length*this.letterSpacing,p=e.measureText(d).width+f,m=p;cl&&c>0&&(n+=\"\\n\",l=i),n+=d,c0&&(d+=h.lineSpacing*m),i.rtl)c=f-c-u.left-u.right;else if(\"right\"===i.align)c+=a-h.lineWidths[m];else if(\"center\"===i.align)c+=(a-h.lineWidths[m])/2;else if(\"justify\"===i.align&&h.lineWidths[m]/h.width>=.85){var g=h.width-h.lineWidths[m],v=e.measureText(\" \").width,y=o[m].trim(),b=y.split(\" \");g+=(o[m].length-y.length)*v;for(var x=Math.floor(g/v),w=0;x>0;)b[w]+=\" \",w=(w+1)%(b.length-1||1),--x;o[m]=b.join(\" \")}this.autoRound&&(c=Math.round(c),d=Math.round(d));var T=this.letterSpacing;if(i.strokeThickness&&0===T&&(i.syncShadow(e,i.shadowStroke),e.strokeText(o[m],c,d)),i.color)if(i.syncShadow(e,i.shadowFill),0!==T)for(var S=0,E=o[m].split(\"\"),C=0;C{t.exports=function(t,e,i,n){0!==e.width&&0!==e.height&&(i.addToRenderList(e),t.batchSprite(e,e.frame,i,n))}},71259:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(25305),r=i(44603),s=i(23568),a=i(50171);r.register(\"text\",(function(t,e){void 0===t&&(t={});var i=s(t,\"text\",\"\"),r=s(t,\"style\",null),o=s(t,\"padding\",null);null!==o&&(r.padding=o);var l=new a(this.scene,0,0,i,r);return void 0!==e&&(t.add=e),n(this.scene,l,t),l.autoRound=s(t,\"autoRound\",!0),l.resolution=s(t,\"resolution\",1),l}))},68005:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(50171);i(39429).register(\"text\",(function(t,e,i,r){return this.displayList.add(new n(this.scene,t,e,i,r))}))},61771:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(29747),r=n,s=n;r=i(34397),s=i(79724),t.exports={renderWebGL:r,renderCanvas:s}},35762:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(83419),r=i(23568),s=i(35154),a=i(79557),o={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]},l=new n({initialize:function(t,e){this.parent=t,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(e,!1,!0)},setStyle:function(t,e,i){for(var n in void 0===e&&(e=!0),void 0===i&&(i=!1),o){var l=i?o[n][1]:this[n];\"wordWrapCallback\"===n||\"wordWrapCallbackScope\"===n?this[n]=s(t,o[n][0],l):t&&\"fontSize\"===n&&\"number\"==typeof t.fontSize?this[n]=t.fontSize.toString()+\"px\":this[n]=r(t,o[n][0],l)}var h=s(t,\"font\",null);null!==h&&this.setFont(h,!1),this._font=[this.fontStyle,this.fontSize,this.fontFamily].join(\" \").trim();var u=s(t,\"fill\",null);null!==u&&(this.color=u);var c=s(t,\"metrics\",!1);return c?this.metrics={ascent:s(c,\"ascent\",0),descent:s(c,\"descent\",0),fontSize:s(c,\"fontSize\",0)}:!e&&this.metrics||(this.metrics=a(this)),e?this.parent.updateText():this.parent},syncFont:function(t,e){e.font=this._font},syncStyle:function(t,e){e.textBaseline=\"alphabetic\",e.fillStyle=this.color,e.strokeStyle=this.stroke,e.lineWidth=this.strokeThickness,e.lineCap=\"round\",e.lineJoin=\"round\"},syncShadow:function(t,e){e?(t.shadowOffsetX=this.shadowOffsetX,t.shadowOffsetY=this.shadowOffsetY,t.shadowColor=this.shadowColor,t.shadowBlur=this.shadowBlur):(t.shadowOffsetX=0,t.shadowOffsetY=0,t.shadowColor=0,t.shadowBlur=0)},update:function(t){return t&&(this._font=[this.fontStyle,this.fontSize,this.fontFamily].join(\" \").trim(),this.metrics=a(this)),this.parent.updateText()},setFont:function(t,e){void 0===e&&(e=!0);var i=t,n=\"\",r=\"\";if(\"string\"!=typeof t)i=s(t,\"fontFamily\",\"Courier\"),n=s(t,\"fontSize\",\"16px\"),r=s(t,\"fontStyle\",\"\");else{var a=t.split(\" \"),o=0;r=a.length>2?a[o++]:\"\",n=a[o++]||\"16px\",i=a[o++]||\"Courier\"}return i===this.fontFamily&&n===this.fontSize&&r===this.fontStyle||(this.fontFamily=i,this.fontSize=n,this.fontStyle=r,e&&this.update(!0)),this.parent},setFontFamily:function(t){return this.fontFamily!==t&&(this.fontFamily=t,this.update(!0)),this.parent},setFontStyle:function(t){return this.fontStyle!==t&&(this.fontStyle=t,this.update(!0)),this.parent},setFontSize:function(t){return\"number\"==typeof t&&(t=t.toString()+\"px\"),this.fontSize!==t&&(this.fontSize=t,this.update(!0)),this.parent},setTestString:function(t){return this.testString=t,this.update(!0)},setFixedSize:function(t,e){return this.fixedWidth=t,this.fixedHeight=e,t&&(this.parent.width=t),e&&(this.parent.height=e),this.update(!1)},setBackgroundColor:function(t){return this.backgroundColor=t,this.update(!1)},setFill:function(t){return this.color=t,this.update(!1)},setColor:function(t){return this.color=t,this.update(!1)},setResolution:function(t){return this.resolution=t,this.update(!1)},setStroke:function(t,e){return void 0===e&&(e=this.strokeThickness),void 0===t&&0!==this.strokeThickness?(this.strokeThickness=0,this.update(!0)):this.stroke===t&&this.strokeThickness===e||(this.stroke=t,this.strokeThickness=e,this.update(!0)),this.parent},setShadow:function(t,e,i,n,r,s){return void 0===t&&(t=0),void 0===e&&(e=0),void 0===i&&(i=\"#000\"),void 0===n&&(n=0),void 0===r&&(r=!1),void 0===s&&(s=!0),this.shadowOffsetX=t,this.shadowOffsetY=e,this.shadowColor=i,this.shadowBlur=n,this.shadowStroke=r,this.shadowFill=s,this.update(!1)},setShadowOffset:function(t,e){return void 0===t&&(t=0),void 0===e&&(e=t),this.shadowOffsetX=t,this.shadowOffsetY=e,this.update(!1)},setShadowColor:function(t){return void 0===t&&(t=\"#000\"),this.shadowColor=t,this.update(!1)},setShadowBlur:function(t){return void 0===t&&(t=0),this.shadowBlur=t,this.update(!1)},setShadowStroke:function(t){return this.shadowStroke=t,this.update(!1)},setShadowFill:function(t){return this.shadowFill=t,this.update(!1)},setWordWrapWidth:function(t,e){return void 0===e&&(e=!1),this.wordWrapWidth=t,this.wordWrapUseAdvanced=e,this.update(!1)},setWordWrapCallback:function(t,e){return void 0===e&&(e=null),this.wordWrapCallback=t,this.wordWrapCallbackScope=e,this.update(!1)},setAlign:function(t){return void 0===t&&(t=\"left\"),this.align=t,this.update(!1)},setMaxLines:function(t){return void 0===t&&(t=0),this.maxLines=t,this.update(!1)},getTextMetrics:function(){var t=this.metrics;return{ascent:t.ascent,descent:t.descent,fontSize:t.fontSize}},toJSON:function(){var t={};for(var e in o)t[e]=this[e];return t.metrics=this.getTextMetrics(),t},destroy:function(){this.parent=void 0}});t.exports=l},34397:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(70554);t.exports=function(t,e,i,r){if(0!==e.width&&0!==e.height){i.addToRenderList(e);var s=e.frame,a=s.width,o=s.height,l=n.getTintAppendFloatAlpha,h=t.pipelines.set(e.pipeline,e),u=h.setTexture2D(s.glTexture,e);h.batchTexture(e,s.glTexture,a,o,e.x,e.y,a/e.style.resolution,o/e.style.resolution,e.scaleX,e.scaleY,e.rotation,e.flipX,e.flipY,e.scrollFactorX,e.scrollFactorY,e.displayOriginX,e.displayOriginY,0,0,a,o,l(e.tintTopLeft,i.alpha*e._alphaTL),l(e.tintTopRight,i.alpha*e._alphaTR),l(e.tintBottomLeft,i.alpha*e._alphaBL),l(e.tintBottomRight,i.alpha*e._alphaBR),e.tintFill,0,0,i,r,!1,u)}}},20839:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(27919),r=i(83419),s=i(31401),a=i(95643),o=i(98439),l=i(68703),h=i(56295),u=i(45650),c=i(26099),d=new r({Extends:a,Mixins:[s.Alpha,s.BlendMode,s.ComputedSize,s.Crop,s.Depth,s.Flip,s.GetBounds,s.Mask,s.Origin,s.Pipeline,s.PostPipeline,s.ScrollFactor,s.Tint,s.Transform,s.Visible,h],initialize:function(t,e,i,r,s,l,h){var d=t.sys.renderer;a.call(this,t,\"TileSprite\");var f=t.sys.textures.get(l),p=f.get(h);p.source.compressionAlgorithm&&(console.warn(\"TileSprite cannot use compressed texture\"),p=(f=t.sys.textures.get(\"__MISSING\")).get()),\"DynamicTexture\"===f.type&&(console.warn(\"TileSprite cannot use Dynamic Texture\"),p=(f=t.sys.textures.get(\"__MISSING\")).get()),r&&s?(r=Math.floor(r),s=Math.floor(s)):(r=r||p.width,s=s||p.height),this._tilePosition=new c,this._tileScale=new c(1,1),this.dirty=!1,this.renderer=d,this.canvas=n.create(this,r,s),this.context=this.canvas.getContext(\"2d\",{willReadFrequently:!1}),this.displayTexture=f,this.displayFrame=p,this._crop=this.resetCropObject(),this._textureKey=u(),this.texture=t.sys.textures.addCanvas(this._textureKey,this.canvas),this.frame=this.texture.get(),this.potWidth=o(p.width),this.potHeight=o(p.height),this.fillCanvas=n.create2D(this,this.potWidth,this.potHeight),this.fillContext=this.fillCanvas.getContext(\"2d\",{willReadFrequently:!1}),this.fillPattern=null,this.setPosition(e,i),this.setSize(r,s),this.setFrame(h),this.setOriginFromFrame(),this.initPipeline(),this.initPostPipeline(!0)},setTexture:function(t,e){return this.displayTexture=this.scene.sys.textures.get(t),this.setFrame(e)},setFrame:function(t){var e=this.displayTexture.get(t);return this.potWidth=o(e.width),this.potHeight=o(e.height),this.canvas.width=0,e.cutWidth&&e.cutHeight?this.renderFlags|=8:this.renderFlags&=-9,this.displayFrame=e,this.dirty=!0,this.updateTileTexture(),this},setTilePosition:function(t,e){return void 0!==t&&(this.tilePositionX=t),void 0!==e&&(this.tilePositionY=e),this},setTileScale:function(t,e){return void 0===t&&(t=this.tileScaleX),void 0===e&&(e=t),this.tileScaleX=t,this.tileScaleY=e,this},updateTileTexture:function(){if(this.dirty&&this.renderer){var t=this.displayFrame;if(t.source.isRenderTexture||t.source.isGLTexture)return console.warn(\"TileSprites can only use Image or Canvas based textures\"),void(this.dirty=!1);var e=this.fillContext,i=this.fillCanvas,n=this.potWidth,r=this.potHeight;this.renderer&&this.renderer.gl||(n=t.cutWidth,r=t.cutHeight),e.clearRect(0,0,n,r),i.width=n,i.height=r,e.drawImage(t.source.image,t.cutX,t.cutY,t.cutWidth,t.cutHeight,0,0,n,r),this.renderer&&this.renderer.gl?this.fillPattern=this.renderer.canvasToTexture(i,this.fillPattern):this.fillPattern=e.createPattern(i,\"repeat\"),this.updateCanvas(),this.dirty=!1}},updateCanvas:function(){var t=this.canvas;if(t.width===this.width&&t.height===this.height||(t.width=this.width,t.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;else{var e=this.context;this.scene.sys.game.config.antialias||l.disable(e);var i=this._tileScale.x,n=this._tileScale.y,r=this._tilePosition.x,s=this._tilePosition.y;e.clearRect(0,0,this.width,this.height),e.save(),e.scale(i,n),e.translate(-r,-s),e.fillStyle=this.fillPattern,e.fillRect(r,s,this.width/i,this.height/n),e.restore(),this.dirty=!1}},preDestroy:function(){this.renderer&&this.renderer.gl&&this.renderer.deleteTexture(this.fillPattern),n.remove(this.canvas),n.remove(this.fillCanvas),this.fillPattern=null,this.fillContext=null,this.fillCanvas=null,this.displayTexture=null,this.displayFrame=null;var t=this.texture;t&&t.destroy(),this.renderer=null},tilePositionX:{get:function(){return this._tilePosition.x},set:function(t){this._tilePosition.x=t,this.dirty=!0}},tilePositionY:{get:function(){return this._tilePosition.y},set:function(t){this._tilePosition.y=t,this.dirty=!0}},tileScaleX:{get:function(){return this._tileScale.x},set:function(t){this._tileScale.x=t,this.dirty=!0}},tileScaleY:{get:function(){return this._tileScale.y},set:function(t){this._tileScale.y=t,this.dirty=!0}}});t.exports=d},46992:t=>{t.exports=function(t,e,i,n){e.updateCanvas(),i.addToRenderList(e),t.batchSprite(e,e.frame,i,n)}},14167:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(25305),r=i(44603),s=i(23568),a=i(20839);r.register(\"tileSprite\",(function(t,e){void 0===t&&(t={});var i=s(t,\"x\",0),r=s(t,\"y\",0),o=s(t,\"width\",512),l=s(t,\"height\",512),h=s(t,\"key\",\"\"),u=s(t,\"frame\",\"\"),c=new a(this.scene,i,r,o,l,h,u);return void 0!==e&&(t.add=e),n(this.scene,c,t),c}))},91681:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(20839);i(39429).register(\"tileSprite\",(function(t,e,i,r,s,a){return this.displayList.add(new n(this.scene,t,e,i,r,s,a))}))},56295:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(29747),r=n,s=n;r=i(18553),s=i(46992),t.exports={renderWebGL:r,renderCanvas:s}},18553:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(70554);t.exports=function(t,e,i,r){e.updateCanvas();var s=e.width,a=e.height;if(0!==s&&0!==a){i.addToRenderList(e);var o=n.getTintAppendFloatAlpha,l=t.pipelines.set(e.pipeline,e),h=l.setTexture2D(e.fillPattern,e);l.batchTexture(e,e.fillPattern,e.displayFrame.width*e.tileScaleX,e.displayFrame.height*e.tileScaleY,e.x,e.y,s,a,e.scaleX,e.scaleY,e.rotation,e.flipX,e.flipY,e.scrollFactorX,e.scrollFactorY,e.originX*s,e.originY*a,0,0,s,a,o(e.tintTopLeft,i.alpha*e._alphaTL),o(e.tintTopRight,i.alpha*e._alphaTR),o(e.tintBottomLeft,i.alpha*e._alphaBL),o(e.tintBottomRight,i.alpha*e._alphaBR),e.tintFill,e.tilePositionX%e.displayFrame.width/e.displayFrame.width,e.tilePositionY%e.displayFrame.height/e.displayFrame.height,i,r,!1,h)}}},18471:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(45319),r=i(83419),s=i(31401),a=i(51708),o=i(8443),l=i(95643),h=i(36383),u=i(14463),c=i(45650),d=i(10247),f=new r({Extends:l,Mixins:[s.Alpha,s.BlendMode,s.ComputedSize,s.Depth,s.Flip,s.GetBounds,s.Mask,s.Origin,s.Pipeline,s.PostPipeline,s.ScrollFactor,s.TextureCrop,s.Tint,s.Transform,s.Visible,d],initialize:function(t,e,i,n){l.call(this,t,\"Video\"),this.video,this.videoTexture,this.videoTextureSource,this.snapshotTexture,this.flipY=!1,this._key=c(),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 r=t.sys.game;this._device=r.device.video,this.setPosition(e,i),this.setSize(256,256),this.initPipeline(),this.initPostPipeline(!0),r.events.on(o.PAUSE,this.globalPause,this),r.events.on(o.RESUME,this.globalResume,this);var s=t.sys.sound;s&&s.on(u.GLOBAL_MUTE,this.globalMute,this),n&&this.load(n)},addedToScene:function(){this.scene.sys.updateList.add(this)},removedFromScene:function(){this.scene.sys.updateList.remove(this)},load:function(t){var e=this.scene.sys.cache.video.get(t);return e?(this.cacheKey=t,this.loadHandler(e.url,e.noAudio,e.crossOrigin)):console.warn(\"No video in cache for key: \"+t),this},changeSource:function(t,e,i,n,r){void 0===e&&(e=!0),void 0===i&&(i=!1),this.cacheKey!==t&&(this.load(t),e&&this.play(i,n,r))},getVideoKey:function(){return this.cacheKey},loadURL:function(t,e,i){void 0===e&&(e=!1);var n=this._device.getVideoURL(t);return n?(this.cacheKey=\"\",this.loadHandler(n.url,e,i)):console.warn(\"No supported video format found for \"+t),this},loadMediaStream:function(t,e,i){return this.loadHandler(null,e,i,t)},loadHandler:function(t,e,i,n){e||(e=!1);var r=this.video;if(r?(this.removeLoadEventHandlers(),this.stop()):((r=document.createElement(\"video\")).controls=!1,r.setAttribute(\"playsinline\",\"playsinline\"),r.setAttribute(\"preload\",\"auto\"),r.setAttribute(\"disablePictureInPicture\",\"true\")),e?(r.muted=!0,r.defaultMuted=!0,r.setAttribute(\"autoplay\",\"autoplay\")):(r.muted=!1,r.defaultMuted=!1,r.removeAttribute(\"autoplay\")),i?r.setAttribute(\"crossorigin\",i):r.removeAttribute(\"crossorigin\"),n)if(\"srcObject\"in r)try{r.srcObject=n}catch(t){if(\"TypeError\"!==t.name)throw t;r.src=URL.createObjectURL(n)}else r.src=URL.createObjectURL(n);else r.src=t;this.retry=0,this.video=r,this._playCalled=!1,r.load(),this.addLoadEventHandlers();var s=this.scene.sys.textures.get(this._key);return this.setTexture(s),this},requestVideoFrame:function(t,e){var i=this.video;if(i){var n=e.width,r=e.height,s=this.videoTexture,o=this.videoTextureSource,l=!s||o.source!==i;l?(this._codePaused=i.paused,this._codeMuted=i.muted,s?(o.source=i,o.width=n,o.height=r,s.get().setSize(n,r)):((s=this.scene.sys.textures.create(this._key,i,n,r)).add(\"__BASE\",0,0,0,n,r),this.setTexture(s),this.videoTexture=s,this.videoTextureSource=s.source[0],this.videoTextureSource.setFlipY(this.flipY),this.emit(a.VIDEO_TEXTURE,this,s)),this.setSizeToFrame(),this.updateDisplayOrigin()):o.update(),this.isStalled=!1,this.metadata=e;var h=e.mediaTime;l&&(this._lastUpdate=h,this.emit(a.VIDEO_CREATED,this,n,r),this.frameReady||(this.frameReady=!0,this.emit(a.VIDEO_PLAY,this))),this._playingMarker?h>=this._markerOut&&(i.loop?(i.currentTime=this._markerIn,this.emit(a.VIDEO_LOOP,this)):(this.stop(!1),this.emit(a.VIDEO_COMPLETE,this))):h-1&&i>e&&i=0&&!isNaN(i)&&i>e&&(this.markers[t]=[e,i]),this},playMarker:function(t,e){var i=this.markers[t];return i&&this.play(e,i[0],i[1]),this},removeMarker:function(t){return delete this.markers[t],this},snapshot:function(t,e){return void 0===t&&(t=this.width),void 0===e&&(e=this.height),this.snapshotArea(0,0,this.width,this.height,t,e)},snapshotArea:function(t,e,i,n,r,s){void 0===t&&(t=0),void 0===e&&(e=0),void 0===i&&(i=this.width),void 0===n&&(n=this.height),void 0===r&&(r=i),void 0===s&&(s=n);var a=this.video,o=this.snapshotTexture;return o?(o.setSize(r,s),a&&o.context.drawImage(a,t,e,i,n,0,0,r,s)):(o=this.scene.sys.textures.createCanvas(c(),r,s),this.snapshotTexture=o,a&&o.context.drawImage(a,t,e,i,n,0,0,r,s)),o.update()},saveSnapshotTexture:function(t){return this.snapshotTexture?this.scene.sys.textures.renameTexture(this.snapshotTexture.key,t):this.snapshotTexture=this.scene.sys.textures.createCanvas(t,this.width,this.height),this.snapshotTexture},playSuccess:function(){if(this._playCalled){this.addEventHandlers(),this._codePaused=!1,this.touchLocked&&(this.touchLocked=!1,this.emit(a.VIDEO_UNLOCKED,this));var t=this.scene.sys.sound;t&&t.mute&&this.setMute(!0),this._markerIn>-1&&(this.video.currentTime=this._markerIn)}},playError:function(t){var e=t.name;\"NotAllowedError\"===e?(this.touchLocked=!0,this.playWhenUnlocked=!0,this.failedPlayAttempts=1,this.emit(a.VIDEO_LOCKED,this)):\"NotSupportedError\"===e?(this.stop(!1),this.emit(a.VIDEO_UNSUPPORTED,this,t)):(this.stop(!1),this.emit(a.VIDEO_ERROR,this,t))},legacyPlayHandler:function(){var t=this.video;t&&(this.playSuccess(),t.removeEventListener(\"playing\",this._callbacks.legacy))},playingHandler:function(){this.isStalled=!1,this.emit(a.VIDEO_PLAYING,this)},loadErrorHandler:function(t){this.stop(!1),this.emit(a.VIDEO_ERROR,this,t)},metadataHandler:function(t){this.emit(a.VIDEO_METADATA,this,t)},setSizeToFrame:function(t){t||(t=this.frame),this.width=t.realWidth,this.height=t.realHeight,1!==this.scaleX&&(this.scaleX=this.displayWidth/this.width),1!==this.scaleY&&(this.scaleY=this.displayHeight/this.height);var e=this.input;return e&&!e.customHitArea&&(e.hitArea.width=this.width,e.hitArea.height=this.height),this},stalledHandler:function(t){this.isStalled=!0,this.emit(a.VIDEO_STALLED,this,t)},completeHandler:function(){this._playCalled=!1,this.emit(a.VIDEO_COMPLETE,this)},preUpdate:function(t,e){this.video&&this._playCalled&&this.touchLocked&&this.playWhenUnlocked&&(this.retry+=e,this.retry>=this.retryInterval&&(this.createPlayPromise(!1),this.retry=0))},seekTo:function(t){var e=this.video;if(e){var i=e.duration;if(i!==1/0&&!isNaN(i)){var n=i*t;this.setCurrentTime(n)}}return this},getCurrentTime:function(){return this.video?this.video.currentTime:0},setCurrentTime:function(t){var e=this.video;if(e){if(\"string\"==typeof t){var i=t[0],n=parseFloat(t.substr(1));\"+\"===i?t=e.currentTime+n:\"-\"===i&&(t=e.currentTime-n)}e.currentTime=t}return this},seekingHandler:function(){this.isSeeking=!0,this.emit(a.VIDEO_SEEKING,this)},seekedHandler:function(){this.isSeeking=!1,this.emit(a.VIDEO_SEEKED,this)},getProgress:function(){var t=this.video;if(t){var e=t.duration;if(e!==1/0&&!isNaN(e))return t.currentTime/e}return-1},getDuration:function(){return this.video?this.video.duration:0},setMute:function(t){void 0===t&&(t=!0),this._codeMuted=t;var e=this.video;return e&&(e.muted=!!this._systemMuted||t),this},isMuted:function(){return this._codeMuted},globalMute:function(t,e){this._systemMuted=e;var i=this.video;i&&(i.muted=!!this._codeMuted||e)},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(t){void 0===t&&(t=!0);var e=this.video;return this._codePaused=t,e&&!e.ended&&(t?e.paused||(this.removeEventHandlers(),e.pause()):t||(this._playCalled?e.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(t){return void 0===t&&(t=1),this.video&&(this.video.volume=n(t,0,1)),this},getPlaybackRate:function(){return this.video?this.video.playbackRate:1},setPlaybackRate:function(t){return this.video&&(this.video.playbackRate=t),this},getLoop:function(){return!!this.video&&this.video.loop},setLoop:function(t){return void 0===t&&(t=!0),this.video&&(this.video.loop=t),this},isPlaying:function(){return!!this.video&&!(this.video.paused||this.video.ended)},isPaused:function(){return this.video&&this._playCalled&&this.video.paused||this._codePaused||this._systemPaused},saveTexture:function(t,e){return void 0===e&&(e=!1),this.videoTexture&&(this.scene.sys.textures.renameTexture(this._key,t),this.videoTextureSource.setFlipY(e)),this._key=t,this.flipY=e,!!this.videoTexture},stop:function(t){void 0===t&&(t=!0);var e=this.video;return e&&(this.removeEventHandlers(),e.cancelVideoFrameCallback(this._rfvCallbackId),e.pause()),this.retry=0,this._playCalled=!1,t&&this.emit(a.VIDEO_STOP,this),this},removeVideoElement:function(){var t=this.video;if(t){for(t.parentNode&&t.parentNode.removeChild(t);t.hasChildNodes();)t.removeChild(t.firstChild);t.removeAttribute(\"autoplay\"),t.removeAttribute(\"src\"),this.video=null}},preDestroy:function(){this.stop(!1),this.removeLoadEventHandlers(),this.removeVideoElement();var t=this.scene.sys.game.events;t.off(o.PAUSE,this.globalPause,this),t.off(o.RESUME,this.globalResume,this);var e=this.scene.sys.sound;e&&e.off(u.GLOBAL_MUTE,this.globalMute,this)}});t.exports=f},58352:t=>{t.exports=function(t,e,i,n){e.videoTexture&&(i.addToRenderList(e),t.batchSprite(e,e.frame,i,n))}},11511:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(25305),r=i(44603),s=i(23568),a=i(18471);r.register(\"video\",(function(t,e){void 0===t&&(t={});var i=s(t,\"key\",null),r=new a(this.scene,0,0,i);return void 0!==e&&(t.add=e),n(this.scene,r,t),r}))},89025:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(18471);i(39429).register(\"video\",(function(t,e,i){return this.displayList.add(new n(this.scene,t,e,i))}))},10247:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(29747),r=n,s=n;r=i(29849),s=i(58352),t.exports={renderWebGL:r,renderCanvas:s}},29849:t=>{t.exports=function(t,e,i,n){e.videoTexture&&(i.addToRenderList(e),e.pipeline.batchSprite(e,i,n))}},41481:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(10312),r=i(96503),s=i(87902),a=i(83419),o=i(31401),l=i(95643),h=i(87841),u=i(37303),c=new a({Extends:l,Mixins:[o.Depth,o.GetBounds,o.Origin,o.Transform,o.ScrollFactor,o.Visible],initialize:function(t,e,i,r,s){void 0===r&&(r=1),void 0===s&&(s=r),l.call(this,t,\"Zone\"),this.setPosition(e,i),this.width=r,this.height=s,this.blendMode=n.NORMAL,this.updateDisplayOrigin()},displayWidth:{get:function(){return this.scaleX*this.width},set:function(t){this.scaleX=t/this.width}},displayHeight:{get:function(){return this.scaleY*this.height},set:function(t){this.scaleY=t/this.height}},setSize:function(t,e,i){void 0===i&&(i=!0),this.width=t,this.height=e,this.updateDisplayOrigin();var n=this.input;return i&&n&&!n.customHitArea&&(n.hitArea.width=t,n.hitArea.height=e),this},setDisplaySize:function(t,e){return this.displayWidth=t,this.displayHeight=e,this},setCircleDropZone:function(t){return this.setDropZone(new r(0,0,t),s)},setRectangleDropZone:function(t,e){return this.setDropZone(new h(0,0,t,e),u)},setDropZone:function(t,e){return this.input||this.setInteractive(t,e,!0),this},setAlpha:function(){},setBlendMode:function(){},renderCanvas:function(t,e,i){i.addToRenderList(e)},renderWebGL:function(t,e,i){i.addToRenderList(e)}});t.exports=c},95261:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(44603),r=i(23568),s=i(41481);n.register(\"zone\",(function(t){var e=r(t,\"x\",0),i=r(t,\"y\",0),n=r(t,\"width\",1),a=r(t,\"height\",n);return new s(this.scene,e,i,n,a)}))},84175:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(41481);i(39429).register(\"zone\",(function(t,e,i,r){return this.displayList.add(new n(this.scene,t,e,i,r))}))},95166:t=>{t.exports=function(t){return t.radius>0?Math.PI*t.radius*t.radius:0}},96503:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(83419),r=i(87902),s=i(26241),a=i(79124),o=i(23777),l=i(28176),h=new n({initialize:function(t,e,i){void 0===t&&(t=0),void 0===e&&(e=0),void 0===i&&(i=0),this.type=o.CIRCLE,this.x=t,this.y=e,this._radius=i,this._diameter=2*i},contains:function(t,e){return r(this,t,e)},getPoint:function(t,e){return s(this,t,e)},getPoints:function(t,e,i){return a(this,t,e,i)},getRandomPoint:function(t){return l(this,t)},setTo:function(t,e,i){return this.x=t,this.y=e,this._radius=i,this._diameter=2*i,this},setEmpty:function(){return this._radius=0,this._diameter=0,this},setPosition:function(t,e){return void 0===e&&(e=t),this.x=t,this.y=e,this},isEmpty:function(){return this._radius<=0},radius:{get:function(){return this._radius},set:function(t){this._radius=t,this._diameter=2*t}},diameter:{get:function(){return this._diameter},set:function(t){this._diameter=t,this._radius=.5*t}},left:{get:function(){return this.x-this._radius},set:function(t){this.x=t+this._radius}},right:{get:function(){return this.x+this._radius},set:function(t){this.x=t-this._radius}},top:{get:function(){return this.y-this._radius},set:function(t){this.y=t+this._radius}},bottom:{get:function(){return this.y+this._radius},set:function(t){this.y=t-this._radius}}});t.exports=h},71562:t=>{t.exports=function(t){return Math.PI*t.radius*2}},92110:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(2141);t.exports=function(t,e,i){return void 0===i&&(i=new n),i.x=t.x+t.radius*Math.cos(e),i.y=t.y+t.radius*Math.sin(e),i}},42250:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(96503);t.exports=function(t){return new n(t.x,t.y,t.radius)}},87902:t=>{t.exports=function(t,e,i){return t.radius>0&&e>=t.left&&e<=t.right&&i>=t.top&&i<=t.bottom&&(t.x-e)*(t.x-e)+(t.y-i)*(t.y-i)<=t.radius*t.radius}},5698:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(87902);t.exports=function(t,e){return n(t,e.x,e.y)}},70588:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(87902);t.exports=function(t,e){return n(t,e.x,e.y)&&n(t,e.right,e.y)&&n(t,e.x,e.bottom)&&n(t,e.right,e.bottom)}},26394:t=>{t.exports=function(t,e){return e.setTo(t.x,t.y,t.radius)}},76278:t=>{t.exports=function(t,e){return t.x===e.x&&t.y===e.y&&t.radius===e.radius}},2074:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(87841);t.exports=function(t,e){return void 0===e&&(e=new n),e.x=t.left,e.y=t.top,e.width=t.diameter,e.height=t.diameter,e}},26241:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(92110),r=i(62945),s=i(36383),a=i(2141);t.exports=function(t,e,i){void 0===i&&(i=new a);var o=r(e,0,s.PI2);return n(t,o,i)}},79124:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(71562),r=i(92110),s=i(62945),a=i(36383);t.exports=function(t,e,i,o){void 0===o&&(o=[]),!e&&i>0&&(e=n(t)/i);for(var l=0;l{t.exports=function(t,e,i){return t.x+=e,t.y+=i,t}},39212:t=>{t.exports=function(t,e){return t.x+=e.x,t.y+=e.y,t}},28176:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(2141);t.exports=function(t,e){void 0===e&&(e=new n);var i=2*Math.PI*Math.random(),r=Math.random()+Math.random(),s=r>1?2-r:r,a=s*Math.cos(i),o=s*Math.sin(i);return e.x=t.x+a*t.radius,e.y=t.y+o*t.radius,e}},88911:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(96503);n.Area=i(95166),n.Circumference=i(71562),n.CircumferencePoint=i(92110),n.Clone=i(42250),n.Contains=i(87902),n.ContainsPoint=i(5698),n.ContainsRect=i(70588),n.CopyFrom=i(26394),n.Equals=i(76278),n.GetBounds=i(2074),n.GetPoint=i(26241),n.GetPoints=i(79124),n.Offset=i(50884),n.OffsetPoint=i(39212),n.Random=i(28176),t.exports=n},23777:t=>{t.exports={CIRCLE:0,ELLIPSE:1,LINE:2,POINT:3,POLYGON:4,RECTANGLE:5,TRIANGLE:6}},78874:t=>{t.exports=function(t){return t.isEmpty()?0:t.getMajorRadius()*t.getMinorRadius()*Math.PI}},92990:t=>{t.exports=function(t){var e=t.width/2,i=t.height/2,n=Math.pow(e-i,2)/Math.pow(e+i,2);return Math.PI*(e+i)*(1+3*n/(10+Math.sqrt(4-3*n)))}},79522:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(2141);t.exports=function(t,e,i){void 0===i&&(i=new n);var r=t.width/2,s=t.height/2;return i.x=t.x+r*Math.cos(e),i.y=t.y+s*Math.sin(e),i}},58102:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(8497);t.exports=function(t){return new n(t.x,t.y,t.width,t.height)}},81154:t=>{t.exports=function(t,e,i){if(t.width<=0||t.height<=0)return!1;var n=(e-t.x)/t.width,r=(i-t.y)/t.height;return(n*=n)+(r*=r)<.25}},46662:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(81154);t.exports=function(t,e){return n(t,e.x,e.y)}},1632:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(81154);t.exports=function(t,e){return n(t,e.x,e.y)&&n(t,e.right,e.y)&&n(t,e.x,e.bottom)&&n(t,e.right,e.bottom)}},65534:t=>{t.exports=function(t,e){return e.setTo(t.x,t.y,t.width,t.height)}},8497:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(83419),r=i(81154),s=i(90549),a=i(48320),o=i(23777),l=i(24820),h=new n({initialize:function(t,e,i,n){void 0===t&&(t=0),void 0===e&&(e=0),void 0===i&&(i=0),void 0===n&&(n=0),this.type=o.ELLIPSE,this.x=t,this.y=e,this.width=i,this.height=n},contains:function(t,e){return r(this,t,e)},getPoint:function(t,e){return s(this,t,e)},getPoints:function(t,e,i){return a(this,t,e,i)},getRandomPoint:function(t){return l(this,t)},setTo:function(t,e,i,n){return this.x=t,this.y=e,this.width=i,this.height=n,this},setEmpty:function(){return this.width=0,this.height=0,this},setPosition:function(t,e){return void 0===e&&(e=t),this.x=t,this.y=e,this},setSize:function(t,e){return void 0===e&&(e=t),this.width=t,this.height=e,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(t){this.x=t+this.width/2}},right:{get:function(){return this.x+this.width/2},set:function(t){this.x=t-this.width/2}},top:{get:function(){return this.y-this.height/2},set:function(t){this.y=t+this.height/2}},bottom:{get:function(){return this.y+this.height/2},set:function(t){this.y=t-this.height/2}}});t.exports=h},36146:t=>{t.exports=function(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}},23694:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(87841);t.exports=function(t,e){return void 0===e&&(e=new n),e.x=t.left,e.y=t.top,e.width=t.width,e.height=t.height,e}},90549:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(79522),r=i(62945),s=i(36383),a=i(2141);t.exports=function(t,e,i){void 0===i&&(i=new a);var o=r(e,0,s.PI2);return n(t,o,i)}},48320:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(92990),r=i(79522),s=i(62945),a=i(36383);t.exports=function(t,e,i,o){void 0===o&&(o=[]),!e&&i>0&&(e=n(t)/i);for(var l=0;l{t.exports=function(t,e,i){return t.x+=e,t.y+=i,t}},44808:t=>{t.exports=function(t,e){return t.x+=e.x,t.y+=e.y,t}},24820:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(2141);t.exports=function(t,e){void 0===e&&(e=new n);var i=Math.random()*Math.PI*2,r=Math.sqrt(Math.random());return e.x=t.x+r*Math.cos(i)*t.width/2,e.y=t.y+r*Math.sin(i)*t.height/2,e}},49203:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(8497);n.Area=i(78874),n.Circumference=i(92990),n.CircumferencePoint=i(79522),n.Clone=i(58102),n.Contains=i(81154),n.ContainsPoint=i(46662),n.ContainsRect=i(1632),n.CopyFrom=i(65534),n.Equals=i(36146),n.GetBounds=i(23694),n.GetPoint=i(90549),n.GetPoints=i(48320),n.Offset=i(73424),n.OffsetPoint=i(44808),n.Random=i(24820),t.exports=n},55738:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(23777),r=i(79291),s={Circle:i(88911),Ellipse:i(49203),Intersects:i(91865),Line:i(2529),Mesh:i(73090),Point:i(43711),Polygon:i(58423),Rectangle:i(93232),Triangle:i(84435)};s=r(!1,s,n),t.exports=s},2044:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(20339);t.exports=function(t,e){return n(t.x,t.y,e.x,e.y)<=t.radius+e.radius}},81491:t=>{t.exports=function(t,e){var i=e.width/2,n=e.height/2,r=Math.abs(t.x-e.x-i),s=Math.abs(t.y-e.y-n),a=i+t.radius,o=n+t.radius;if(r>a||s>o)return!1;if(r<=i||s<=n)return!0;var l=r-i,h=s-n;return l*l+h*h<=t.radius*t.radius}},63376:(t,e,i)=>{\n/**\n * @author Florian Vazelle\n * @author Geoffrey Glaive\n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(2141),r=i(2044);t.exports=function(t,e,i){if(void 0===i&&(i=[]),r(t,e)){var s,a,o,l,h=t.x,u=t.y,c=t.radius,d=e.x,f=e.y,p=e.radius;if(u===f)0==(o=(a=-2*f)*a-4*(s=1)*(d*d+(l=(p*p-c*c-d*d+h*h)/(2*(h-d)))*l-2*d*l+f*f-p*p))?i.push(new n(l,-a/(2*s))):o>0&&(i.push(new n(l,(-a+Math.sqrt(o))/(2*s))),i.push(new n(l,(-a-Math.sqrt(o))/(2*s))));else{var m=(h-d)/(u-f),g=(p*p-c*c-d*d+h*h-f*f+u*u)/(2*(u-f));0==(o=(a=2*u*m-2*g*m-2*h)*a-4*(s=m*m+1)*(h*h+u*u+g*g-c*c-2*u*g))?(l=-a/(2*s),i.push(new n(l,g-l*m))):o>0&&(l=(-a+Math.sqrt(o))/(2*s),i.push(new n(l,g-l*m)),l=(-a-Math.sqrt(o))/(2*s),i.push(new n(l,g-l*m)))}}return i}},97439:(t,e,i)=>{\n/**\n * @author Florian Vazelle\n * @author Geoffrey Glaive\n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(4042),r=i(81491);t.exports=function(t,e,i){if(void 0===i&&(i=[]),r(t,e)){var s=e.getLineA(),a=e.getLineB(),o=e.getLineC(),l=e.getLineD();n(s,t,i),n(a,t,i),n(o,t,i),n(l,t,i)}return i}},4042:(t,e,i)=>{\n/**\n * @author Florian Vazelle\n * @author Geoffrey Glaive\n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(2141),r=i(80462);t.exports=function(t,e,i){if(void 0===i&&(i=[]),r(t,e)){var s,a,o=t.x1,l=t.y1,h=t.x2,u=t.y2,c=e.x,d=e.y,f=e.radius,p=h-o,m=u-l,g=o-c,v=l-d,y=p*p+m*m,b=2*(p*g+m*v),x=b*b-4*y*(g*g+v*v-f*f);if(0===x){var w=-b/(2*y);s=o+w*p,a=l+w*m,w>=0&&w<=1&&i.push(new n(s,a))}else if(x>0){var T=(-b-Math.sqrt(x))/(2*y);s=o+T*p,a=l+T*m,T>=0&&T<=1&&i.push(new n(s,a));var S=(-b+Math.sqrt(x))/(2*y);s=o+S*p,a=l+S*m,S>=0&&S<=1&&i.push(new n(s,a))}}return i}},36100:(t,e,i)=>{\n/**\n * @author Richard Davey\n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(25836);t.exports=function(t,e,i,r){void 0===i&&(i=!1);var s,a,o,l=t.x1,h=t.y1,u=t.x2,c=t.y2,d=e.x1,f=e.y1,p=u-l,m=c-h,g=e.x2-d,v=e.y2-f,y=p*v-m*g;if(0===y)return null;if(i){if(s=(p*(f-h)+m*(l-d))/(g*m-v*p),0!==p)a=(d+g*s-l)/p;else{if(0===m)return null;a=(f+v*s-h)/m}if(a<0||s<0||s>1)return null;o=a}else{if(a=((h-f)*p-(l-d)*m)/y,(s=((d-l)*v-(f-h)*g)/y)<0||s>1||a<0||a>1)return null;o=s}return void 0===r&&(r=new n),r.set(l+p*o,h+m*o,o)}},3073:(t,e,i)=>{\n/**\n * @author Richard Davey\n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(36100),r=i(23031),s=i(25836),a=new r,o=new s;t.exports=function(t,e,i,r){void 0===i&&(i=!1),void 0===r&&(r=new s);var l=!1;r.set(),o.set();for(var h=e[e.length-1],u=0;u{\n/**\n * @author Richard Davey\n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(25836),r=i(61369),s=i(3073),a=new n;t.exports=function(t,e,i,n){void 0===n&&(n=new r),Array.isArray(e)||(e=[e]);var o=!1;n.set(),a.set();for(var l=0;l{\n/**\n * @author Florian Vazelle\n * @author Geoffrey Glaive\n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(2141),r=i(76112),s=i(92773);t.exports=function(t,e,i){if(void 0===i&&(i=[]),s(t,e))for(var a=e.getLineA(),o=e.getLineB(),l=e.getLineC(),h=e.getLineD(),u=[new n,new n,new n,new n],c=[r(a,t,u[0]),r(o,t,u[1]),r(l,t,u[2]),r(h,t,u[3])],d=0;d<4;d++)c[d]&&i.push(u[d]);return i}},71147:(t,e,i)=>{\n/**\n * @author Richard Davey\n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(61369),r=i(56362),s=new(i(23031));function a(t,e,i,a,o){var l=Math.cos(t),h=Math.sin(t);s.setTo(e,i,e+l,i+h);var u=r(s,a,!0);u&&o.push(new n(u.x,u.y,t,u.w))}function o(t,e){return t.z-e.z}t.exports=function(t,e,i){Array.isArray(i)||(i=[i]);for(var n=[],r=[],s=0;s{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(87841),r=i(59996);t.exports=function(t,e,i){return void 0===i&&(i=new n),r(t,e)&&(i.x=Math.max(t.x,e.x),i.y=Math.max(t.y,e.y),i.width=Math.min(t.right,e.right)-i.x,i.height=Math.min(t.bottom,e.bottom)-i.y),i}},52784:(t,e,i)=>{\n/**\n * @author Florian Vazelle\n * @author Geoffrey Glaive\n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(60646),r=i(59996);t.exports=function(t,e,i){if(void 0===i&&(i=[]),r(t,e)){var s=t.getLineA(),a=t.getLineB(),o=t.getLineC(),l=t.getLineD();n(s,e,i),n(a,e,i),n(o,e,i),n(l,e,i)}return i}},26341:(t,e,i)=>{\n/**\n * @author Florian Vazelle\n * @author Geoffrey Glaive\n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(89265),r=i(60646);t.exports=function(t,e,i){if(void 0===i&&(i=[]),n(t,e)){var s=e.getLineA(),a=e.getLineB(),o=e.getLineC();r(s,t,i),r(a,t,i),r(o,t,i)}return i}},38720:(t,e,i)=>{\n/**\n * @author Florian Vazelle\n * @author Geoffrey Glaive\n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(4042),r=i(67636);t.exports=function(t,e,i){if(void 0===i&&(i=[]),r(t,e)){var s=t.getLineA(),a=t.getLineB(),o=t.getLineC();n(s,e,i),n(a,e,i),n(o,e,i)}return i}},13882:(t,e,i)=>{\n/**\n * @author Florian Vazelle\n * @author Geoffrey Glaive\n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(2141),r=i(2822),s=i(76112);t.exports=function(t,e,i){if(void 0===i&&(i=[]),r(t,e))for(var a=t.getLineA(),o=t.getLineB(),l=t.getLineC(),h=[new n,new n,new n],u=[s(a,e,h[0]),s(o,e,h[1]),s(l,e,h[2])],c=0;c<3;c++)u[c]&&i.push(h[c]);return i}},75636:(t,e,i)=>{\n/**\n * @author Florian Vazelle\n * @author Geoffrey Glaive\n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(82944),r=i(13882);t.exports=function(t,e,i){if(void 0===i&&(i=[]),n(t,e)){var s=e.getLineA(),a=e.getLineB(),o=e.getLineC();r(t,s,i),r(t,a,i),r(t,o,i)}return i}},80462:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(87902),r=new(i(2141));t.exports=function(t,e,i){if(void 0===i&&(i=r),n(e,t.x1,t.y1))return i.x=t.x1,i.y=t.y1,!0;if(n(e,t.x2,t.y2))return i.x=t.x2,i.y=t.y2,!0;var s=t.x2-t.x1,a=t.y2-t.y1,o=e.x-t.x1,l=e.y-t.y1,h=s*s+a*a,u=s,c=a;if(h>0){var d=(o*s+l*a)/h;u*=d,c*=d}return i.x=t.x1+u,i.y=t.y1+c,u*u+c*c<=h&&u*s+c*a>=0&&n(e,i.x,i.y)}},76112:t=>{t.exports=function(t,e,i){var n=t.x1,r=t.y1,s=t.x2,a=t.y2,o=e.x1,l=e.y1,h=e.x2,u=e.y2;if(n===s&&r===a||o===h&&l===u)return!1;var c=(u-l)*(s-n)-(h-o)*(a-r);if(0===c)return!1;var d=((h-o)*(r-l)-(u-l)*(n-o))/c,f=((s-n)*(r-l)-(a-r)*(n-o))/c;return!(d<0||d>1||f<0||f>1||(i&&(i.x=n+d*(s-n),i.y=r+d*(a-r)),0))}},92773:t=>{t.exports=function(t,e){var i=t.x1,n=t.y1,r=t.x2,s=t.y2,a=e.x,o=e.y,l=e.right,h=e.bottom,u=0;if(i>=a&&i<=l&&n>=o&&n<=h||r>=a&&r<=l&&s>=o&&s<=h)return!0;if(i=a){if((u=n+(s-n)*(a-i)/(r-i))>o&&u<=h)return!0}else if(i>l&&r<=l&&(u=n+(s-n)*(l-i)/(r-i))>=o&&u<=h)return!0;if(n=o){if((u=i+(r-i)*(o-n)/(s-n))>=a&&u<=l)return!0}else if(n>h&&s<=h&&(u=i+(r-i)*(h-n)/(s-n))>=a&&u<=l)return!0;return!1}},16204:t=>{t.exports=function(t,e,i){void 0===i&&(i=1);var n=e.x1,r=e.y1,s=e.x2,a=e.y2,o=t.x,l=t.y,h=(s-n)*(s-n)+(a-r)*(a-r);if(0===h)return!1;var u=((o-n)*(s-n)+(l-r)*(a-r))/h;if(u<0)return Math.sqrt((n-o)*(n-o)+(r-l)*(r-l))<=i;if(u>=0&&u<=1){var c=((r-l)*(s-n)-(n-o)*(a-r))/h;return Math.abs(c)*Math.sqrt(h)<=i}return Math.sqrt((s-o)*(s-o)+(a-l)*(a-l))<=i}},14199:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(16204);t.exports=function(t,e){if(!n(t,e))return!1;var i=Math.min(e.x1,e.x2),r=Math.max(e.x1,e.x2),s=Math.min(e.y1,e.y2),a=Math.max(e.y1,e.y2);return t.x>=i&&t.x<=r&&t.y>=s&&t.y<=a}},59996:t=>{t.exports=function(t,e){return!(t.width<=0||t.height<=0||e.width<=0||e.height<=0||t.righte.right||t.y>e.bottom)}},89265:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(76112),r=i(37303),s=i(48653),a=i(77493);t.exports=function(t,e){if(e.left>t.right||e.rightt.bottom||e.bottom0}},84411:t=>{t.exports=function(t,e,i,n,r,s){return void 0===s&&(s=0),!(e>t.right+s||it.bottom+s||r{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(80462),r=i(10690);t.exports=function(t,e){return!(t.left>e.right||t.righte.bottom||t.bottom{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(76112);t.exports=function(t,e){return!!(t.contains(e.x1,e.y1)||t.contains(e.x2,e.y2)||n(t.getLineA(),e)||n(t.getLineB(),e)||n(t.getLineC(),e))}},82944:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(48653),r=i(71694),s=i(76112);t.exports=function(t,e){if(t.left>e.right||t.righte.bottom||t.bottom0||(c=r(e),(d=n(t,c,!0)).length>0)}},91865:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports={CircleToCircle:i(2044),CircleToRectangle:i(81491),GetCircleToCircle:i(63376),GetCircleToRectangle:i(97439),GetLineToCircle:i(4042),GetLineToLine:i(36100),GetLineToPoints:i(3073),GetLineToPolygon:i(56362),GetLineToRectangle:i(60646),GetRaysFromPointToPolygon:i(71147),GetRectangleIntersection:i(68389),GetRectangleToRectangle:i(52784),GetRectangleToTriangle:i(26341),GetTriangleToCircle:i(38720),GetTriangleToLine:i(13882),GetTriangleToTriangle:i(75636),LineToCircle:i(80462),LineToLine:i(76112),LineToRectangle:i(92773),PointToLine:i(16204),PointToLineSegment:i(14199),RectangleToRectangle:i(59996),RectangleToTriangle:i(89265),RectangleToValues:i(84411),TriangleToCircle:i(67636),TriangleToLine:i(2822),TriangleToTriangle:i(82944)}},91938:t=>{t.exports=function(t){return Math.atan2(t.y2-t.y1,t.x2-t.x1)}},84993:t=>{t.exports=function(t,e,i){void 0===e&&(e=1),void 0===i&&(i=[]);var n=Math.round(t.x1),r=Math.round(t.y1),s=Math.round(t.x2),a=Math.round(t.y2),o=Math.abs(s-n),l=Math.abs(a-r),h=n-l&&(c-=l,n+=h),f{t.exports=function(t,e,i){var n=e-(t.x1+t.x2)/2,r=i-(t.y1+t.y2)/2;return t.x1+=n,t.y1+=r,t.x2+=n,t.y2+=r,t}},31116:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(23031);t.exports=function(t){return new n(t.x1,t.y1,t.x2,t.y2)}},59944:t=>{t.exports=function(t,e){return e.setTo(t.x1,t.y1,t.x2,t.y2)}},59220:t=>{t.exports=function(t,e){return t.x1===e.x1&&t.y1===e.y1&&t.x2===e.x2&&t.y2===e.y2}},78177:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(35001);t.exports=function(t,e,i){void 0===i&&(i=e);var r=n(t),s=t.x2-t.x1,a=t.y2-t.y1;return e&&(t.x1=t.x1-s/r*e,t.y1=t.y1-a/r*e),i&&(t.x2=t.x2+s/r*i,t.y2=t.y2+a/r*i),t}},26708:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(52816),r=i(6113),s=i(2141);t.exports=function(t,e,i,a,o){void 0===a&&(a=0),void 0===o&&(o=[]);var l,h,u=[],c=t.x1,d=t.y1,f=t.x2-c,p=t.y2-d,m=r(e,o),g=i-1;for(l=0;l0){var v=u[0],y=[v];for(l=1;l=a&&(y.push(b),v=b)}var x=u[u.length-1];return n(v,x){\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(2141);t.exports=function(t,e){return void 0===e&&(e=new n),e.x=(t.x1+t.x2)/2,e.y=(t.y1+t.y2)/2,e}},99569:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @author Florian Mertens\n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(2141);t.exports=function(t,e,i){void 0===i&&(i=new n);var r=t.x1,s=t.y1,a=t.x2,o=t.y2,l=(a-r)*(a-r)+(o-s)*(o-s);if(0===l)return i;var h=((e.x-r)*(a-r)+(e.y-s)*(o-s))/l;return i.x=r+h*(a-r),i.y=s+h*(o-s),i}},34638:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(36383),r=i(91938),s=i(2141);t.exports=function(t,e){void 0===e&&(e=new s);var i=r(t)-n.TAU;return e.x=Math.cos(i),e.y=Math.sin(i),e}},13151:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(2141);t.exports=function(t,e,i){return void 0===i&&(i=new n),i.x=t.x1+(t.x2-t.x1)*e,i.y=t.y1+(t.y2-t.y1)*e,i}},15258:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(35001),r=i(2141);t.exports=function(t,e,i,s){void 0===s&&(s=[]),!e&&i>0&&(e=n(t)/i);for(var a=t.x1,o=t.y1,l=t.x2,h=t.y2,u=0;u{t.exports=function(t,e){var i=t.x1,n=t.y1,r=t.x2,s=t.y2,a=(r-i)*(r-i)+(s-n)*(s-n);if(0===a)return!1;var o=((n-e.y)*(r-i)-(i-e.x)*(s-n))/a;return Math.abs(o)*Math.sqrt(a)}},98770:t=>{t.exports=function(t){return Math.abs(t.y1-t.y2)}},35001:t=>{t.exports=function(t){return Math.sqrt((t.x2-t.x1)*(t.x2-t.x1)+(t.y2-t.y1)*(t.y2-t.y1))}},23031:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(83419),r=i(13151),s=i(15258),a=i(23777),o=i(65822),l=i(26099),h=new n({initialize:function(t,e,i,n){void 0===t&&(t=0),void 0===e&&(e=0),void 0===i&&(i=0),void 0===n&&(n=0),this.type=a.LINE,this.x1=t,this.y1=e,this.x2=i,this.y2=n},getPoint:function(t,e){return r(this,t,e)},getPoints:function(t,e,i){return s(this,t,e,i)},getRandomPoint:function(t){return o(this,t)},setTo:function(t,e,i,n){return void 0===t&&(t=0),void 0===e&&(e=0),void 0===i&&(i=0),void 0===n&&(n=0),this.x1=t,this.y1=e,this.x2=i,this.y2=n,this},setFromObjects:function(t,e){return this.x1=t.x,this.y1=t.y,this.x2=e.x,this.y2=e.y,this},getPointA:function(t){return void 0===t&&(t=new l),t.set(this.x1,this.y1),t},getPointB:function(t){return void 0===t&&(t=new l),t.set(this.x2,this.y2),t},left:{get:function(){return Math.min(this.x1,this.x2)},set:function(t){this.x1<=this.x2?this.x1=t:this.x2=t}},right:{get:function(){return Math.max(this.x1,this.x2)},set:function(t){this.x1>this.x2?this.x1=t:this.x2=t}},top:{get:function(){return Math.min(this.y1,this.y2)},set:function(t){this.y1<=this.y2?this.y1=t:this.y2=t}},bottom:{get:function(){return Math.max(this.y1,this.y2)},set:function(t){this.y1>this.y2?this.y1=t:this.y2=t}}});t.exports=h},64795:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(36383),r=i(15994),s=i(91938);t.exports=function(t){var e=s(t)-n.TAU;return r(e,-Math.PI,Math.PI)}},52616:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(36383),r=i(91938);t.exports=function(t){return Math.cos(r(t)-n.TAU)}},87231:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(36383),r=i(91938);t.exports=function(t){return Math.sin(r(t)-n.TAU)}},89662:t=>{t.exports=function(t,e,i){return t.x1+=e,t.y1+=i,t.x2+=e,t.y2+=i,t}},71165:t=>{t.exports=function(t){return-(t.x2-t.x1)/(t.y2-t.y1)}},65822:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(2141);t.exports=function(t,e){void 0===e&&(e=new n);var i=Math.random();return e.x=t.x1+i*(t.x2-t.x1),e.y=t.y1+i*(t.y2-t.y1),e}},69777:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(91938),r=i(64795);t.exports=function(t,e){return 2*r(e)-Math.PI-n(t)}},39706:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(64400);t.exports=function(t,e){var i=(t.x1+t.x2)/2,r=(t.y1+t.y2)/2;return n(t,i,r,e)}},82585:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(64400);t.exports=function(t,e,i){return n(t,e.x,e.y,i)}},64400:t=>{t.exports=function(t,e,i,n){var r=Math.cos(n),s=Math.sin(n),a=t.x1-e,o=t.y1-i;return t.x1=a*r-o*s+e,t.y1=a*s+o*r+i,a=t.x2-e,o=t.y2-i,t.x2=a*r-o*s+e,t.y2=a*s+o*r+i,t}},62377:t=>{t.exports=function(t,e,i,n,r){return t.x1=e,t.y1=i,t.x2=e+Math.cos(n)*r,t.y2=i+Math.sin(n)*r,t}},71366:t=>{t.exports=function(t){return(t.y2-t.y1)/(t.x2-t.x1)}},10809:t=>{t.exports=function(t){return Math.abs(t.x1-t.x2)}},2529:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(23031);n.Angle=i(91938),n.BresenhamPoints=i(84993),n.CenterOn=i(36469),n.Clone=i(31116),n.CopyFrom=i(59944),n.Equals=i(59220),n.Extend=i(78177),n.GetEasedPoints=i(26708),n.GetMidPoint=i(32125),n.GetNearestPoint=i(99569),n.GetNormal=i(34638),n.GetPoint=i(13151),n.GetPoints=i(15258),n.GetShortestDistance=i(26408),n.Height=i(98770),n.Length=i(35001),n.NormalAngle=i(64795),n.NormalX=i(52616),n.NormalY=i(87231),n.Offset=i(89662),n.PerpSlope=i(71165),n.Random=i(65822),n.ReflectAngle=i(69777),n.Rotate=i(39706),n.RotateAroundPoint=i(82585),n.RotateAroundXY=i(64400),n.SetToAngle=i(62377),n.Slope=i(71366),n.Width=i(10809),t.exports=n},83997:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(83419),r=i(87841),s=i(26099);function a(t,e,i,n){var r=t-i,s=e-n,a=r*r+s*s;return Math.sqrt(a)}var o=new n({initialize:function(t,e,i){this.vertex1=t,this.vertex2=e,this.vertex3=i,this.bounds=new r,this._inCenter=new s},getInCenter:function(t){void 0===t&&(t=!0);var e,i,n,r,s,o,l=this.vertex1,h=this.vertex2,u=this.vertex3;t?(e=l.x,i=l.y,n=h.x,r=h.y,s=u.x,o=u.y):(e=l.vx,i=l.vy,n=h.vx,r=h.vy,s=u.vx,o=u.vy);var c=a(s,o,n,r),d=a(e,i,s,o),f=a(n,r,e,i),p=c+d+f;return this._inCenter.set((e*c+n*d+s*f)/p,(i*c+r*d+o*f)/p)},contains:function(t,e,i){var n=this.vertex1,r=this.vertex2,s=this.vertex3,a=n.vx,o=n.vy,l=r.vx,h=r.vy,u=s.vx,c=s.vy;if(i){var d=i.a,f=i.b,p=i.c,m=i.d,g=i.e,v=i.f;a=n.vx*d+n.vy*p+g,o=n.vx*f+n.vy*m+v,l=r.vx*d+r.vy*p+g,h=r.vx*f+r.vy*m+v,u=s.vx*d+s.vy*p+g,c=s.vx*f+s.vy*m+v}var y=u-a,b=c-o,x=l-a,w=h-o,T=t-a,S=e-o,E=y*y+b*b,C=y*x+b*w,A=y*T+b*S,_=x*x+w*w,k=x*T+w*S,P=E*_-C*C,M=0===P?0:1/P,D=(_*A-C*k)*M,O=(E*k-C*A)*M;return D>=0&&O>=0&&D+O<1},isCounterClockwise:function(t){var e=this.vertex1,i=this.vertex2,n=this.vertex3,r=(i.vx-e.vx)*(n.vy-e.vy)-(i.vy-e.vy)*(n.vx-e.vx);return t<=0?r>=0:r<0},load:function(t,e,i,n,r){return i=this.vertex1.load(t,e,i,n,r),i=this.vertex2.load(t,e,i,n,r),i=this.vertex3.load(t,e,i,n,r)},transformCoordinatesLocal:function(t,e,i,n){return this.vertex1.transformCoordinatesLocal(t,e,i,n),this.vertex2.transformCoordinatesLocal(t,e,i,n),this.vertex3.transformCoordinatesLocal(t,e,i,n),this},updateBounds:function(){var t=this.vertex1,e=this.vertex2,i=this.vertex3,n=this.bounds;return n.x=Math.min(t.vx,e.vx,i.vx),n.y=Math.min(t.vy,e.vy,i.vy),n.width=Math.max(t.vx,e.vx,i.vx)-n.x,n.height=Math.max(t.vy,e.vy,i.vy)-n.y,this},isInView:function(t,e,i,n,r,s,a,o,l,h,u){this.update(n,r,s,a,o,l,h,u);var c=this.vertex1,d=this.vertex2,f=this.vertex3;if(c.ta<=0&&d.ta<=0&&f.ta<=0)return!1;if(e&&!this.isCounterClockwise(i))return!1;var p=this.bounds;p.x=Math.min(c.tx,d.tx,f.tx),p.y=Math.min(c.ty,d.ty,f.ty),p.width=Math.max(c.tx,d.tx,f.tx)-p.x,p.height=Math.max(c.ty,d.ty,f.ty)-p.y;var m=t.x+t.width,g=t.y+t.height;return!(p.width<=0||p.height<=0||t.width<=0||t.height<=0||p.rightm||p.y>g)},scrollUV:function(t,e){return this.vertex1.scrollUV(t,e),this.vertex2.scrollUV(t,e),this.vertex3.scrollUV(t,e),this},scaleUV:function(t,e){return this.vertex1.scaleUV(t,e),this.vertex2.scaleUV(t,e),this.vertex3.scaleUV(t,e),this},setColor:function(t){return this.vertex1.color=t,this.vertex2.color=t,this.vertex3.color=t,this},update:function(t,e,i,n,r,s,a,o){return this.vertex1.update(e,i,n,r,s,a,o,t),this.vertex2.update(e,i,n,r,s,a,o,t),this.vertex3.update(e,i,n,r,s,a,o,t),this},translate:function(t,e){void 0===e&&(e=0);var i=this.vertex1,n=this.vertex2,r=this.vertex3;return i.x+=t,i.y+=e,n.x+=t,n.y+=e,r.x+=t,r.y+=e,this},x:{get:function(){return this.getInCenter().x},set:function(t){var e=this.getInCenter();this.translate(t-e.x,0)}},y:{get:function(){return this.getInCenter().y},set:function(t){var e=this.getInCenter();this.translate(0,t-e.y)}},alpha:{get:function(){var t=this.vertex1,e=this.vertex2,i=this.vertex3;return(t.alpha+e.alpha+i.alpha)/3},set:function(t){this.vertex1.alpha=t,this.vertex2.alpha=t,this.vertex3.alpha=t}},depth:{get:function(){var t=this.vertex1,e=this.vertex2,i=this.vertex3;return(t.vz+e.vz+i.vz)/3}},destroy:function(){this.vertex1=null,this.vertex2=null,this.vertex3=null}});t.exports=o},48803:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(83997),r=i(95540),s=i(37867),a=i(25836),o=i(39318),l=new a,h=new a,u=new s;t.exports=function(t){var e,i=r(t,\"mesh\"),s=r(t,\"texture\",null),a=r(t,\"frame\"),c=r(t,\"width\",1),d=r(t,\"height\",c),f=r(t,\"widthSegments\",1),p=r(t,\"heightSegments\",f),m=r(t,\"x\",0),g=r(t,\"y\",0),v=r(t,\"z\",0),y=r(t,\"rotateX\",0),b=r(t,\"rotateY\",0),x=r(t,\"rotateZ\",0),w=r(t,\"zIsUp\",!0),T=r(t,\"isOrtho\",!!i&&i.dirtyCache[11]),S=r(t,\"colors\",[16777215]),E=r(t,\"alphas\",[1]),C=r(t,\"tile\",!1),A=r(t,\"flipY\",!1),_=r(t,\"width\",null),k={faces:[],verts:[]};if(l.set(m,g,v),h.set(y,b,x),u.fromRotationXYTranslation(h,l,w),!s&&i)s=i.texture,a||(e=i.frame);else if(i&&\"string\"==typeof s)s=i.scene.sys.textures.get(s);else if(!s)return k;e||(e=s.get(a)),!_&&T&&s&&i&&(c=e.width/i.height,d=e.height/i.height);var P,M,D=c/2,O=d/2,R=Math.floor(f),I=Math.floor(p),F=R+1,L=I+1,N=c/R,B=d/I,z=[],j=[],U=0,V=1,G=0,H=1;e&&(U=e.u0,V=e.u1,A?(G=e.v1,H=e.v0):(G=e.v0,H=e.v1));var Y=V-U,X=H-G;for(M=0;M{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(83997),r=i(37867),s=i(25836),a=i(39318),o=new s,l=new s,h=new r;t.exports=function(t,e,i,r,s,u,c,d,f,p){void 0===i&&(i=1),void 0===r&&(r=0),void 0===s&&(s=0),void 0===u&&(u=0),void 0===c&&(c=0),void 0===d&&(d=0),void 0===f&&(f=0),void 0===p&&(p=!0);var m={faces:[],verts:[]},g=t.materials;o.set(r,s,u),l.set(c,d,f),h.fromRotationXYTranslation(l,o,p);for(var v=0;v{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(83997),r=i(39318);t.exports=function(t,e,i,s,a,o,l,h){if(void 0===s&&(s=!1),void 0===o&&(o=16777215),void 0===l&&(l=1),void 0===h&&(h=!1),t.length===e.length||s){var u,c,d,f,p,m,g,v,y,b,x,w={faces:[],vertices:[]},T=s?3:2,S=Array.isArray(o),E=Array.isArray(l);if(Array.isArray(i)&&i.length>0)for(u=0;u{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar e=!0,i=\"\",n=\"\";function r(t){var e=t.indexOf(\"#\");return e>-1?t.substring(0,e):t}function s(t){return 0===t.models.length&&t.models.push({faces:[],name:\"untitled\",textureCoords:[],vertexNormals:[],vertices:[]}),i=\"\",t.models[t.models.length-1]}function a(t,e){var n=t.length>=2?t[1]:\"untitled\";e.models.push({faces:[],name:n,textureCoords:[],vertexNormals:[],vertices:[]}),i=\"\"}function o(t){2===t.length&&(i=t[1])}function l(t,e){var i=t.length,n=i>=2?parseFloat(t[1]):0,r=i>=3?parseFloat(t[2]):0,a=i>=4?parseFloat(t[3]):0;s(e).vertices.push({x:n,y:r,z:a})}function h(t,i){var n=t.length,r=n>=2?parseFloat(t[1]):0,a=n>=3?parseFloat(t[2]):0,o=n>=4?parseFloat(t[3]):0;isNaN(r)&&(r=0),isNaN(a)&&(a=0),isNaN(o)&&(o=0),e&&(a=1-a),s(i).textureCoords.push({u:r,v:a,w:o})}function u(t,e){var i=t.length,n=i>=2?parseFloat(t[1]):0,r=i>=3?parseFloat(t[2]):0,a=i>=4?parseFloat(t[3]):0;s(e).vertexNormals.push({x:n,y:r,z:a})}function c(t,e){var r=t.length-1;if(!(r<3)){for(var a={group:i,material:n,vertices:[]},o=0;o3)){var u=0,c=0,d=0;u=parseInt(l[0],10),h>1&&\"\"!==l[1]&&(c=parseInt(l[1],10)),h>2&&(d=parseInt(l[2],10)),0!==u&&(u<0&&(u=s(e).vertices.length+1+u),c-=1,u-=1,d-=1,a.vertices.push({textureCoordsIndex:c,vertexIndex:u,vertexNormalIndex:d}))}}s(e).faces.push(a)}}function d(t,e){t.length>=2&&e.materialLibraries.push(t[1])}function f(t){t.length>=2&&(n=t[1])}t.exports=function(t,s){void 0===s&&(s=!0),e=s;var p={materials:{},materialLibraries:[],models:[]};i=\"\",n=\"\";for(var m=t.split(\"\\n\"),g=0;g{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(37589);t.exports=function(t){for(var e={},i=t.split(\"\\n\"),r=\"\",s=0;s=2?Math.floor(255*o[2]):l,u=o.length>=3?Math.floor(255*o[3]):l;e[r]=n(l,h,u)}}}return e}},92570:t=>{t.exports=function(t,e,i,n){var r,s;if(void 0===i&&void 0===n){var a=t.getInCenter();r=a.x,s=a.y}var o=Math.cos(e),l=Math.sin(e),h=t.vertex1,u=t.vertex2,c=t.vertex3,d=h.x-r,f=h.y-s;h.set(d*o-f*l+r,d*l+f*o+s),d=u.x-r,f=u.y-s,u.set(d*o-f*l+r,d*l+f*o+s),d=c.x-r,f=c.y-s,c.set(d*o-f*l+r,d*l+f*o+s)}},39318:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(83419),r=i(70554),s=i(25836),a=new n({Extends:s,initialize:function(t,e,i,n,r,a,o,l,h,u){void 0===a&&(a=16777215),void 0===o&&(o=1),void 0===l&&(l=0),void 0===h&&(h=0),void 0===u&&(u=0),s.call(this,t,e,i),this.vx=0,this.vy=0,this.vz=0,this.nx=l,this.ny=h,this.nz=u,this.u=n,this.v=r,this.color=a,this.alpha=o,this.tx=0,this.ty=0,this.ta=0,this.tu=n,this.tv=r},setUVs:function(t,e){return this.u=t,this.v=e,this.tu=t,this.tv=e,this},scrollUV:function(t,e){return this.tu+=t,this.tv+=e,this},scaleUV:function(t,e){return this.tu=this.u*t,this.tv=this.v*e,this},transformCoordinatesLocal:function(t,e,i,n){var r=this.x,s=this.y,a=this.z,o=t.val,l=r*o[0]+s*o[4]+a*o[8]+o[12],h=r*o[1]+s*o[5]+a*o[9]+o[13],u=r*o[2]+s*o[6]+a*o[10]+o[14],c=r*o[3]+s*o[7]+a*o[11]+o[15];this.vx=l/c*e,this.vy=-h/c*i,this.vz=n<=0?u/c:-u/c},resize:function(t,e,i,n,r,s){return this.x=t,this.y=e,this.vx=this.x*i,this.vy=-this.y*n,this.vz=0,r<.5?this.vx+=i*(.5-r):r>.5&&(this.vx-=i*(r-.5)),s<.5?this.vy+=n*(.5-s):s>.5&&(this.vy-=n*(s-.5)),this},update:function(t,e,i,n,r,s,a,o){var l=this.vx*t+this.vy*i+r,h=this.vx*e+this.vy*n+s;return a&&(l=Math.round(l),h=Math.round(h)),this.tx=l,this.ty=h,this.ta=this.alpha*o,this},load:function(t,e,i,n,s){return t[++i]=this.tx,t[++i]=this.ty,t[++i]=this.tu,t[++i]=this.tv,t[++i]=n,t[++i]=s,e[++i]=r.getTintAppendFloatAlpha(this.color,this.ta),i}});t.exports=a},73090:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n={Face:i(83997),GenerateGridVerts:i(48803),GenerateObjVerts:i(34684),GenerateVerts:i(92515),ParseObj:i(85048),ParseObjMaterial:i(61485),RotateFace:i(92570),Vertex:i(39318)};t.exports=n},96550:t=>{t.exports=function(t){return t.setTo(Math.ceil(t.x),Math.ceil(t.y))}},99706:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(2141);t.exports=function(t){return new n(t.x,t.y)}},68010:t=>{t.exports=function(t,e){return e.setTo(t.x,t.y)}},27814:t=>{t.exports=function(t,e){return t.x===e.x&&t.y===e.y}},73565:t=>{t.exports=function(t){return t.setTo(Math.floor(t.x),Math.floor(t.y))}},87555:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(2141);t.exports=function(t,e){if(void 0===e&&(e=new n),!Array.isArray(t))throw new Error(\"GetCentroid points argument must be an array\");var i=t.length;if(i<1)throw new Error(\"GetCentroid points array must not be empty\");if(1===i)e.x=t[0].x,e.y=t[0].y;else{for(var r=0;r{t.exports=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)}},44405:t=>{t.exports=function(t){return t.x*t.x+t.y*t.y}},20873:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(87841);t.exports=function(t,e){void 0===e&&(e=new n);for(var i=Number.NEGATIVE_INFINITY,r=Number.POSITIVE_INFINITY,s=Number.NEGATIVE_INFINITY,a=Number.POSITIVE_INFINITY,o=0;oi&&(i=l.x),l.xs&&(s=l.y),l.y{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(2141);t.exports=function(t,e,i,r){return void 0===i&&(i=0),void 0===r&&(r=new n),r.x=t.x+(e.x-t.x)*i,r.y=t.y+(e.y-t.y)*i,r}},55767:t=>{t.exports=function(t){return t.setTo(t.y,t.x)}},79432:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(2141);t.exports=function(t,e){return void 0===e&&(e=new n),e.setTo(-t.x,-t.y)}},2141:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(83419),r=i(23777),s=new n({initialize:function(t,e){void 0===t&&(t=0),void 0===e&&(e=t),this.type=r.POINT,this.x=t,this.y=e},setTo:function(t,e){return void 0===t&&(t=0),void 0===e&&(e=t),this.x=t,this.y=e,this}});t.exports=s},72930:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(2141),r=i(44405);t.exports=function(t,e,i){void 0===i&&(i=new n);var s=(t.x*e.x+t.y*e.y)/r(e);return 0!==s&&(i.x=s*e.x,i.y=s*e.y),i}},62880:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(2141);t.exports=function(t,e,i){void 0===i&&(i=new n);var r=t.x*e.x+t.y*e.y;return 0!==r&&(i.x=r*e.x,i.y=r*e.y),i}},15093:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(28793);t.exports=function(t,e){if(0!==t.x||0!==t.y){var i=n(t);t.x/=i,t.y/=i}return t.x*=e,t.y*=e,t}},43711:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(2141);n.Ceil=i(96550),n.Clone=i(99706),n.CopyFrom=i(68010),n.Equals=i(27814),n.Floor=i(73565),n.GetCentroid=i(87555),n.GetMagnitude=i(28793),n.GetMagnitudeSq=i(44405),n.GetRectangleFromPoints=i(20873),n.Interpolate=i(26152),n.Invert=i(55767),n.Negative=i(79432),n.Project=i(72930),n.ProjectUnit=i(62880),n.SetMagnitude=i(15093),t.exports=n},12306:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(25717);t.exports=function(t){return new n(t.points)}},63814:t=>{t.exports=function(t,e,i){for(var n=!1,r=-1,s=t.points.length-1;++r{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(63814);t.exports=function(t,e){return n(t,e.x,e.y)}},94811:t=>{\"use strict\";\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */function e(t,e,n){n=n||2;var s,a,o,l,c,d,p,m=e&&e.length,g=m?e[0]*n:t.length,v=i(t,0,g,n,!0),y=[];if(!v||v.next===v.prev)return y;if(m&&(v=function(t,e,n,r){var s,a,o,l,c,d=[];for(s=0,a=e.length;s80*n){s=o=t[0],a=l=t[1];for(var b=n;bo&&(o=c),d>l&&(l=d);p=0!==(p=Math.max(o-s,l-a))?32767/p:0}return r(v,y,n,s,a,p,0),y}function i(t,e,i,n,r){var s,a;if(r===A(t,e,i,n)>0)for(s=e;s=e;s-=n)a=S(s,t[s],t[s+1],a);return a&&v(a,a.next)&&(E(a),a=a.next),a}function n(t,e){if(!t)return t;e||(e=t);var i,n=t;do{if(i=!1,n.steiner||!v(n,n.next)&&0!==g(n.prev,n,n.next))n=n.next;else{if(E(n),(n=e=n.prev)===n.next)break;i=!0}}while(i||n!==e);return e}function r(t,e,i,h,u,c,f){if(t){!f&&c&&function(t,e,i,n){var r=t;do{0===r.z&&(r.z=d(r.x,r.y,e,i,n)),r.prevZ=r.prev,r.nextZ=r.next,r=r.next}while(r!==t);r.prevZ.nextZ=null,r.prevZ=null,function(t){var e,i,n,r,s,a,o,l,h=1;do{for(i=t,t=null,s=null,a=0;i;){for(a++,n=i,o=0,e=0;e0||l>0&&n;)0!==o&&(0===l||!n||i.z<=n.z)?(r=i,i=i.nextZ,o--):(r=n,n=n.nextZ,l--),s?s.nextZ=r:t=r,r.prevZ=s,s=r;i=n}s.nextZ=null,h*=2}while(a>1)}(r)}(t,h,u,c);for(var p,m,g=t;t.prev!==t.next;)if(p=t.prev,m=t.next,c?a(t,h,u,c):s(t))e.push(p.i/i|0),e.push(t.i/i|0),e.push(m.i/i|0),E(t),t=m.next,g=m.next;else if((t=m)===g){f?1===f?r(t=o(n(t),e,i),e,i,h,u,c,2):2===f&&l(t,e,i,h,u,c):r(n(t),e,i,h,u,c,1);break}}}function s(t){var e=t.prev,i=t,n=t.next;if(g(e,i,n)>=0)return!1;for(var r=e.x,s=i.x,a=n.x,o=e.y,l=i.y,h=n.y,u=rs?r>a?r:a:s>a?s:a,f=o>l?o>h?o:h:l>h?l:h,m=n.next;m!==e;){if(m.x>=u&&m.x<=d&&m.y>=c&&m.y<=f&&p(r,o,s,l,a,h,m.x,m.y)&&g(m.prev,m,m.next)>=0)return!1;m=m.next}return!0}function a(t,e,i,n){var r=t.prev,s=t,a=t.next;if(g(r,s,a)>=0)return!1;for(var o=r.x,l=s.x,h=a.x,u=r.y,c=s.y,f=a.y,m=ol?o>h?o:h:l>h?l:h,b=u>c?u>f?u:f:c>f?c:f,x=d(m,v,e,i,n),w=d(y,b,e,i,n),T=t.prevZ,S=t.nextZ;T&&T.z>=x&&S&&S.z<=w;){if(T.x>=m&&T.x<=y&&T.y>=v&&T.y<=b&&T!==r&&T!==a&&p(o,u,l,c,h,f,T.x,T.y)&&g(T.prev,T,T.next)>=0)return!1;if(T=T.prevZ,S.x>=m&&S.x<=y&&S.y>=v&&S.y<=b&&S!==r&&S!==a&&p(o,u,l,c,h,f,S.x,S.y)&&g(S.prev,S,S.next)>=0)return!1;S=S.nextZ}for(;T&&T.z>=x;){if(T.x>=m&&T.x<=y&&T.y>=v&&T.y<=b&&T!==r&&T!==a&&p(o,u,l,c,h,f,T.x,T.y)&&g(T.prev,T,T.next)>=0)return!1;T=T.prevZ}for(;S&&S.z<=w;){if(S.x>=m&&S.x<=y&&S.y>=v&&S.y<=b&&S!==r&&S!==a&&p(o,u,l,c,h,f,S.x,S.y)&&g(S.prev,S,S.next)>=0)return!1;S=S.nextZ}return!0}function o(t,e,i){var r=t;do{var s=r.prev,a=r.next.next;!v(s,a)&&y(s,r,r.next,a)&&w(s,a)&&w(a,s)&&(e.push(s.i/i|0),e.push(r.i/i|0),e.push(a.i/i|0),E(r),E(r.next),r=t=a),r=r.next}while(r!==t);return n(r)}function l(t,e,i,s,a,o){var l=t;do{for(var h=l.next.next;h!==l.prev;){if(l.i!==h.i&&m(l,h)){var u=T(l,h);return l=n(l,l.next),u=n(u,u.next),r(l,e,i,s,a,o,0),void r(u,e,i,s,a,o,0)}h=h.next}l=l.next}while(l!==t)}function h(t,e){return t.x-e.x}function u(t,e){var i=function(t,e){var i,n=e,r=t.x,s=t.y,a=-1/0;do{if(s<=n.y&&s>=n.next.y&&n.next.y!==n.y){var o=n.x+(s-n.y)*(n.next.x-n.x)/(n.next.y-n.y);if(o<=r&&o>a&&(a=o,i=n.x=n.x&&n.x>=u&&r!==n.x&&p(si.x||n.x===i.x&&c(i,n)))&&(i=n,f=l)),n=n.next}while(n!==h);return i}(t,e);if(!i)return e;var r=T(i,t);return n(r,r.next),n(i,i.next)}function c(t,e){return g(t.prev,t,e.prev)<0&&g(e.next,t,t.next)<0}function d(t,e,i,n,r){return(t=1431655765&((t=858993459&((t=252645135&((t=16711935&((t=(t-i)*r|0)|t<<8))|t<<4))|t<<2))|t<<1))|(e=1431655765&((e=858993459&((e=252645135&((e=16711935&((e=(e-n)*r|0)|e<<8))|e<<4))|e<<2))|e<<1))<<1}function f(t){var e=t,i=t;do{(e.x=(t-a)*(s-o)&&(t-a)*(n-o)>=(i-a)*(e-o)&&(i-a)*(s-o)>=(r-a)*(n-o)}function m(t,e){return t.next.i!==e.i&&t.prev.i!==e.i&&!function(t,e){var i=t;do{if(i.i!==t.i&&i.next.i!==t.i&&i.i!==e.i&&i.next.i!==e.i&&y(i,i.next,t,e))return!0;i=i.next}while(i!==t);return!1}(t,e)&&(w(t,e)&&w(e,t)&&function(t,e){var i=t,n=!1,r=(t.x+e.x)/2,s=(t.y+e.y)/2;do{i.y>s!=i.next.y>s&&i.next.y!==i.y&&r<(i.next.x-i.x)*(s-i.y)/(i.next.y-i.y)+i.x&&(n=!n),i=i.next}while(i!==t);return n}(t,e)&&(g(t.prev,t,e.prev)||g(t,e.prev,e))||v(t,e)&&g(t.prev,t,t.next)>0&&g(e.prev,e,e.next)>0)}function g(t,e,i){return(e.y-t.y)*(i.x-e.x)-(e.x-t.x)*(i.y-e.y)}function v(t,e){return t.x===e.x&&t.y===e.y}function y(t,e,i,n){var r=x(g(t,e,i)),s=x(g(t,e,n)),a=x(g(i,n,t)),o=x(g(i,n,e));return r!==s&&a!==o||!(0!==r||!b(t,i,e))||!(0!==s||!b(t,n,e))||!(0!==a||!b(i,t,n))||!(0!==o||!b(i,e,n))}function b(t,e,i){return e.x<=Math.max(t.x,i.x)&&e.x>=Math.min(t.x,i.x)&&e.y<=Math.max(t.y,i.y)&&e.y>=Math.min(t.y,i.y)}function x(t){return t>0?1:t<0?-1:0}function w(t,e){return g(t.prev,t,t.next)<0?g(t,e,t.next)>=0&&g(t,t.prev,e)>=0:g(t,e,t.prev)<0||g(t,t.next,e)<0}function T(t,e){var i=new C(t.i,t.x,t.y),n=new C(e.i,e.x,e.y),r=t.next,s=e.prev;return t.next=e,e.prev=t,i.next=r,r.prev=i,n.next=i,i.prev=n,s.next=n,n.prev=s,n}function S(t,e,i,n){var r=new C(t,e,i);return n?(r.next=n.next,r.prev=n,n.next.prev=r,n.next=r):(r.prev=r,r.next=r),r}function E(t){t.next.prev=t.prev,t.prev.next=t.next,t.prevZ&&(t.prevZ.nextZ=t.nextZ),t.nextZ&&(t.nextZ.prevZ=t.prevZ)}function C(t,e,i){this.i=t,this.x=e,this.y=i,this.prev=null,this.next=null,this.z=0,this.prevZ=null,this.nextZ=null,this.steiner=!1}function A(t,e,i,n){for(var r=0,s=e,a=i-n;s0&&(n+=t[r-1].length,i.holes.push(n))}return i},t.exports=e},13829:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(87841);t.exports=function(t,e){void 0===e&&(e=new n);for(var i,r=1/0,s=1/0,a=-r,o=-s,l=0;l{t.exports=function(t,e){void 0===e&&(e=[]);for(var i=0;i{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(35001),r=i(23031),s=i(30052);t.exports=function(t,e,i,a){void 0===a&&(a=[]);var o=t.points,l=s(t);!e&&i>0&&(e=l/i);for(var h=0;hc+g)){var v=m.getPoint((u-c)/g);a.push(v);break}c+=g}return a}},30052:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(35001),r=i(23031);t.exports=function(t){for(var e=t.points,i=0,s=0;s{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(83419),r=i(63814),s=i(9564),a=i(23777),o=new n({initialize:function(t){this.type=a.POLYGON,this.area=0,this.points=[],t&&this.setTo(t)},contains:function(t,e){return r(this,t,e)},setTo:function(t){if(this.area=0,this.points=[],\"string\"==typeof t&&(t=t.split(\" \")),!Array.isArray(t))return this;for(var e,i=0;i{t.exports=function(t){return t.points.reverse(),t}},29524:t=>{function e(t,e,i){var n=e.x,r=e.y,s=i.x-n,a=i.y-r;if(0!==s||0!==a){var o=((t.x-n)*s+(t.y-r)*a)/(s*s+a*a);o>1?(n=i.x,r=i.y):o>0&&(n+=s*o,r+=a*o)}return(s=t.x-n)*s+(a=t.y-r)*a}function i(t,i){var n=t.length-1,r=[t[0]];return function t(i,n,r,s,a){for(var o,l=s,h=n+1;hl&&(o=h,l=u)}l>s&&(o-n>1&&t(i,n,o,s,a),a.push(i[o]),r-o>1&&t(i,o,r,s,a))}(t,0,n,i,r),r.push(t[n]),r}t.exports=function(t,e,n){void 0===e&&(e=1),void 0===n&&(n=!1);var r=t.points;if(r.length>2){var s=e*e;n||(r=function(t,e){for(var i,n,r,s,a,o=t[0],l=[o],h=1,u=t.length;he&&(l.push(i),o=i);return o!==i&&l.push(i),l}(r,s)),t.setTo(i(r,s))}return t}},5469:t=>{\n/**\n * @author Richard Davey \n * @author Igor Ognichenko \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar e=function(t,e){return t[0]=e[0],t[1]=e[1],t};t.exports=function(t){var i,n=[],r=t.points;for(i=0;i0&&s.push(e([0,0],n[0])),i=0;i1&&s.push(e([0,0],n[n.length-1])),t.setTo(s)}},24709:t=>{t.exports=function(t,e,i){for(var n=t.points,r=0;r{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(25717);n.Clone=i(12306),n.Contains=i(63814),n.ContainsPoint=i(99338),n.Earcut=i(94811),n.GetAABB=i(13829),n.GetNumberArray=i(26173),n.GetPoints=i(9564),n.Perimeter=i(30052),n.Reverse=i(8133),n.Simplify=i(29524),n.Smooth=i(5469),n.Translate=i(24709),t.exports=n},62224:t=>{t.exports=function(t){return t.width*t.height}},98615:t=>{t.exports=function(t){return t.x=Math.ceil(t.x),t.y=Math.ceil(t.y),t}},31688:t=>{t.exports=function(t){return t.x=Math.ceil(t.x),t.y=Math.ceil(t.y),t.width=Math.ceil(t.width),t.height=Math.ceil(t.height),t}},67502:t=>{t.exports=function(t,e,i){return t.x=e-t.width/2,t.y=i-t.height/2,t}},65085:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(87841);t.exports=function(t){return new n(t.x,t.y,t.width,t.height)}},37303:t=>{t.exports=function(t,e,i){return!(t.width<=0||t.height<=0)&&t.x<=e&&t.x+t.width>=e&&t.y<=i&&t.y+t.height>=i}},96553:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(37303);t.exports=function(t,e){return n(t,e.x,e.y)}},70273:t=>{t.exports=function(t,e){return!(e.width*e.height>t.width*t.height)&&e.x>t.x&&e.xt.x&&e.rightt.y&&e.yt.y&&e.bottom{t.exports=function(t,e){return e.setTo(t.x,t.y,t.width,t.height)}},77493:t=>{t.exports=function(t,e){return void 0===e&&(e=[]),e.push({x:t.x,y:t.y}),e.push({x:t.right,y:t.y}),e.push({x:t.right,y:t.bottom}),e.push({x:t.x,y:t.bottom}),e}},9219:t=>{t.exports=function(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}},53751:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(8249);t.exports=function(t,e){var i=n(t);return i{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(8249);t.exports=function(t,e){var i=n(t);return i>n(e)?t.setSize(e.height*i,e.height):t.setSize(e.width,e.width/i),t.setPosition(e.centerX-t.width/2,e.centerY-t.height/2)}},80774:t=>{t.exports=function(t){return t.x=Math.floor(t.x),t.y=Math.floor(t.y),t}},83859:t=>{t.exports=function(t){return t.x=Math.floor(t.x),t.y=Math.floor(t.y),t.width=Math.floor(t.width),t.height=Math.floor(t.height),t}},19217:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(87841),r=i(36383);t.exports=function(t,e){if(void 0===e&&(e=new n),0===t.length)return e;for(var i,s,a,o=Number.MAX_VALUE,l=Number.MAX_VALUE,h=r.MIN_SAFE_INTEGER,u=r.MIN_SAFE_INTEGER,c=0;c{\n/**\n * @author samme\n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(87841);t.exports=function(t,e,i,r,s){return void 0===s&&(s=new n),s.setTo(Math.min(t,i),Math.min(e,r),Math.abs(t-i),Math.abs(e-r))}},8249:t=>{t.exports=function(t){return 0===t.height?NaN:t.width/t.height}},27165:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(2141);t.exports=function(t,e){return void 0===e&&(e=new n),e.x=t.centerX,e.y=t.centerY,e}},20812:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(13019),r=i(2141);t.exports=function(t,e,i){if(void 0===i&&(i=new r),e<=0||e>=1)return i.x=t.x,i.y=t.y,i;var s=n(t)*e;return e>.5?(s-=t.width+t.height)<=t.width?(i.x=t.right-s,i.y=t.bottom):(i.x=t.x,i.y=t.bottom-(s-t.width)):s<=t.width?(i.x=t.x+s,i.y=t.y):(i.x=t.right,i.y=t.y+(s-t.width)),i}},34819:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(20812),r=i(13019);t.exports=function(t,e,i,s){void 0===s&&(s=[]),!e&&i>0&&(e=r(t)/i);for(var a=0;a{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(2141);t.exports=function(t,e){return void 0===e&&(e=new n),e.x=t.width,e.y=t.height,e}},86091:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(67502);t.exports=function(t,e,i){var r=t.centerX,s=t.centerY;return t.setSize(t.width+2*e,t.height+2*i),n(t,r,s)}},53951:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(87841),r=i(59996);t.exports=function(t,e,i){return void 0===i&&(i=new n),r(t,e)?(i.x=Math.max(t.x,e.x),i.y=Math.max(t.y,e.y),i.width=Math.min(t.right,e.right)-i.x,i.height=Math.min(t.bottom,e.bottom)-i.y):i.setEmpty(),i}},14649:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(13019),r=i(2141);t.exports=function(t,e,i,s){if(void 0===s&&(s=[]),!e&&!i)return s;e?i=Math.round(n(t)/e):e=n(t)/i;for(var a=t.x,o=t.y,l=0,h=0;h=t.right&&(l=1,o+=a-t.right,a=t.right);break;case 1:(o+=e)>=t.bottom&&(l=2,a-=o-t.bottom,o=t.bottom);break;case 2:(a-=e)<=t.left&&(l=3,o-=t.left-a,a=t.left);break;case 3:(o-=e)<=t.top&&(l=0,o=t.top)}return s}},33595:t=>{t.exports=function(t,e){for(var i=t.x,n=t.right,r=t.y,s=t.bottom,a=0;a{t.exports=function(t,e){var i=Math.min(t.x,e.x),n=Math.max(t.right,e.right);t.x=i,t.width=n-i;var r=Math.min(t.y,e.y),s=Math.max(t.bottom,e.bottom);return t.y=r,t.height=s-r,t}},92171:t=>{t.exports=function(t,e,i){var n=Math.min(t.x,e),r=Math.max(t.right,e);t.x=n,t.width=r-n;var s=Math.min(t.y,i),a=Math.max(t.bottom,i);return t.y=s,t.height=a-s,t}},42981:t=>{t.exports=function(t,e,i){return t.x+=e,t.y+=i,t}},46907:t=>{t.exports=function(t,e){return t.x+=e.x,t.y+=e.y,t}},60170:t=>{t.exports=function(t,e){return t.xe.x&&t.ye.y}},13019:t=>{t.exports=function(t){return 2*(t.width+t.height)}},85133:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(2141),r=i(39506);t.exports=function(t,e,i){void 0===i&&(i=new n),e=r(e);var s=Math.sin(e),a=Math.cos(e),o=a>0?t.width/2:t.width/-2,l=s>0?t.height/2:t.height/-2;return Math.abs(o*s){\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(2141);t.exports=function(t,e){return void 0===e&&(e=new n),e.x=t.x+Math.random()*t.width,e.y=t.y+Math.random()*t.height,e}},86470:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(30976),r=i(70273),s=i(2141);t.exports=function(t,e,i){if(void 0===i&&(i=new s),r(t,e))switch(n(0,3)){case 0:i.x=t.x+Math.random()*(e.right-t.x),i.y=t.y+Math.random()*(e.top-t.y);break;case 1:i.x=e.x+Math.random()*(t.right-e.x),i.y=e.bottom+Math.random()*(t.bottom-e.bottom);break;case 2:i.x=t.x+Math.random()*(e.x-t.x),i.y=e.y+Math.random()*(t.bottom-e.y);break;case 3:i.x=e.right+Math.random()*(t.right-e.right),i.y=t.y+Math.random()*(e.bottom-t.y)}return i}},87841:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(83419),r=i(37303),s=i(20812),a=i(34819),o=i(23777),l=i(23031),h=i(26597),u=new n({initialize:function(t,e,i,n){void 0===t&&(t=0),void 0===e&&(e=0),void 0===i&&(i=0),void 0===n&&(n=0),this.type=o.RECTANGLE,this.x=t,this.y=e,this.width=i,this.height=n},contains:function(t,e){return r(this,t,e)},getPoint:function(t,e){return s(this,t,e)},getPoints:function(t,e,i){return a(this,t,e,i)},getRandomPoint:function(t){return h(this,t)},setTo:function(t,e,i,n){return this.x=t,this.y=e,this.width=i,this.height=n,this},setEmpty:function(){return this.setTo(0,0,0,0)},setPosition:function(t,e){return void 0===e&&(e=t),this.x=t,this.y=e,this},setSize:function(t,e){return void 0===e&&(e=t),this.width=t,this.height=e,this},isEmpty:function(){return this.width<=0||this.height<=0},getLineA:function(t){return void 0===t&&(t=new l),t.setTo(this.x,this.y,this.right,this.y),t},getLineB:function(t){return void 0===t&&(t=new l),t.setTo(this.right,this.y,this.right,this.bottom),t},getLineC:function(t){return void 0===t&&(t=new l),t.setTo(this.right,this.bottom,this.x,this.bottom),t},getLineD:function(t){return void 0===t&&(t=new l),t.setTo(this.x,this.bottom,this.x,this.y),t},left:{get:function(){return this.x},set:function(t){t>=this.right?this.width=0:this.width=this.right-t,this.x=t}},right:{get:function(){return this.x+this.width},set:function(t){t<=this.x?this.width=0:this.width=t-this.x}},top:{get:function(){return this.y},set:function(t){t>=this.bottom?this.height=0:this.height=this.bottom-t,this.y=t}},bottom:{get:function(){return this.y+this.height},set:function(t){t<=this.y?this.height=0:this.height=t-this.y}},centerX:{get:function(){return this.x+this.width/2},set:function(t){this.x=t-this.width/2}},centerY:{get:function(){return this.y+this.height/2},set:function(t){this.y=t-this.height/2}}});t.exports=u},94845:t=>{t.exports=function(t,e){return t.width===e.width&&t.height===e.height}},31730:t=>{t.exports=function(t,e,i){return void 0===i&&(i=e),t.width*=e,t.height*=i,t}},36899:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(87841);t.exports=function(t,e,i){void 0===i&&(i=new n);var r=Math.min(t.x,e.x),s=Math.min(t.y,e.y),a=Math.max(t.right,e.right)-r,o=Math.max(t.bottom,e.bottom)-s;return i.setTo(r,s,a,o)}},93232:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(87841);n.Area=i(62224),n.Ceil=i(98615),n.CeilAll=i(31688),n.CenterOn=i(67502),n.Clone=i(65085),n.Contains=i(37303),n.ContainsPoint=i(96553),n.ContainsRect=i(70273),n.CopyFrom=i(43459),n.Decompose=i(77493),n.Equals=i(9219),n.FitInside=i(53751),n.FitOutside=i(16088),n.Floor=i(80774),n.FloorAll=i(83859),n.FromPoints=i(19217),n.FromXY=i(9477),n.GetAspectRatio=i(8249),n.GetCenter=i(27165),n.GetPoint=i(20812),n.GetPoints=i(34819),n.GetSize=i(51313),n.Inflate=i(86091),n.Intersection=i(53951),n.MarchingAnts=i(14649),n.MergePoints=i(33595),n.MergeRect=i(20074),n.MergeXY=i(92171),n.Offset=i(42981),n.OffsetPoint=i(46907),n.Overlaps=i(60170),n.Perimeter=i(13019),n.PerimeterPoint=i(85133),n.Random=i(26597),n.RandomOutside=i(86470),n.SameDimensions=i(94845),n.Scale=i(31730),n.Union=i(36899),t.exports=n},41658:t=>{t.exports=function(t){var e=t.x1,i=t.y1,n=t.x2,r=t.y2,s=t.x3,a=t.y3;return Math.abs(((s-e)*(r-i)-(n-e)*(a-i))/2)}},39208:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(16483);t.exports=function(t,e,i){var r=i*(Math.sqrt(3)/2);return new n(t,e,t+i/2,e+r,t-i/2,e+r)}},39545:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(94811),r=i(16483);t.exports=function(t,e,i,s,a){void 0===e&&(e=null),void 0===i&&(i=1),void 0===s&&(s=1),void 0===a&&(a=[]);for(var o,l,h,u,c,d,f,p,m,g=n(t,e),v=0;v{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(16483);t.exports=function(t,e,i,r){return void 0===r&&(r=i),new n(t,e,t,e-r,t+i,e)}},23707:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(97523),r=i(13584);t.exports=function(t,e,i,s){void 0===s&&(s=n);var a=s(t),o=e-a.x,l=i-a.y;return r(t,o,l)}},97523:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(2141);t.exports=function(t,e){return void 0===e&&(e=new n),e.x=(t.x1+t.x2+t.x3)/3,e.y=(t.y1+t.y2+t.y3)/3,e}},24951:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(26099);function r(t,e,i,n){return t*n-e*i}t.exports=function(t,e){void 0===e&&(e=new n);var i=t.x3,s=t.y3,a=t.x1-i,o=t.y1-s,l=t.x2-i,h=t.y2-s,u=2*r(a,o,l,h),c=r(o,a*a+o*o,h,l*l+h*h),d=r(a,a*a+o*o,l,l*l+h*h);return e.x=i-c/u,e.y=s+d/u,e}},85614:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(96503);t.exports=function(t,e){void 0===e&&(e=new n);var i,r,s=t.x1,a=t.y1,o=t.x2,l=t.y2,h=t.x3,u=t.y3,c=o-s,d=l-a,f=h-s,p=u-a,m=c*(s+o)+d*(a+l),g=f*(s+h)+p*(a+u),v=2*(c*(u-l)-d*(h-o));if(Math.abs(v)<1e-6){var y=Math.min(s,o,h),b=Math.min(a,l,u);i=.5*(Math.max(s,o,h)-y),r=.5*(Math.max(a,l,u)-b),e.x=y+i,e.y=b+r,e.radius=Math.sqrt(i*i+r*r)}else e.x=(p*m-d*g)/v,e.y=(c*g-f*m)/v,i=e.x-s,r=e.y-a,e.radius=Math.sqrt(i*i+r*r);return e}},74422:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(16483);t.exports=function(t){return new n(t.x1,t.y1,t.x2,t.y2,t.x3,t.y3)}},10690:t=>{t.exports=function(t,e,i){var n=t.x3-t.x1,r=t.y3-t.y1,s=t.x2-t.x1,a=t.y2-t.y1,o=e-t.x1,l=i-t.y1,h=n*n+r*r,u=n*s+r*a,c=n*o+r*l,d=s*s+a*a,f=s*o+a*l,p=h*d-u*u,m=0===p?0:1/p,g=(d*c-u*f)*m,v=(h*f-u*c)*m;return g>=0&&v>=0&&g+v<1}},48653:t=>{t.exports=function(t,e,i,n){void 0===i&&(i=!1),void 0===n&&(n=[]);for(var r,s,a,o,l,h,u=t.x3-t.x1,c=t.y3-t.y1,d=t.x2-t.x1,f=t.y2-t.y1,p=u*u+c*c,m=u*d+c*f,g=d*d+f*f,v=p*g-m*m,y=0===v?0:1/v,b=t.x1,x=t.y1,w=0;w=0&&s>=0&&r+s<1&&(n.push({x:e[w].x,y:e[w].y}),i)));w++);return n}},96006:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(10690);t.exports=function(t,e){return n(t,e.x,e.y)}},71326:t=>{t.exports=function(t,e){return e.setTo(t.x1,t.y1,t.x2,t.y2,t.x3,t.y3)}},71694:t=>{t.exports=function(t,e){return void 0===e&&(e=[]),e.push({x:t.x1,y:t.y1}),e.push({x:t.x2,y:t.y2}),e.push({x:t.x3,y:t.y3}),e}},33522:t=>{t.exports=function(t,e){return t.x1===e.x1&&t.y1===e.y1&&t.x2===e.x2&&t.y2===e.y2&&t.x3===e.x3&&t.y3===e.y3}},20437:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(2141),r=i(35001);t.exports=function(t,e,i){void 0===i&&(i=new n);var s=t.getLineA(),a=t.getLineB(),o=t.getLineC();if(e<=0||e>=1)return i.x=s.x1,i.y=s.y1,i;var l=r(s),h=r(a),u=r(o),c=(l+h+u)*e,d=0;return cl+h?(d=(c-=l+h)/u,i.x=o.x1+(o.x2-o.x1)*d,i.y=o.y1+(o.y2-o.y1)*d):(d=(c-=l)/h,i.x=a.x1+(a.x2-a.x1)*d,i.y=a.y1+(a.y2-a.y1)*d),i}},80672:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(35001),r=i(2141);t.exports=function(t,e,i,s){void 0===s&&(s=[]);var a=t.getLineA(),o=t.getLineB(),l=t.getLineC(),h=n(a),u=n(o),c=n(l),d=h+u+c;!e&&i>0&&(e=d/i);for(var f=0;fh+u?(m=(p-=h+u)/c,g.x=l.x1+(l.x2-l.x1)*m,g.y=l.y1+(l.y2-l.y1)*m):(m=(p-=h)/u,g.x=o.x1+(o.x2-o.x1)*m,g.y=o.y1+(o.y2-o.y1)*m),s.push(g)}return s}},39757:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(2141);function r(t,e,i,n){var r=t-i,s=e-n,a=r*r+s*s;return Math.sqrt(a)}t.exports=function(t,e){void 0===e&&(e=new n);var i=t.x1,s=t.y1,a=t.x2,o=t.y2,l=t.x3,h=t.y3,u=r(l,h,a,o),c=r(i,s,l,h),d=r(a,o,i,s),f=u+c+d;return e.x=(i*u+a*c+l*d)/f,e.y=(s*u+o*c+h*d)/f,e}},13584:t=>{t.exports=function(t,e,i){return t.x1+=e,t.y1+=i,t.x2+=e,t.y2+=i,t.x3+=e,t.y3+=i,t}},1376:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(35001);t.exports=function(t){var e=t.getLineA(),i=t.getLineB(),r=t.getLineC();return n(e)+n(i)+n(r)}},90260:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(2141);t.exports=function(t,e){void 0===e&&(e=new n);var i=t.x2-t.x1,r=t.y2-t.y1,s=t.x3-t.x1,a=t.y3-t.y1,o=Math.random(),l=Math.random();return o+l>=1&&(o=1-o,l=1-l),e.x=t.x1+(i*o+s*l),e.y=t.y1+(r*o+a*l),e}},52172:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(99614),r=i(39757);t.exports=function(t,e){var i=r(t);return n(t,i.x,i.y,e)}},49907:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(99614);t.exports=function(t,e,i){return n(t,e.x,e.y,i)}},99614:t=>{t.exports=function(t,e,i,n){var r=Math.cos(n),s=Math.sin(n),a=t.x1-e,o=t.y1-i;return t.x1=a*r-o*s+e,t.y1=a*s+o*r+i,a=t.x2-e,o=t.y2-i,t.x2=a*r-o*s+e,t.y2=a*s+o*r+i,a=t.x3-e,o=t.y3-i,t.x3=a*r-o*s+e,t.y3=a*s+o*r+i,t}},16483:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(83419),r=i(10690),s=i(20437),a=i(80672),o=i(23777),l=i(23031),h=i(90260),u=new n({initialize:function(t,e,i,n,r,s){void 0===t&&(t=0),void 0===e&&(e=0),void 0===i&&(i=0),void 0===n&&(n=0),void 0===r&&(r=0),void 0===s&&(s=0),this.type=o.TRIANGLE,this.x1=t,this.y1=e,this.x2=i,this.y2=n,this.x3=r,this.y3=s},contains:function(t,e){return r(this,t,e)},getPoint:function(t,e){return s(this,t,e)},getPoints:function(t,e,i){return a(this,t,e,i)},getRandomPoint:function(t){return h(this,t)},setTo:function(t,e,i,n,r,s){return void 0===t&&(t=0),void 0===e&&(e=0),void 0===i&&(i=0),void 0===n&&(n=0),void 0===r&&(r=0),void 0===s&&(s=0),this.x1=t,this.y1=e,this.x2=i,this.y2=n,this.x3=r,this.y3=s,this},getLineA:function(t){return void 0===t&&(t=new l),t.setTo(this.x1,this.y1,this.x2,this.y2),t},getLineB:function(t){return void 0===t&&(t=new l),t.setTo(this.x2,this.y2,this.x3,this.y3),t},getLineC:function(t){return void 0===t&&(t=new l),t.setTo(this.x3,this.y3,this.x1,this.y1),t},left:{get:function(){return Math.min(this.x1,this.x2,this.x3)},set:function(t){var e=0;e=this.x1<=this.x2&&this.x1<=this.x3?this.x1-t:this.x2<=this.x1&&this.x2<=this.x3?this.x2-t:this.x3-t,this.x1-=e,this.x2-=e,this.x3-=e}},right:{get:function(){return Math.max(this.x1,this.x2,this.x3)},set:function(t){var e=0;e=this.x1>=this.x2&&this.x1>=this.x3?this.x1-t:this.x2>=this.x1&&this.x2>=this.x3?this.x2-t:this.x3-t,this.x1-=e,this.x2-=e,this.x3-=e}},top:{get:function(){return Math.min(this.y1,this.y2,this.y3)},set:function(t){var e=0;e=this.y1<=this.y2&&this.y1<=this.y3?this.y1-t:this.y2<=this.y1&&this.y2<=this.y3?this.y2-t:this.y3-t,this.y1-=e,this.y2-=e,this.y3-=e}},bottom:{get:function(){return Math.max(this.y1,this.y2,this.y3)},set:function(t){var e=0;e=this.y1>=this.y2&&this.y1>=this.y3?this.y1-t:this.y2>=this.y1&&this.y2>=this.y3?this.y2-t:this.y3-t,this.y1-=e,this.y2-=e,this.y3-=e}}});t.exports=u},84435:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(16483);n.Area=i(41658),n.BuildEquilateral=i(39208),n.BuildFromPolygon=i(39545),n.BuildRight=i(90301),n.CenterOn=i(23707),n.Centroid=i(97523),n.CircumCenter=i(24951),n.CircumCircle=i(85614),n.Clone=i(74422),n.Contains=i(10690),n.ContainsArray=i(48653),n.ContainsPoint=i(96006),n.CopyFrom=i(71326),n.Decompose=i(71694),n.Equals=i(33522),n.GetPoint=i(20437),n.GetPoints=i(80672),n.InCenter=i(39757),n.Perimeter=i(1376),n.Offset=i(13584),n.Random=i(90260),n.Rotate=i(52172),n.RotateAroundPoint=i(49907),n.RotateAroundXY=i(99614),t.exports=n},74457:t=>{t.exports=function(t,e,i){return{gameObject:t,enabled:!0,draggable:!1,dropZone:!1,cursor:!1,target:null,camera:null,hitArea:e,hitAreaCallback:i,hitAreaDebug:null,customHitArea:!1,localX:0,localY:0,dragState:0,dragStartX:0,dragStartY:0,dragStartXGlobal:0,dragStartYGlobal:0,dragStartCamera:null,dragX:0,dragY:0}}},84409:t=>{t.exports=function(t,e){return function(i,n,r,s){var a=t.getPixelAlpha(n,r,s.texture.key,s.frame.name);return a&&a>=e}}},7003:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(83419),r=i(93301),s=i(50792),a=i(8214),o=i(8443),l=i(78970),h=i(85098),u=i(42515),c=i(36210),d=i(61340),f=i(85955),p=new n({initialize:function(t,e){this.game=t,this.scaleManager,this.canvas,this.config=e,this.enabled=!0,this.events=new s,this.isOver=!0,this.defaultCursor=\"\",this.keyboard=e.inputKeyboard?new l(this):null,this.mouse=e.inputMouse?new h(this):null,this.touch=e.inputTouch?new c(this):null,this.pointers=[],this.pointersTotal=e.inputActivePointers;for(var i=0;i<=this.pointersTotal;i++){var n=new u(this,i);n.smoothFactor=e.inputSmoothFactor,this.pointers.push(n)}this.mousePointer=e.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 d,this._tempMatrix2=new d,this._tempSkip=!1,this.mousePointerContainer=[this.mousePointer],t.events.once(o.BOOT,this.boot,this)},boot:function(){var t=this.game,e=t.events;this.canvas=t.canvas,this.scaleManager=t.scale,this.events.emit(a.MANAGER_BOOT),e.on(o.PRE_RENDER,this.preRender,this),e.once(o.DESTROY,this.destroy,this)},setCanvasOver:function(t){this.isOver=!0,this.events.emit(a.GAME_OVER,t)},setCanvasOut:function(t){this.isOver=!1,this.events.emit(a.GAME_OUT,t)},preRender:function(){var t=this.game.loop.now,e=this.game.loop.delta,i=this.game.scene.getScenes(!0,!0);this.time=t,this.events.emit(a.MANAGER_UPDATE);for(var n=0;n10&&(t=10-this.pointersTotal);for(var i=0;i{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(96503),r=i(87902),s=i(83419),a=i(93301),o=i(74457),l=i(84409),h=i(20339),u=i(8497),c=i(81154),d=i(8214),f=i(50792),p=i(95540),m=i(23777),g=i(89639),v=i(41212),y=i(37277),b=i(87841),x=i(37303),w=i(44594),T=i(16483),S=i(10690),E=new s({Extends:f,initialize:function(t){f.call(this),this.scene=t,this.systems=t.sys,this.settings=t.sys.settings,this.manager=t.sys.game.input,this.pluginEvents=new f,this.enabled=!0,this.displayList,this.cameras,g.install(this),this.mouse=this.manager.mouse,this.topOnly=!0,this.pollRate=-1,this._pollTimer=0;var e={cancelled:!1};this._eventContainer={stopPropagation:function(){e.cancelled=!0}},this._eventData=e,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,t.sys.events.once(w.BOOT,this.boot,this),t.sys.events.on(w.START,this.start,this)},boot:function(){this.cameras=this.systems.cameras,this.displayList=this.systems.displayList,this.systems.events.once(w.DESTROY,this.destroy,this),this.pluginEvents.emit(d.BOOT)},start:function(){var t=this.systems.events;t.on(w.TRANSITION_START,this.transitionIn,this),t.on(w.TRANSITION_OUT,this.transitionOut,this),t.on(w.TRANSITION_COMPLETE,this.transitionComplete,this),t.on(w.PRE_UPDATE,this.preUpdate,this),t.once(w.SHUTDOWN,this.shutdown,this),this.manager.events.on(d.GAME_OUT,this.onGameOut,this),this.manager.events.on(d.GAME_OVER,this.onGameOver,this),this.enabled=!0,this._dragState=[0,0,0,0,0,0,0,0,0,0],this.pluginEvents.emit(d.START)},onGameOver:function(t){this.isActive()&&this.emit(d.GAME_OVER,t.timeStamp,t)},onGameOut:function(t){this.isActive()&&this.emit(d.GAME_OUT,t.timeStamp,t)},preUpdate:function(){this.pluginEvents.emit(d.PRE_UPDATE);var t=this._pendingRemoval,e=this._pendingInsertion,i=t.length,n=e.length;if(0!==i||0!==n){for(var r=this._list,s=0;s-1&&(r.splice(o,1),this.clear(a,!0))}this._pendingRemoval.length=0,this._list=r.concat(e.splice(0))}},isActive:function(){return this.manager&&this.manager.enabled&&this.enabled&&this.scene.sys.canInput()},setCursor:function(t){this.manager&&this.manager.setCursor(t)},resetCursor:function(){this.manager&&this.manager.resetCursor(null,!0)},updatePoll:function(t,e){if(!this.isActive())return!1;if(this.pluginEvents.emit(d.UPDATE,t,e),this._updatedThisFrame)return this._updatedThisFrame=!1,!1;var i,n=this.manager.pointers;for(i=0;i0){if(this._pollTimer-=e,!(this._pollTimer<0))return!1;this._pollTimer=this.pollRate}var s=!1;for(i=0;i0&&(s=!0)}return s},update:function(t,e){if(!this.isActive())return!1;for(var i=!1,n=0;n0&&(i=!0)}return this._updatedThisFrame=!0,i},clear:function(t,e){void 0===e&&(e=!1),this.disable(t);var i=t.input;i&&(this.removeDebug(t),this.manager.resetCursor(i),i.gameObject=void 0,i.target=void 0,i.hitArea=void 0,i.hitAreaCallback=void 0,i.callbackContext=void 0,t.input=null),e||this.queueForRemoval(t);var n=this._draggable.indexOf(t);return n>-1&&this._draggable.splice(n,1),t},disable:function(t,e){void 0===e&&(e=!1);var i=t.input;i&&(i.enabled=!1,i.dragState=0);for(var n,r=this._drag,s=this._over,a=this.manager,o=0;o-1&&r[o].splice(n,1),(n=s[o].indexOf(t))>-1&&s[o].splice(n,1);return e&&this.resetCursor(),this},enable:function(t,e,i,n){return void 0===n&&(n=!1),t.input?t.input.enabled=!0:this.setHitArea(t,e,i),t.input&&n&&!t.input.dropZone&&(t.input.dropZone=n),this},hitTestPointer:function(t){for(var e=this.cameras.getCamerasBelowPointer(t),i=0;i0)return t.camera=n,r}return t.camera=e[0],[]},processDownEvents:function(t){var e=0,i=this._temp,n=this._eventData,r=this._eventContainer;n.cancelled=!1;for(var s=0;s0&&h(t.x,t.y,t.downX,t.downY)>=r||n>0&&e>=t.downTime+n)&&(i=!0),i)return this.setDragState(t,3),this.processDragStartList(t)},processDragStartList:function(t){if(3!==this.getDragState(t))return 0;var e=this._drag[t.id];e.length>1&&(e=e.slice(0));for(var i=0;i1&&(this.sortGameObjects(i,t),this.topOnly&&i.splice(1)),this._drag[t.id]=i,0===this.dragDistanceThreshold&&0===this.dragTimeThreshold?(this.setDragState(t,3),this.processDragStartList(t)):(this.setDragState(t,2),0))},processDragMoveEvent:function(t){if(2===this.getDragState(t)&&this.processDragThresholdEvent(t,this.manager.game.loop.now),4!==this.getDragState(t))return 0;var e=this._tempZones,i=this._drag[t.id];i.length>1&&(i=i.slice(0));for(var n=0;n0?(a.emit(d.GAMEOBJECT_DRAG_LEAVE,t,l),this.emit(d.DRAG_LEAVE,t,a,l),o.target=e[0],l=o.target,a.emit(d.GAMEOBJECT_DRAG_ENTER,t,l),this.emit(d.DRAG_ENTER,t,a,l)):(a.emit(d.GAMEOBJECT_DRAG_LEAVE,t,l),this.emit(d.DRAG_LEAVE,t,a,l),e[0]?(o.target=e[0],l=o.target,a.emit(d.GAMEOBJECT_DRAG_ENTER,t,l),this.emit(d.DRAG_ENTER,t,a,l)):o.target=null)}else!l&&e[0]&&(o.target=e[0],l=o.target,a.emit(d.GAMEOBJECT_DRAG_ENTER,t,l),this.emit(d.DRAG_ENTER,t,a,l));var u=t.positionToCamera(o.dragStartCamera);if(a.parentContainer){var c=u.x-o.dragStartXGlobal,f=u.y-o.dragStartYGlobal,p=a.getParentRotation(),m=c*Math.cos(p)+f*Math.sin(p),g=f*Math.cos(p)-c*Math.sin(p);m*=1/a.parentContainer.scaleX,g*=1/a.parentContainer.scaleY,r=m+o.dragStartX,s=g+o.dragStartY}else r=u.x-o.dragX,s=u.y-o.dragY;a.emit(d.GAMEOBJECT_DRAG,t,r,s),this.emit(d.DRAG,t,a,r,s)}return i.length},processDragUpEvent:function(t){var e=this._drag[t.id];e.length>1&&(e=e.slice(0));for(var i=0;i0){var s=this.manager,a=this._eventData,o=this._eventContainer;a.cancelled=!1;for(var l=0;l0){var r=this.manager,s=this._eventData,a=this._eventContainer;s.cancelled=!1,this.sortGameObjects(e,t);for(var o=0;o0){for(this.sortGameObjects(r,t),e=0;e0){for(this.sortGameObjects(s,t),e=0;e-1&&this._draggable.splice(r,1)}return this},makePixelPerfect:function(t){void 0===t&&(t=1);var e=this.systems.textures;return l(e,t)},setHitArea:function(t,e,i){if(void 0===e)return this.setHitAreaFromTexture(t);Array.isArray(t)||(t=[t]);var n=!1,r=!1,s=!1,a=!1,l=!1,h=!0;if(v(e)&&Object.keys(e).length){var u=e;if(!t.some((function(t){return t.hasOwnProperty(\"faces\")}))){e=p(u,\"hitArea\",null),i=p(u,\"hitAreaCallback\",null),l=p(u,\"pixelPerfect\",!1);var c=p(u,\"alphaTolerance\",1);l&&(e={},i=this.makePixelPerfect(c))}n=p(u,\"draggable\",!1),r=p(u,\"dropZone\",!1),s=p(u,\"cursor\",!1),a=p(u,\"useHandCursor\",!1),e&&i||(this.setHitAreaFromTexture(t),h=!1)}else\"function\"!=typeof e||i||(i=e,e={});for(var d=0;d{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(35154),r={},s={register:function(t,e,i,n,s){r[t]={plugin:e,mapping:i,settingsKey:n,configKey:s}},getPlugin:function(t){return r[t]},install:function(t){var e=t.scene.sys,i=e.settings.input,s=e.game.config;for(var a in r){var o=r[a].plugin,l=r[a].mapping,h=r[a].settingsKey,u=r[a].configKey;n(i,h,s[u])&&(t[l]=new o(t))}},remove:function(t){r.hasOwnProperty(t)&&delete r[t]}};t.exports=s},42515:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(31040),r=i(83419),s=i(20339),a=i(43855),o=i(47235),l=i(26099),h=i(25892),u=new r({initialize:function(t,e){this.manager=t,this.id=e,this.event,this.downElement,this.upElement,this.camera=null,this.button=0,this.buttons=0,this.position=new l,this.prevPosition=new l,this.midPoint=new l(-1,-1),this.velocity=new l,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=0===e,this.locked=!1,this.deltaX=0,this.deltaY=0,this.deltaZ=0},updateWorldPoint:function(t){var e=t.getWorldPoint(this.x,this.y);return this.worldX=e.x,this.worldY=e.y,this},positionToCamera:function(t,e){return t.getWorldPoint(this.x,this.y,e)},updateMotion:function(){var t=this.position.x,e=this.position.y,i=this.midPoint.x,r=this.midPoint.y;if(t!==i||e!==r){var s=o(this.motionFactor,i,t),l=o(this.motionFactor,r,e);a(s,t,.1)&&(s=t),a(l,e,.1)&&(l=e),this.midPoint.set(s,l);var h=t-s,u=e-l;this.velocity.set(h,u),this.angle=n(s,l,t,e),this.distance=Math.sqrt(h*h+u*u)}},up:function(t){\"buttons\"in t&&(this.buttons=t.buttons),this.event=t,this.button=t.button,this.upElement=t.target,this.manager.transformPointer(this,t.pageX,t.pageY,!1),0===t.button&&(this.primaryDown=!1,this.upX=this.x,this.upY=this.y),0===this.buttons&&(this.isDown=!1,this.upTime=t.timeStamp,this.wasTouch=!1)},down:function(t){\"buttons\"in t&&(this.buttons=t.buttons),this.event=t,this.button=t.button,this.downElement=t.target,this.manager.transformPointer(this,t.pageX,t.pageY,!1),0===t.button&&(this.primaryDown=!0,this.downX=this.x,this.downY=this.y),h.macOS&&t.ctrlKey&&(this.buttons=2,this.primaryDown=!1),this.isDown||(this.isDown=!0,this.downTime=t.timeStamp),this.wasTouch=!1},move:function(t){\"buttons\"in t&&(this.buttons=t.buttons),this.event=t,this.manager.transformPointer(this,t.pageX,t.pageY,!0),this.locked&&(this.movementX=t.movementX||t.mozMovementX||t.webkitMovementX||0,this.movementY=t.movementY||t.mozMovementY||t.webkitMovementY||0),this.moveTime=t.timeStamp,this.wasTouch=!1},wheel:function(t){\"buttons\"in t&&(this.buttons=t.buttons),this.event=t,this.manager.transformPointer(this,t.pageX,t.pageY,!1),this.deltaX=t.deltaX,this.deltaY=t.deltaY,this.deltaZ=t.deltaZ,this.wasTouch=!1},touchstart:function(t,e){t.pointerId&&(this.pointerId=t.pointerId),this.identifier=t.identifier,this.target=t.target,this.active=!0,this.buttons=1,this.event=e,this.downElement=t.target,this.manager.transformPointer(this,t.pageX,t.pageY,!1),this.primaryDown=!0,this.downX=this.x,this.downY=this.y,this.downTime=e.timeStamp,this.isDown=!0,this.wasTouch=!0,this.wasCanceled=!1,this.updateMotion()},touchmove:function(t,e){this.event=e,this.manager.transformPointer(this,t.pageX,t.pageY,!0),this.moveTime=e.timeStamp,this.wasTouch=!0,this.updateMotion()},touchend:function(t,e){this.buttons=0,this.event=e,this.upElement=t.target,this.manager.transformPointer(this,t.pageX,t.pageY,!1),this.primaryDown=!1,this.upX=this.x,this.upY=this.y,this.upTime=e.timeStamp,this.isDown=!1,this.wasTouch=!0,this.wasCanceled=!1,this.active=!1,this.updateMotion()},touchcancel:function(t,e){this.buttons=0,this.event=e,this.upElement=t.target,this.manager.transformPointer(this,t.pageX,t.pageY,!1),this.primaryDown=!1,this.upX=this.x,this.upY=this.y,this.upTime=e.timeStamp,this.isDown=!1,this.wasTouch=!0,this.wasCanceled=!0,this.active=!1},noButtonDown:function(){return 0===this.buttons},leftButtonDown:function(){return!!(1&this.buttons)},rightButtonDown:function(){return!!(2&this.buttons)},middleButtonDown:function(){return!!(4&this.buttons)},backButtonDown:function(){return!!(8&this.buttons)},forwardButtonDown:function(){return!!(16&this.buttons)},leftButtonReleased:function(){return 0===this.buttons?0===this.button&&!this.isDown:0===this.button},rightButtonReleased:function(){return 0===this.buttons?2===this.button&&!this.isDown:2===this.button},middleButtonReleased:function(){return 0===this.buttons?1===this.button&&!this.isDown:1===this.button},backButtonReleased:function(){return 0===this.buttons?3===this.button&&!this.isDown:3===this.button},forwardButtonReleased:function(){return 0===this.buttons?4===this.button&&!this.isDown:4===this.button},getDistance:function(){return this.isDown?s(this.downX,this.downY,this.x,this.y):s(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?n(this.downX,this.downY,this.x,this.y):n(this.downX,this.downY,this.upX,this.upY)},getInterpolatedPosition:function(t,e){void 0===t&&(t=10),void 0===e&&(e=[]);for(var i=this.prevPosition.x,n=this.prevPosition.y,r=this.position.x,s=this.position.y,a=0;a{t.exports={MOUSE_DOWN:0,MOUSE_MOVE:1,MOUSE_UP:2,TOUCH_START:3,TOUCH_MOVE:4,TOUCH_END:5,POINTER_LOCK_CHANGE:6,TOUCH_CANCEL:7,MOUSE_WHEEL:8}},7179:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports=\"boot\"},85375:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports=\"destroy\"},39843:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports=\"dragend\"},23388:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports=\"dragenter\"},16133:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports=\"drag\"},27829:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports=\"dragleave\"},53904:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports=\"dragover\"},56058:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports=\"dragstart\"},2642:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports=\"drop\"},88171:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports=\"gameobjectdown\"},36147:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports=\"dragend\"},71692:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports=\"dragenter\"},96149:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports=\"drag\"},81285:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports=\"dragleave\"},74048:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports=\"dragover\"},21322:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports=\"dragstart\"},49378:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports=\"drop\"},86754:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports=\"gameobjectmove\"},86433:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports=\"gameobjectout\"},60709:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports=\"gameobjectover\"},24081:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports=\"pointerdown\"},11172:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports=\"pointermove\"},18907:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports=\"pointerout\"},95579:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports=\"pointerover\"},35368:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports=\"pointerup\"},26972:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports=\"wheel\"},47078:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports=\"gameobjectup\"},73802:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports=\"gameobjectwheel\"},56718:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports=\"gameout\"},25936:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports=\"gameover\"},27503:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports=\"boot\"},50852:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports=\"process\"},96438:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports=\"update\"},59152:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports=\"pointerlockchange\"},47777:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports=\"pointerdown\"},27957:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports=\"pointerdownoutside\"},19444:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports=\"pointermove\"},54251:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports=\"pointerout\"},18667:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports=\"pointerover\"},27192:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports=\"pointerup\"},24652:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports=\"pointerupoutside\"},45132:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports=\"wheel\"},44512:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports=\"preupdate\"},15757:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports=\"shutdown\"},41637:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports=\"start\"},93802:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports=\"update\"},8214:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports={BOOT:i(7179),DESTROY:i(85375),DRAG_END:i(39843),DRAG_ENTER:i(23388),DRAG:i(16133),DRAG_LEAVE:i(27829),DRAG_OVER:i(53904),DRAG_START:i(56058),DROP:i(2642),GAME_OUT:i(56718),GAME_OVER:i(25936),GAMEOBJECT_DOWN:i(88171),GAMEOBJECT_DRAG_END:i(36147),GAMEOBJECT_DRAG_ENTER:i(71692),GAMEOBJECT_DRAG:i(96149),GAMEOBJECT_DRAG_LEAVE:i(81285),GAMEOBJECT_DRAG_OVER:i(74048),GAMEOBJECT_DRAG_START:i(21322),GAMEOBJECT_DROP:i(49378),GAMEOBJECT_MOVE:i(86754),GAMEOBJECT_OUT:i(86433),GAMEOBJECT_OVER:i(60709),GAMEOBJECT_POINTER_DOWN:i(24081),GAMEOBJECT_POINTER_MOVE:i(11172),GAMEOBJECT_POINTER_OUT:i(18907),GAMEOBJECT_POINTER_OVER:i(95579),GAMEOBJECT_POINTER_UP:i(35368),GAMEOBJECT_POINTER_WHEEL:i(26972),GAMEOBJECT_UP:i(47078),GAMEOBJECT_WHEEL:i(73802),MANAGER_BOOT:i(27503),MANAGER_PROCESS:i(50852),MANAGER_UPDATE:i(96438),POINTER_DOWN:i(47777),POINTER_DOWN_OUTSIDE:i(27957),POINTER_MOVE:i(19444),POINTER_OUT:i(54251),POINTER_OVER:i(18667),POINTER_UP:i(27192),POINTER_UP_OUTSIDE:i(24652),POINTER_WHEEL:i(45132),POINTERLOCK_CHANGE:i(59152),PRE_UPDATE:i(44512),SHUTDOWN:i(15757),START:i(41637),UPDATE:i(93802)}},97421:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=new(i(83419))({initialize:function(t,e){this.pad=t,this.events=t.events,this.index=e,this.value=0,this.threshold=.1},update:function(t){this.value=t},getValue:function(){return Math.abs(this.value){\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(83419),r=i(92734),s=new n({initialize:function(t,e){this.pad=t,this.events=t.manager,this.index=e,this.value=0,this.threshold=1,this.pressed=!1},update:function(t){this.value=t;var e=this.pad,i=this.index;t>=this.threshold?this.pressed||(this.pressed=!0,this.events.emit(r.BUTTON_DOWN,e,this,t),this.pad.emit(r.GAMEPAD_BUTTON_DOWN,i,t,this)):this.pressed&&(this.pressed=!1,this.events.emit(r.BUTTON_UP,e,this,t),this.pad.emit(r.GAMEPAD_BUTTON_UP,i,t,this))},destroy:function(){this.pad=null,this.events=null}});t.exports=s},99125:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(97421),r=i(28884),s=i(83419),a=i(50792),o=i(26099),l=new s({Extends:a,initialize:function(t,e){a.call(this),this.manager=t,this.pad=e,this.id=e.id,this.index=e.index;for(var i=[],s=0;s=2&&(this.leftStick.set(s[0].getValue(),s[1].getValue()),r>=4&&this.rightStick.set(s[2].getValue(),s[3].getValue()))}},destroy:function(){var t;for(this.removeAllListeners(),this.manager=null,this.pad=null,t=0;t{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(83419),r=i(50792),s=i(92734),a=i(99125),o=i(35154),l=i(89639),h=i(8214),u=new n({Extends:r,initialize:function(t){r.call(this),this.scene=t.scene,this.settings=this.scene.sys.settings,this.sceneInputPlugin=t,this.enabled=!0,this.target,this.gamepads=[],this.queue=[],this.onGamepadHandler,this._pad1,this._pad2,this._pad3,this._pad4,t.pluginEvents.once(h.BOOT,this.boot,this),t.pluginEvents.on(h.START,this.start,this)},boot:function(){var t=this.scene.sys.game,e=this.settings.input,i=t.config;this.enabled=o(e,\"gamepad\",i.inputGamepad)&&t.device.input.gamepads,this.target=o(e,\"gamepad.target\",i.inputGamepadEventTarget),this.sceneInputPlugin.pluginEvents.once(h.DESTROY,this.destroy,this)},start:function(){this.enabled&&(this.startListeners(),this.refreshPads()),this.sceneInputPlugin.pluginEvents.once(h.SHUTDOWN,this.shutdown,this)},isActive:function(){return this.enabled&&this.scene.sys.isActive()},startListeners:function(){var t=this,e=this.target,i=function(e){!e.defaultPrevented&&t.isActive()&&(t.refreshPads(),t.queue.push(e))};this.onGamepadHandler=i,e.addEventListener(\"gamepadconnected\",i,!1),e.addEventListener(\"gamepaddisconnected\",i,!1),this.sceneInputPlugin.pluginEvents.on(h.UPDATE,this.update,this)},stopListeners:function(){this.target.removeEventListener(\"gamepadconnected\",this.onGamepadHandler),this.target.removeEventListener(\"gamepaddisconnected\",this.onGamepadHandler),this.sceneInputPlugin.pluginEvents.off(h.UPDATE,this.update);for(var t=0;t{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports={UP:12,DOWN:13,LEFT:14,RIGHT:15,SELECT:8,START:9,B:0,A:1,Y:2,X:3,LEFT_SHOULDER:4,RIGHT_SHOULDER:5}},65294:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports={UP:12,DOWN:13,LEFT:14,RIGHT:15,SHARE:8,OPTIONS:9,PS:16,TOUCHBAR:17,X:0,CIRCLE:1,SQUARE:2,TRIANGLE:3,L1:4,R1:5,L2:6,R2:7,L3:10,R3:11,LEFT_STICK_H:0,LEFT_STICK_V:1,RIGHT_STICK_H:2,RIGHT_STICK_V:3}},90089:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports={UP:12,DOWN:13,LEFT:14,RIGHT:15,MENU:16,A:0,B:1,X:2,Y:3,LB:4,RB:5,LT:6,RT:7,BACK:8,START:9,LS:10,RS:11,LEFT_STICK_H:0,LEFT_STICK_V:1,RIGHT_STICK_H:2,RIGHT_STICK_V:3}},64894:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports={DUALSHOCK_4:i(65294),SNES_USB:i(89651),XBOX_360:i(90089)}},46008:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports=\"down\"},7629:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports=\"up\"},42206:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports=\"connected\"},86544:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports=\"disconnected\"},94784:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports=\"down\"},14325:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports=\"up\"},92734:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports={BUTTON_DOWN:i(46008),BUTTON_UP:i(7629),CONNECTED:i(42206),DISCONNECTED:i(86544),GAMEPAD_BUTTON_DOWN:i(94784),GAMEPAD_BUTTON_UP:i(14325)}},48646:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports={Axis:i(97421),Button:i(28884),Events:i(92734),Gamepad:i(99125),GamepadPlugin:i(56654),Configs:i(64894)}},14350:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(93301),r=i(79291),s={CreatePixelPerfectHandler:i(84409),CreateInteractiveObject:i(74457),Events:i(8214),Gamepad:i(48646),InputManager:i(7003),InputPlugin:i(48205),InputPluginCache:i(89639),Keyboard:i(51442),Mouse:i(87078),Pointer:i(42515),Touch:i(95618)};s=r(!1,s,n),t.exports=s},78970:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(72905),r=i(83419),s=i(8443),a=i(8214),o=i(46032),l=i(29747),h=new r({initialize:function(t){this.manager=t,this.queue=[],this.preventDefault=!0,this.captures=[],this.enabled=!1,this.target,this.onKeyDown=l,this.onKeyUp=l,t.events.once(a.MANAGER_BOOT,this.boot,this)},boot:function(){var t=this.manager.config;this.enabled=t.inputKeyboard,this.target=t.inputKeyboardEventTarget,this.addCapture(t.inputKeyboardCapture),!this.target&&window&&(this.target=window),this.enabled&&this.target&&this.startListeners(),this.manager.game.events.on(s.POST_STEP,this.postUpdate,this)},startListeners:function(){var t=this;this.onKeyDown=function(e){if(!e.defaultPrevented&&t.enabled&&t.manager){t.queue.push(e),t.manager.events.emit(a.MANAGER_PROCESS);var i=e.altKey||e.ctrlKey||e.shiftKey||e.metaKey;t.preventDefault&&!i&&t.captures.indexOf(e.keyCode)>-1&&e.preventDefault()}},this.onKeyUp=function(e){if(!e.defaultPrevented&&t.enabled&&t.manager){t.queue.push(e),t.manager.events.emit(a.MANAGER_PROCESS);var i=e.altKey||e.ctrlKey||e.shiftKey||e.metaKey;t.preventDefault&&!i&&t.captures.indexOf(e.keyCode)>-1&&e.preventDefault()}};var e=this.target;e&&(e.addEventListener(\"keydown\",this.onKeyDown,!1),e.addEventListener(\"keyup\",this.onKeyUp,!1),this.enabled=!0)},stopListeners:function(){var t=this.target;t.removeEventListener(\"keydown\",this.onKeyDown,!1),t.removeEventListener(\"keyup\",this.onKeyUp,!1),this.enabled=!1},postUpdate:function(){this.queue=[]},addCapture:function(t){\"string\"==typeof t&&(t=t.split(\",\")),Array.isArray(t)||(t=[t]);for(var e=this.captures,i=0;i0},removeCapture:function(t){\"string\"==typeof t&&(t=t.split(\",\")),Array.isArray(t)||(t=[t]);for(var e=this.captures,i=0;i0},clearCaptures:function(){this.captures=[],this.preventDefault=!1},destroy:function(){this.stopListeners(),this.clearCaptures(),this.queue=[],this.manager.game.events.off(s.POST_RENDER,this.postUpdate,this),this.target=null,this.enabled=!1,this.manager=null}});t.exports=h},28846:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(83419),r=i(50792),s=i(95922),a=i(8443),o=i(35154),l=i(8214),h=i(89639),u=i(30472),c=i(46032),d=i(87960),f=i(74600),p=i(44594),m=i(56583),g=new n({Extends:r,initialize:function(t){r.call(this),this.game=t.systems.game,this.scene=t.scene,this.settings=this.scene.sys.settings,this.sceneInputPlugin=t,this.manager=t.manager.keyboard,this.enabled=!0,this.keys=[],this.combos=[],this.prevCode=null,this.prevTime=0,this.prevType=null,t.pluginEvents.once(l.BOOT,this.boot,this),t.pluginEvents.on(l.START,this.start,this)},boot:function(){var t=this.settings.input;this.enabled=o(t,\"keyboard\",!0);var e=o(t,\"keyboard.capture\",null);e&&this.addCaptures(e),this.sceneInputPlugin.pluginEvents.once(l.DESTROY,this.destroy,this)},start:function(){this.sceneInputPlugin.manager.events.on(l.MANAGER_PROCESS,this.update,this),this.sceneInputPlugin.pluginEvents.once(l.SHUTDOWN,this.shutdown,this),this.game.events.on(a.BLUR,this.resetKeys,this),this.scene.sys.events.on(p.PAUSE,this.resetKeys,this),this.scene.sys.events.on(p.SLEEP,this.resetKeys,this)},isActive:function(){return this.enabled&&this.scene.sys.canInput()},addCapture:function(t){return this.manager.addCapture(t),this},removeCapture:function(t){return this.manager.removeCapture(t),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:c.UP,down:c.DOWN,left:c.LEFT,right:c.RIGHT,space:c.SPACE,shift:c.SHIFT})},addKeys:function(t,e,i){void 0===e&&(e=!0),void 0===i&&(i=!1);var n={};if(\"string\"==typeof t){t=t.split(\",\");for(var r=0;r-1?n[r]=t:n[t.keyCode]=t,e&&this.addCapture(t.keyCode),t.setEmitOnRepeat(i),t}return\"string\"==typeof t&&(t=c[t.toUpperCase()]),n[t]||(n[t]=new u(this,t),e&&this.addCapture(t),n[t].setEmitOnRepeat(i)),n[t]},removeKey:function(t,e,i){void 0===e&&(e=!1),void 0===i&&(i=!1);var n,r=this.keys;if(t instanceof u){var s=r.indexOf(t);s>-1&&(n=this.keys[s],this.keys[s]=void 0)}else\"string\"==typeof t&&(t=c[t.toUpperCase()]);return r[t]&&(n=r[t],r[t]=void 0),n&&(n.plugin=null,i&&this.removeCapture(n.keyCode),e&&n.destroy()),this},removeAllKeys:function(t,e){void 0===t&&(t=!1),void 0===e&&(e=!1);for(var i=this.keys,n=0;nt._tick)return t._tick=i,!0}return!1},update:function(){var t=this.manager.queue,e=t.length;if(this.isActive()&&0!==e)for(var i=this.keys,n=0;n{t.exports=function(t,e){return e.timeLastMatched=t.timeStamp,e.index++,e.index===e.size||(e.current=e.keyCodes[e.index],!1)}},87960:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(83419),r=i(95922),s=i(95540),a=i(68769),o=i(92803),l=new n({initialize:function(t,e,i){if(void 0===i&&(i={}),e.length<2)return!1;this.manager=t,this.enabled=!0,this.keyCodes=[];for(var n=0;n{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(66970);t.exports=function(t,e){if(e.matched)return!0;var i=!1,r=!1;if(t.keyCode===e.current)if(e.index>0&&e.maxKeyDelay>0){var s=e.timeLastMatched+e.maxKeyDelay;t.timeStamp<=s&&(r=!0,i=n(t,e))}else r=!0,i=n(t,e);return!r&&e.resetOnWrongKey&&(e.index=0,e.current=e.keyCodes[0]),i&&(e.timeLastMatched=t.timeStamp,e.matched=!0,e.timeMatched=t.timeStamp),i}},92803:t=>{t.exports=function(t){return t.current=t.keyCodes[0],t.index=0,t.timeLastMatched=0,t.matched=!1,t.timeMatched=0,t}},92612:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports=\"keydown\"},23345:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports=\"keyup\"},21957:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports=\"keycombomatch\"},44743:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports=\"down\"},3771:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports=\"keydown-\"},46358:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports=\"keyup-\"},75674:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports=\"up\"},95922:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports={ANY_KEY_DOWN:i(92612),ANY_KEY_UP:i(23345),COMBO_MATCH:i(21957),DOWN:i(44743),KEY_DOWN:i(3771),KEY_UP:i(46358),UP:i(75674)}},51442:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports={Events:i(95922),KeyboardManager:i(78970),KeyboardPlugin:i(28846),Key:i(30472),KeyCodes:i(46032),KeyCombo:i(87960),AdvanceKeyCombo:i(66970),ProcessKeyCombo:i(68769),ResetKeyCombo:i(92803),JustDown:i(90229),JustUp:i(38796),DownDuration:i(37015),UpDuration:i(41170)}},37015:t=>{t.exports=function(t,e){void 0===e&&(e=50);var i=t.plugin.game.loop.time-t.timeDown;return t.isDown&&i{t.exports=function(t){return!!t._justDown&&(t._justDown=!1,!0)}},38796:t=>{t.exports=function(t){return!!t._justUp&&(t._justUp=!1,!0)}},30472:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(83419),r=i(50792),s=i(95922),a=new n({Extends:r,initialize:function(t,e){r.call(this),this.plugin=t,this.keyCode=e,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(t){return this.emitOnRepeat=t,this},onDown:function(t){this.originalEvent=t,this.enabled&&(this.altKey=t.altKey,this.ctrlKey=t.ctrlKey,this.shiftKey=t.shiftKey,this.metaKey=t.metaKey,this.location=t.location,this.repeats++,this.isDown?this.emitOnRepeat&&this.emit(s.DOWN,this,t):(this.isDown=!0,this.isUp=!1,this.timeDown=t.timeStamp,this.duration=0,this._justDown=!0,this._justUp=!1,this.emit(s.DOWN,this,t)))},onUp:function(t){this.originalEvent=t,this.enabled&&(this.isDown=!1,this.isUp=!0,this.timeUp=t.timeStamp,this.duration=this.timeUp-this.timeDown,this.repeats=0,this._justDown=!1,this._justUp=!0,this._tick=-1,this.emit(s.UP,this,t))},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}});t.exports=a},46032:t=>{t.exports={BACKSPACE:8,TAB:9,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:42,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,NUMPAD_ZERO:96,NUMPAD_ONE:97,NUMPAD_TWO:98,NUMPAD_THREE:99,NUMPAD_FOUR:100,NUMPAD_FIVE:101,NUMPAD_SIX:102,NUMPAD_SEVEN:103,NUMPAD_EIGHT:104,NUMPAD_NINE:105,NUMPAD_ADD:107,NUMPAD_SUBTRACT:109,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,SEMICOLON:186,PLUS:187,COMMA:188,MINUS:189,PERIOD:190,FORWARD_SLASH:191,BACK_SLASH:220,QUOTES:222,BACKTICK:192,OPEN_BRACKET:219,CLOSED_BRACKET:221,SEMICOLON_FIREFOX:59,COLON:58,COMMA_FIREFOX_WINDOWS:60,COMMA_FIREFOX:62,BRACKET_RIGHT_FIREFOX:174,BRACKET_LEFT_FIREFOX:175}},74600:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(46032),r={};for(var s in n)r[n[s]]=s;t.exports=r},41170:t=>{t.exports=function(t,e){void 0===e&&(e=50);var i=t.plugin.game.loop.time-t.timeUp;return t.isUp&&i{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(83419),r=i(89357),s=i(8214),a=i(29747),o=new n({initialize:function(t){this.manager=t,this.preventDefaultDown=!0,this.preventDefaultUp=!0,this.preventDefaultMove=!0,this.preventDefaultWheel=!1,this.enabled=!1,this.target,this.locked=!1,this.onMouseMove=a,this.onMouseDown=a,this.onMouseUp=a,this.onMouseDownWindow=a,this.onMouseUpWindow=a,this.onMouseOver=a,this.onMouseOut=a,this.onMouseWheel=a,this.pointerLockChange=a,this.isTop=!0,t.events.once(s.MANAGER_BOOT,this.boot,this)},boot:function(){var t=this.manager.config;this.enabled=t.inputMouse,this.target=t.inputMouseEventTarget,this.passive=t.inputMousePassive,this.preventDefaultDown=t.inputMousePreventDefaultDown,this.preventDefaultUp=t.inputMousePreventDefaultUp,this.preventDefaultMove=t.inputMousePreventDefaultMove,this.preventDefaultWheel=t.inputMousePreventDefaultWheel,this.target?\"string\"==typeof this.target&&(this.target=document.getElementById(this.target)):this.target=this.manager.game.canvas,t.disableContextMenu&&this.disableContextMenu(),this.enabled&&this.target&&this.startListeners()},disableContextMenu:function(){return this.target.addEventListener(\"contextmenu\",(function(t){return t.preventDefault(),!1})),this},requestPointerLock:function(){if(r.pointerLock){var t=this.target;t.requestPointerLock=t.requestPointerLock||t.mozRequestPointerLock||t.webkitRequestPointerLock,t.requestPointerLock()}},releasePointerLock:function(){r.pointerLock&&(document.exitPointerLock=document.exitPointerLock||document.mozExitPointerLock||document.webkitExitPointerLock,document.exitPointerLock())},startListeners:function(){var t=this.target;if(t){var e=this,i=this.manager,n=i.canvas,s=window&&window.focus&&i.game.config.autoFocus;this.onMouseMove=function(t){!t.defaultPrevented&&e.enabled&&i&&i.enabled&&(i.onMouseMove(t),e.preventDefaultMove&&t.preventDefault())},this.onMouseDown=function(t){s&&window.focus(),!t.defaultPrevented&&e.enabled&&i&&i.enabled&&(i.onMouseDown(t),e.preventDefaultDown&&t.target===n&&t.preventDefault())},this.onMouseDownWindow=function(t){t.sourceCapabilities&&t.sourceCapabilities.firesTouchEvents||!t.defaultPrevented&&e.enabled&&i&&i.enabled&&t.target!==n&&i.onMouseDown(t)},this.onMouseUp=function(t){!t.defaultPrevented&&e.enabled&&i&&i.enabled&&(i.onMouseUp(t),e.preventDefaultUp&&t.target===n&&t.preventDefault())},this.onMouseUpWindow=function(t){t.sourceCapabilities&&t.sourceCapabilities.firesTouchEvents||!t.defaultPrevented&&e.enabled&&i&&i.enabled&&t.target!==n&&i.onMouseUp(t)},this.onMouseOver=function(t){!t.defaultPrevented&&e.enabled&&i&&i.enabled&&i.setCanvasOver(t)},this.onMouseOut=function(t){!t.defaultPrevented&&e.enabled&&i&&i.enabled&&i.setCanvasOut(t)},this.onMouseWheel=function(t){!t.defaultPrevented&&e.enabled&&i&&i.enabled&&i.onMouseWheel(t),e.preventDefaultWheel&&t.target===n&&t.preventDefault()};var a={passive:!0};if(t.addEventListener(\"mousemove\",this.onMouseMove),t.addEventListener(\"mousedown\",this.onMouseDown),t.addEventListener(\"mouseup\",this.onMouseUp),t.addEventListener(\"mouseover\",this.onMouseOver,a),t.addEventListener(\"mouseout\",this.onMouseOut,a),this.preventDefaultWheel?t.addEventListener(\"wheel\",this.onMouseWheel,{passive:!1}):t.addEventListener(\"wheel\",this.onMouseWheel,a),window&&i.game.config.inputWindowEvents)try{window.top.addEventListener(\"mousedown\",this.onMouseDownWindow,a),window.top.addEventListener(\"mouseup\",this.onMouseUpWindow,a)}catch(t){window.addEventListener(\"mousedown\",this.onMouseDownWindow,a),window.addEventListener(\"mouseup\",this.onMouseUpWindow,a),this.isTop=!1}r.pointerLock&&(this.pointerLockChange=function(t){var n=e.target;e.locked=document.pointerLockElement===n||document.mozPointerLockElement===n||document.webkitPointerLockElement===n,i.onPointerLockChange(t)},document.addEventListener(\"pointerlockchange\",this.pointerLockChange,!0),document.addEventListener(\"mozpointerlockchange\",this.pointerLockChange,!0),document.addEventListener(\"webkitpointerlockchange\",this.pointerLockChange,!0)),this.enabled=!0}},stopListeners:function(){var t=this.target;t.removeEventListener(\"mousemove\",this.onMouseMove),t.removeEventListener(\"mousedown\",this.onMouseDown),t.removeEventListener(\"mouseup\",this.onMouseUp),t.removeEventListener(\"mouseover\",this.onMouseOver),t.removeEventListener(\"mouseout\",this.onMouseOut),window&&((t=this.isTop?window.top:window).removeEventListener(\"mousedown\",this.onMouseDownWindow),t.removeEventListener(\"mouseup\",this.onMouseUpWindow)),r.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}});t.exports=o},87078:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports={MouseManager:i(85098)}},36210:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(83419),r=i(8214),s=i(29747),a=new n({initialize:function(t){this.manager=t,this.capture=!0,this.enabled=!1,this.target,this.onTouchStart=s,this.onTouchStartWindow=s,this.onTouchMove=s,this.onTouchEnd=s,this.onTouchEndWindow=s,this.onTouchCancel=s,this.onTouchCancelWindow=s,this.isTop=!0,t.events.once(r.MANAGER_BOOT,this.boot,this)},boot:function(){var t=this.manager.config;this.enabled=t.inputTouch,this.target=t.inputTouchEventTarget,this.capture=t.inputTouchCapture,this.target?\"string\"==typeof this.target&&(this.target=document.getElementById(this.target)):this.target=this.manager.game.canvas,t.disableContextMenu&&this.disableContextMenu(),this.enabled&&this.target&&this.startListeners()},disableContextMenu:function(){return this.target.addEventListener(\"contextmenu\",(function(t){return t.preventDefault(),!1})),this},startListeners:function(){var t=this.target;if(t){var e=this,i=this.manager,n=i.canvas,r=window&&window.focus&&i.game.config.autoFocus;this.onTouchMove=function(t){!t.defaultPrevented&&e.enabled&&i&&i.enabled&&(i.onTouchMove(t),e.capture&&t.cancelable&&t.preventDefault())},this.onTouchStart=function(t){r&&window.focus(),!t.defaultPrevented&&e.enabled&&i&&i.enabled&&(i.onTouchStart(t),e.capture&&t.cancelable&&t.target===n&&t.preventDefault())},this.onTouchStartWindow=function(t){!t.defaultPrevented&&e.enabled&&i&&i.enabled&&t.target!==n&&i.onTouchStart(t)},this.onTouchEnd=function(t){!t.defaultPrevented&&e.enabled&&i&&i.enabled&&(i.onTouchEnd(t),e.capture&&t.cancelable&&t.target===n&&t.preventDefault())},this.onTouchEndWindow=function(t){!t.defaultPrevented&&e.enabled&&i&&i.enabled&&t.target!==n&&i.onTouchEnd(t)},this.onTouchCancel=function(t){!t.defaultPrevented&&e.enabled&&i&&i.enabled&&(i.onTouchCancel(t),e.capture&&t.preventDefault())},this.onTouchCancelWindow=function(t){!t.defaultPrevented&&e.enabled&&i&&i.enabled&&i.onTouchCancel(t)};var s=this.capture,a={passive:!0},o={passive:!1};if(t.addEventListener(\"touchstart\",this.onTouchStart,s?o:a),t.addEventListener(\"touchmove\",this.onTouchMove,s?o:a),t.addEventListener(\"touchend\",this.onTouchEnd,s?o:a),t.addEventListener(\"touchcancel\",this.onTouchCancel,s?o:a),window&&i.game.config.inputWindowEvents)try{window.top.addEventListener(\"touchstart\",this.onTouchStartWindow,o),window.top.addEventListener(\"touchend\",this.onTouchEndWindow,o),window.top.addEventListener(\"touchcancel\",this.onTouchCancelWindow,o)}catch(t){window.addEventListener(\"touchstart\",this.onTouchStartWindow,o),window.addEventListener(\"touchend\",this.onTouchEndWindow,o),window.addEventListener(\"touchcancel\",this.onTouchCancelWindow,o),this.isTop=!1}this.enabled=!0}},stopListeners:function(){var t=this.target;t.removeEventListener(\"touchstart\",this.onTouchStart),t.removeEventListener(\"touchmove\",this.onTouchMove),t.removeEventListener(\"touchend\",this.onTouchEnd),t.removeEventListener(\"touchcancel\",this.onTouchCancel),window&&((t=this.isTop?window.top:window).removeEventListener(\"touchstart\",this.onTouchStartWindow),t.removeEventListener(\"touchend\",this.onTouchEndWindow),t.removeEventListener(\"touchcancel\",this.onTouchCancelWindow))},destroy:function(){this.stopListeners(),this.target=null,this.enabled=!1,this.manager=null}});t.exports=a},95618:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports={TouchManager:i(36210)}},41299:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(83419),r=i(23906),s=i(54899),a=i(95540),o=i(98356),l=i(3374),h=i(84376),u=i(92638),c=new n({initialize:function(t,e){if(this.loader=t,this.cache=a(e,\"cache\",!1),this.type=a(e,\"type\",!1),!this.type)throw new Error(\"Invalid File type: \"+this.type);this.key=a(e,\"key\",!1);var i=this.key;if(t.prefix&&\"\"!==t.prefix&&(this.key=t.prefix+i),!this.key)throw new Error(\"Invalid File key: \"+this.key);var n=a(e,\"url\");void 0===n?n=t.path+i+\".\"+a(e,\"extension\",\"\"):\"string\"!=typeof n||n.match(/^(?:blob:|data:|capacitor:\\/\\/|http:\\/\\/|https:\\/\\/|\\/\\/)/)||(n=t.path+n),this.url=n,this.src=\"\",this.xhrSettings=u(a(e,\"responseType\",void 0)),a(e,\"xhrSettings\",!1)&&(this.xhrSettings=l(this.xhrSettings,a(e,\"xhrSettings\",{}))),this.xhrLoader=null,this.state=\"function\"==typeof this.url?r.FILE_POPULATED:r.FILE_PENDING,this.bytesTotal=0,this.bytesLoaded=-1,this.percentComplete=-1,this.crossOrigin=void 0,this.data=void 0,this.config=a(e,\"config\",{}),this.multiFile,this.linkFile,this.base64=\"string\"==typeof n&&0===n.indexOf(\"data:\"),this.retryAttempts=a(e,\"maxRetries\",t.maxRetries)},setLink:function(t){this.linkFile=t,t.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===r.FILE_POPULATED)this.loader.nextFile(this,!0);else{if(this.state=r.FILE_LOADING,this.src=o(this,this.loader.baseURL),!this.src)throw new Error(\"URL Error in File: \"+this.key+\" from: \"+this.url);0===this.src.indexOf(\"data:\")&&(this.base64=!0),this.xhrLoader=h(this,this.loader.xhr)}},onLoad:function(t,e){var i=t.responseURL&&this.loader.localSchemes.some((function(e){return 0===t.responseURL.indexOf(e)}))&&0===e.target.status,n=!(e.target&&200!==e.target.status)||i;4===t.readyState&&t.status>=400&&t.status<=599&&(n=!1),this.state=r.FILE_LOADED,this.resetXHR(),this.loader.nextFile(this,n)},onBase64Load:function(t){this.xhrLoader=t,this.state=r.FILE_LOADED,this.percentComplete=1,this.loader.emit(s.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(t){t.lengthComputable&&(this.bytesLoaded=t.loaded,this.bytesTotal=t.total,this.percentComplete=Math.min(this.bytesLoaded/this.bytesTotal,1),this.loader.emit(s.FILE_PROGRESS,this,this.percentComplete))},onProcess:function(){this.state=r.FILE_PROCESSING,this.onProcessComplete()},onProcessComplete:function(){this.state=r.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=r.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(t){if(this.state!==r.FILE_PENDING_DESTROY){void 0===t&&(t=this.data);var e=this.key,i=this.type;this.loader.emit(s.FILE_COMPLETE,e,i,t),this.loader.emit(s.FILE_KEY_COMPLETE+i+\"-\"+e,e,i,t),this.loader.flagForRemoval(this),this.state=r.FILE_PENDING_DESTROY}},destroy:function(){this.loader=null,this.cache=null,this.xhrSettings=null,this.multiFile=null,this.linkFile=null,this.data=null}});c.createObjectURL=function(t,e,i){if(\"function\"==typeof URL)t.src=URL.createObjectURL(e);else{var n=new FileReader;n.onload=function(){t.removeAttribute(\"crossOrigin\"),t.src=\"data:\"+(e.type||i)+\";base64,\"+n.result.split(\",\")[1]},n.onerror=t.onerror,n.readAsDataURL(e)}},c.revokeObjectURL=function(t){\"function\"==typeof URL&&URL.revokeObjectURL(t.src)},t.exports=c},74099:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar e={},i={install:function(t){for(var i in e)t[i]=e[i]},register:function(t,i){e[t]=i},destroy:function(){e={}}};t.exports=i},98356:t=>{t.exports=function(t,e){return!!t.url&&(t.url.match(/^(?:blob:|data:|capacitor:\\/\\/|http:\\/\\/|https:\\/\\/|\\/\\/)/)?t.url:e+t.url)}},74261:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(83419),r=i(23906),s=i(35072),a=i(50792),o=i(54899),l=i(74099),h=i(95540),u=i(35154),c=i(41212),d=i(37277),f=i(44594),p=i(92638),m=new n({Extends:a,initialize:function(t){a.call(this);var e=t.sys.game.config,i=t.sys.settings.loader;this.scene=t,this.systems=t.sys,this.cacheManager=t.sys.cache,this.textureManager=t.sys.textures,this.sceneManager=t.sys.game.scene,l.install(this),this.prefix=\"\",this.path=\"\",this.baseURL=\"\",this.setBaseURL(h(i,\"baseURL\",e.loaderBaseURL)),this.setPath(h(i,\"path\",e.loaderPath)),this.setPrefix(h(i,\"prefix\",e.loaderPrefix)),this.maxParallelDownloads=h(i,\"maxParallelDownloads\",e.loaderMaxParallelDownloads),this.xhr=p(h(i,\"responseType\",e.loaderResponseType),h(i,\"async\",e.loaderAsync),h(i,\"user\",e.loaderUser),h(i,\"password\",e.loaderPassword),h(i,\"timeout\",e.loaderTimeout),h(i,\"withCredentials\",e.loaderWithCredentials)),this.crossOrigin=h(i,\"crossOrigin\",e.loaderCrossOrigin),this.imageLoadType=h(i,\"imageLoadType\",e.loaderImageLoadType),this.localSchemes=h(i,\"localScheme\",e.loaderLocalScheme),this.totalToLoad=0,this.progress=0,this.list=new s,this.inflight=new s,this.queue=new s,this._deleteQueue=new s,this.totalFailed=0,this.totalComplete=0,this.state=r.LOADER_IDLE,this.multiKeyIndex=0,this.maxRetries=h(i,\"maxRetries\",e.loaderMaxRetries),t.sys.events.once(f.BOOT,this.boot,this),t.sys.events.on(f.START,this.pluginStart,this)},boot:function(){this.systems.events.once(f.DESTROY,this.destroy,this)},pluginStart:function(){this.systems.events.once(f.SHUTDOWN,this.shutdown,this)},setBaseURL:function(t){return void 0===t&&(t=\"\"),\"\"!==t&&\"/\"!==t.substr(-1)&&(t=t.concat(\"/\")),this.baseURL=t,this},setPath:function(t){return void 0===t&&(t=\"\"),\"\"!==t&&\"/\"!==t.substr(-1)&&(t=t.concat(\"/\")),this.path=t,this},setPrefix:function(t){return void 0===t&&(t=\"\"),this.prefix=t,this},setCORS:function(t){return this.crossOrigin=t,this},addFile:function(t){Array.isArray(t)||(t=[t]);for(var e=0;e0},removePack:function(t,e){var i,n=this.systems.anims,r=this.cacheManager,s=this.textureManager,a={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\"};if(c(t))i=t;else if(!(i=r.json.get(t)))return void console.warn(\"Asset Pack not found in JSON cache:\",t);for(var o in e&&(i={_:i[e]}),i){var l=i[o],u=h(l,\"prefix\",\"\"),d=h(l,\"files\"),f=h(l,\"defaultType\");if(Array.isArray(d))for(var p=0;p0&&this.inflight.size{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(79291),r=i(92638);t.exports=function(t,e){var i=void 0===t?r():n({},t);if(e)for(var s in e)void 0!==e[s]&&(i[s]=e[s]);return i}},26430:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(83419),r=i(23906),s=i(54899),a=new n({initialize:function(t,e,i,n){var s=[];n.forEach((function(t){t&&s.push(t)})),this.loader=t,this.type=e,this.key=i;var a=this.key;t.prefix&&\"\"!==t.prefix&&(this.key=t.prefix+a),this.multiKeyIndex=t.multiKeyIndex++,this.files=s,this.state=r.FILE_PENDING,this.complete=!1,this.pending=s.length,this.failed=0,this.config={},this.baseURL=t.baseURL,this.path=t.path,this.prefix=t.prefix;for(var o=0;o{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(3374);t.exports=function(t,e){var i=n(e,t.xhrSettings);if(!t.base64){var r=new XMLHttpRequest;if(r.open(\"GET\",t.src,i.async,i.user,i.password),r.responseType=t.xhrSettings.responseType,r.timeout=i.timeout,i.headers)for(var s in i.headers)r.setRequestHeader(s,i.headers[s]);return i.header&&i.headerValue&&r.setRequestHeader(i.header,i.headerValue),i.requestedWith&&r.setRequestHeader(\"X-Requested-With\",i.requestedWith),i.overrideMimeType&&r.overrideMimeType(i.overrideMimeType),i.withCredentials&&(r.withCredentials=!0),r.onload=t.onLoad.bind(t,r),r.onerror=t.onError.bind(t,r),r.onprogress=t.onProgress.bind(t),r.ontimeout=t.onError.bind(t,r),r.send(),r}var a=t.url.split(\";base64,\").pop()||t.url.split(\",\").pop(),o={responseText:atob(a)};t.onBase64Load(o)}},92638:t=>{t.exports=function(t,e,i,n,r,s){return void 0===t&&(t=\"\"),void 0===e&&(e=!0),void 0===i&&(i=\"\"),void 0===n&&(n=\"\"),void 0===r&&(r=0),void 0===s&&(s=!1),{responseType:t,async:e,user:i,password:n,timeout:r,headers:void 0,header:void 0,headerValue:void 0,requestedWith:!1,overrideMimeType:void 0,withCredentials:s}}},23906:t=>{t.exports={LOADER_IDLE:0,LOADER_LOADING:1,LOADER_PROCESSING:2,LOADER_COMPLETE:3,LOADER_SHUTDOWN:4,LOADER_DESTROYED:5,FILE_PENDING:10,FILE_LOADING:11,FILE_LOADED:12,FILE_FAILED:13,FILE_PROCESSING:14,FILE_ERRORED:16,FILE_COMPLETE:17,FILE_DESTROYED:18,FILE_POPULATED:19,FILE_PENDING_DESTROY:20}},42155:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports=\"addfile\"},38991:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports=\"complete\"},27540:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports=\"filecomplete\"},87464:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports=\"filecomplete-\"},94486:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports=\"loaderror\"},13035:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports=\"load\"},38144:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports=\"fileprogress\"},97520:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports=\"postprocess\"},85595:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports=\"progress\"},55680:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports=\"start\"},54899:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports={ADD:i(42155),COMPLETE:i(38991),FILE_COMPLETE:i(27540),FILE_KEY_COMPLETE:i(87464),FILE_LOAD_ERROR:i(94486),FILE_LOAD:i(13035),FILE_PROGRESS:i(38144),POST_PROCESS:i(97520),PROGRESS:i(85595),START:i(55680)}},14135:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(83419),r=i(74099),s=i(518),a=i(54899),o=new n({Extends:s,initialize:function(t,e,i,n,r){s.call(this,t,e,i,n,r),this.type=\"animationJSON\"},onProcess:function(){this.loader.once(a.POST_PROCESS,this.onLoadComplete,this),s.prototype.onProcess.call(this)},onLoadComplete:function(){this.loader.systems.anims.fromJSON(this.data)}});r.register(\"animation\",(function(t,e,i,n){if(Array.isArray(t))for(var r=0;r{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(83419),r=i(74099),s=i(95540),a=i(19550),o=i(41212),l=i(518),h=i(26430),u=new n({Extends:h,initialize:function(t,e,i,n,r,u){var c,d;if(o(e)){var f=e;e=s(f,\"key\"),c=new a(t,{key:e,url:s(f,\"textureURL\"),extension:s(f,\"textureExtension\",\"png\"),normalMap:s(f,\"normalMap\"),xhrSettings:s(f,\"textureXhrSettings\")}),d=new l(t,{key:e,url:s(f,\"atlasURL\"),extension:s(f,\"atlasExtension\",\"json\"),xhrSettings:s(f,\"atlasXhrSettings\")})}else c=new a(t,e,i,r),d=new l(t,e,n,u);c.linkFile?h.call(this,t,\"atlasjson\",e,[c,d,c.linkFile]):h.call(this,t,\"atlasjson\",e,[c,d])},addToCache:function(){if(this.isReadyToProcess()){var t=this.files[0],e=this.files[1],i=this.files[2]?this.files[2].data:null;this.loader.textureManager.addAtlas(t.key,t.data,e.data,i),e.addToCache(),this.complete=!0}}});r.register(\"aseprite\",(function(t,e,i,n,r){var s;if(Array.isArray(t))for(var a=0;a{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(83419),r=i(74099),s=i(95540),a=i(19550),o=i(41212),l=i(518),h=i(26430),u=new n({Extends:h,initialize:function(t,e,i,n,r,u){var c,d;if(o(e)){var f=e;e=s(f,\"key\"),c=new a(t,{key:e,url:s(f,\"textureURL\"),extension:s(f,\"textureExtension\",\"png\"),normalMap:s(f,\"normalMap\"),xhrSettings:s(f,\"textureXhrSettings\")}),d=new l(t,{key:e,url:s(f,\"atlasURL\"),extension:s(f,\"atlasExtension\",\"json\"),xhrSettings:s(f,\"atlasXhrSettings\")})}else c=new a(t,e,i,r),d=new l(t,e,n,u);c.linkFile?h.call(this,t,\"atlasjson\",e,[c,d,c.linkFile]):h.call(this,t,\"atlasjson\",e,[c,d])},addToCache:function(){if(this.isReadyToProcess()){var t=this.files[0],e=this.files[1],i=this.files[2]?this.files[2].data:null;this.loader.textureManager.addAtlas(t.key,t.data,e.data,i),this.complete=!0}}});r.register(\"atlas\",(function(t,e,i,n,r){var s;if(Array.isArray(t))for(var a=0;a{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(83419),r=i(74099),s=i(95540),a=i(19550),o=i(41212),l=i(26430),h=i(57318),u=new n({Extends:l,initialize:function(t,e,i,n,r,u){var c,d;if(o(e)){var f=e;e=s(f,\"key\"),c=new a(t,{key:e,url:s(f,\"textureURL\"),extension:s(f,\"textureExtension\",\"png\"),normalMap:s(f,\"normalMap\"),xhrSettings:s(f,\"textureXhrSettings\")}),d=new h(t,{key:e,url:s(f,\"atlasURL\"),extension:s(f,\"atlasExtension\",\"xml\"),xhrSettings:s(f,\"atlasXhrSettings\")})}else c=new a(t,e,i,r),d=new h(t,e,n,u);c.linkFile?l.call(this,t,\"atlasxml\",e,[c,d,c.linkFile]):l.call(this,t,\"atlasxml\",e,[c,d])},addToCache:function(){if(this.isReadyToProcess()){var t=this.files[0],e=this.files[1],i=this.files[2]?this.files[2].data:null;this.loader.textureManager.addAtlasXML(t.key,t.data,e.data,i),this.complete=!0}}});r.register(\"atlasXML\",(function(t,e,i,n,r){var s;if(Array.isArray(t))for(var a=0;a{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(83419),r=i(23906),s=i(41299),a=i(74099),o=i(95540),l=i(89749),h=i(41212),u=new n({Extends:s,initialize:function(t,e,i,n,r){if(h(e)){var a=e;e=o(a,\"key\"),n=o(a,\"xhrSettings\"),r=o(a,\"context\",r)}var l={type:\"audio\",cache:t.cacheManager.audio,extension:i.type,responseType:\"arraybuffer\",key:e,url:i.url,xhrSettings:n,config:{context:r}};s.call(this,t,l)},onProcess:function(){this.state=r.FILE_PROCESSING;var t=this;this.config.context.decodeAudioData(this.xhrLoader.response,(function(e){t.data=e,t.onProcessComplete()}),(function(e){console.error(\"Error decoding audio: \"+t.key+\" - \",e?e.message:null),t.onProcessError()})),this.config.context=null}});u.create=function(t,e,i,n,r){var s=t.systems.game,a=s.config.audio,c=s.device.audio;h(e)&&(i=o(e,\"url\",[]),n=o(e,\"config\",{}));var d=u.getAudioURL(s,i);return d?c.webAudio&&!a.disableWebAudio?new u(t,e,d,r,s.sound.context):new l(t,e,d,n):(console.warn('No audio URLs for \"%s\" can play on this device',e),null)},u.getAudioURL=function(t,e){Array.isArray(e)||(e=[e]);for(var i=0;i{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(21097),r=i(83419),s=i(74099),a=i(95540),o=i(41212),l=i(518),h=i(26430),u=new r({Extends:h,initialize:function(t,e,i,r,s,u,c){if(o(e)){var d=e;e=a(d,\"key\"),i=a(d,\"jsonURL\"),r=a(d,\"audioURL\"),s=a(d,\"audioConfig\"),u=a(d,\"audioXhrSettings\"),c=a(d,\"jsonXhrSettings\")}var f;if(r){var p=n.create(t,e,r,s,u);p&&(f=new l(t,e,i,c),h.call(this,t,\"audiosprite\",e,[p,f]),this.config.resourceLoad=!1)}else f=new l(t,e,i,c),h.call(this,t,\"audiosprite\",e,[f]),this.config.resourceLoad=!0,this.config.audioConfig=s,this.config.audioXhrSettings=u},onFileComplete:function(t){if(-1!==this.files.indexOf(t)&&(this.pending--,this.config.resourceLoad&&\"json\"===t.type&&t.data.hasOwnProperty(\"resources\"))){var e=t.data.resources,i=a(this.config,\"audioConfig\"),r=a(this.config,\"audioXhrSettings\"),s=n.create(this.loader,t.key,e,i,r);s&&(this.addToMultiFile(s),this.loader.addFile(s))}},addToCache:function(){if(this.isReadyToProcess()){var t=this.files[0],e=this.files[1];t.addToCache(),e.addToCache(),this.complete=!0}}});s.register(\"audioSprite\",(function(t,e,i,n,r,s){var a,o=this.systems.game,l=o.config.audio,h=o.device.audio;if(l&&l.noAudio||!h.webAudio&&!h.audioData)return this;if(Array.isArray(t))for(var c=0;c{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(83419),r=i(23906),s=i(41299),a=i(74099),o=i(95540),l=i(41212),h=new n({Extends:s,initialize:function(t,e,i,n,r){var a=\"bin\";if(l(e)){var h=e;e=o(h,\"key\"),i=o(h,\"url\"),n=o(h,\"xhrSettings\"),a=o(h,\"extension\",a),r=o(h,\"dataType\",r)}var u={type:\"binary\",cache:t.cacheManager.binary,extension:a,responseType:\"arraybuffer\",key:e,url:i,xhrSettings:n,config:{dataType:r}};s.call(this,t,u)},onProcess:function(){this.state=r.FILE_PROCESSING;var t=this.config.dataType;this.data=t?new t(this.xhrLoader.response):this.xhrLoader.response,this.onProcessComplete()}});a.register(\"binary\",(function(t,e,i,n){if(Array.isArray(t))for(var r=0;r{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(83419),r=i(74099),s=i(95540),a=i(19550),o=i(41212),l=i(26430),h=i(21859),u=i(57318),c=new n({Extends:l,initialize:function(t,e,i,n,r,h){var c,d;if(o(e)){var f=e;e=s(f,\"key\"),c=new a(t,{key:e,url:s(f,\"textureURL\"),extension:s(f,\"textureExtension\",\"png\"),normalMap:s(f,\"normalMap\"),xhrSettings:s(f,\"textureXhrSettings\")}),d=new u(t,{key:e,url:s(f,\"fontDataURL\"),extension:s(f,\"fontDataExtension\",\"xml\"),xhrSettings:s(f,\"fontDataXhrSettings\")})}else c=new a(t,e,i,r),d=new u(t,e,n,h);c.linkFile?l.call(this,t,\"bitmapfont\",e,[c,d,c.linkFile]):l.call(this,t,\"bitmapfont\",e,[c,d])},addToCache:function(){if(this.isReadyToProcess()){var t=this.files[0],e=this.files[1];t.addToCache();var i=t.cache.get(t.key),n=h(e.data,t.cache.getFrame(t.key),0,0,i);this.loader.cacheManager.bitmapFont.add(t.key,{data:n,texture:t.key,frame:null}),this.complete=!0}}});r.register(\"bitmapFont\",(function(t,e,i,n,r){var s;if(Array.isArray(t))for(var a=0;a{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(83419),r=i(23906),s=i(41299),a=i(74099),o=i(95540),l=i(41212),h=new n({Extends:s,initialize:function(t,e,i,n){var r=\"css\";if(l(e)){var a=e;e=o(a,\"key\"),i=o(a,\"url\"),n=o(a,\"xhrSettings\"),r=o(a,\"extension\",r)}var h={type:\"script\",cache:!1,extension:r,responseType:\"text\",key:e,url:i,xhrSettings:n};s.call(this,t,h)},onProcess:function(){this.state=r.FILE_PROCESSING,this.data=document.createElement(\"style\"),this.data.defer=!1,this.data.innerHTML=this.xhrLoader.responseText,document.head.appendChild(this.data),this.onProcessComplete()}});a.register(\"css\",(function(t,e,i){if(Array.isArray(t))for(var n=0;n{\n/**\n * @author Richard Davey \n * @copyright 2021 Photon Storm Ltd.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(38734),r=i(85722),s=i(83419),a=i(74099),o=i(95540),l=i(19550),h=i(41212),u=i(518),c=i(31403),d=i(46975),f=i(59327),p=i(26430),m=i(82038),g=i(55222),v=new s({Extends:p,initialize:function(t,e,i,n){if(i.multiAtlasURL){var s=new u(t,{key:e,url:i.multiAtlasURL,xhrSettings:n,config:i});p.call(this,t,\"texture\",e,[s])}else{var a=i.textureURL.substr(i.textureURL.length-3);i.type||(i.type=\"ktx\"===a.toLowerCase()?\"KTX\":\"PVR\");var o=new r(t,{key:e,url:i.textureURL,extension:a,xhrSettings:n,config:i});if(i.atlasURL){var l=new u(t,{key:e,url:i.atlasURL,xhrSettings:n,config:i});p.call(this,t,\"texture\",e,[o,l])}else p.call(this,t,\"texture\",e,[o])}this.config=i},onFileComplete:function(t){if(-1!==this.files.indexOf(t)){if(this.pending--,!this.config.multiAtlasURL)return;if(\"json\"===t.type&&t.data.hasOwnProperty(\"textures\")){var e=t.data.textures,i=this.config,n=this.loader,s=n.baseURL,a=n.path,l=n.prefix,h=o(i,\"multiBaseURL\",this.baseURL),u=o(i,\"multiPath\",this.path),c=o(i,\"prefix\",this.prefix),d=o(i,\"textureXhrSettings\");h&&n.setBaseURL(h),u&&n.setPath(u),c&&n.setPrefix(c);for(var f=0;f{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(83419),r=i(23906),s=i(41299),a=i(74099),o=i(95540),l=i(98356),h=i(41212),u=new n({Extends:s,initialize:function(t,e,i,n,a,l){var u=\"ttf\";if(h(e)){var c=e;e=o(c,\"key\"),i=o(c,\"url\"),n=o(c,\"format\",\"truetype\"),a=o(c,\"descriptors\",null),l=o(c,\"xhrSettings\"),u=o(c,\"extension\",u)}else void 0===n&&(n=\"truetype\");var d={type:\"font\",cache:!1,extension:u,responseType:\"text\",key:e,url:i,xhrSettings:l};s.call(this,t,d),this.data={format:n,descriptors:a},this.state=r.FILE_POPULATED},onProcess:function(){var t;this.state=r.FILE_PROCESSING,this.src=l(this,this.loader.baseURL);var e=this.key,i=\"url(\"+this.src+') format(\"'+this.data.format+'\")';t=this.data.descriptors?new FontFace(e,i,this.data.descriptors):new FontFace(e,i);var n=this;t.load().then((function(){document.fonts.add(t),document.body.classList.add(\"fonts-loaded\"),n.onProcessComplete()})).catch((function(){console.warn(\"Font failed to load\",i),n.onProcessComplete()}))}});a.register(\"font\",(function(t,e,i,n,r){if(Array.isArray(t))for(var s=0;s{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(83419),r=i(23906),s=i(41299),a=i(74099),o=i(95540),l=i(41212),h=i(73894),u=new n({Extends:s,initialize:function(t,e,i,n,r){var a=\"glsl\";if(l(e)){var h=e;e=o(h,\"key\"),i=o(h,\"url\"),n=o(h,\"shaderType\",\"fragment\"),r=o(h,\"xhrSettings\"),a=o(h,\"extension\",a)}else void 0===n&&(n=\"fragment\");var u={type:\"glsl\",cache:t.cacheManager.shader,extension:a,responseType:\"text\",key:e,url:i,config:{shaderType:n},xhrSettings:r};s.call(this,t,u)},onProcess:function(){this.state=r.FILE_PROCESSING,this.data=this.xhrLoader.responseText,this.onProcessComplete()},addToCache:function(){var t=this.data.split(\"\\n\"),e=this.extractBlock(t,0);if(e)for(;e;){var i=this.getShaderName(e.header),n=this.getShaderType(e.header),r=this.getShaderUniforms(e.header),s=e.shader;if(this.cache.has(i)){var a=this.cache.get(i);\"fragment\"===n?a.fragmentSrc=s:a.vertexSrc=s,a.uniforms||(a.uniforms=r)}else\"fragment\"===n?this.cache.add(i,new h(i,s,\"\",r)):this.cache.add(i,new h(i,\"\",s,r));e=this.extractBlock(t,e.offset)}else\"fragment\"===this.config.shaderType?this.cache.add(this.key,new h(this.key,this.data)):this.cache.add(this.key,new h(this.key,\"\",this.data))},getShaderName:function(t){for(var e=0;e{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(83419),r=i(54899),s=i(41299),a=i(95540),o=i(98356),l=i(41212),h=new n({Extends:s,initialize:function(t,e,i,n){if(l(e)){var r=e;e=a(r,\"key\"),n=a(r,\"config\",n)}var o={type:\"audio\",cache:t.cacheManager.audio,extension:i.type,key:e,url:i.url,config:n};s.call(this,t,o),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 t=0;t{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(83419),r=i(23906),s=i(41299),a=i(74099),o=i(95540),l=i(41212),h=new n({Extends:s,initialize:function(t,e,i,n){var r=\"html\";if(l(e)){var a=e;e=o(a,\"key\"),i=o(a,\"url\"),n=o(a,\"xhrSettings\"),r=o(a,\"extension\",r)}var h={type:\"text\",cache:t.cacheManager.html,extension:r,responseType:\"text\",key:e,url:i,xhrSettings:n};s.call(this,t,h)},onProcess:function(){this.state=r.FILE_PROCESSING,this.data=this.xhrLoader.responseText,this.onProcessComplete()}});a.register(\"html\",(function(t,e,i){if(Array.isArray(t))for(var n=0;n{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(83419),r=i(23906),s=i(41299),a=i(74099),o=i(95540),l=i(41212),h=new n({Extends:s,initialize:function(t,e,i,n,r,a){void 0===n&&(n=512),void 0===r&&(r=512);var h=\"html\";if(l(e)){var u=e;e=o(u,\"key\"),i=o(u,\"url\"),a=o(u,\"xhrSettings\"),h=o(u,\"extension\",h),n=o(u,\"width\",n),r=o(u,\"height\",r)}var c={type:\"html\",cache:t.textureManager,extension:h,responseType:\"text\",key:e,url:i,xhrSettings:a,config:{width:n,height:r}};s.call(this,t,c)},onProcess:function(){this.state=r.FILE_PROCESSING;var t=this.config.width,e=this.config.height,i=[];i.push(''),i.push(''),i.push(''),i.push(this.xhrLoader.responseText),i.push(\"\"),i.push(\"\"),i.push(\"\");var n=[i.join(\"\\n\")],a=this;try{var o=new window.Blob(n,{type:\"image/svg+xml;charset=utf-8\"})}catch(t){return a.state=r.FILE_ERRORED,void a.onProcessComplete()}this.data=new Image,this.data.crossOrigin=this.crossOrigin,this.data.onload=function(){s.revokeObjectURL(a.data),a.onProcessComplete()},this.data.onerror=function(){s.revokeObjectURL(a.data),a.onProcessError()},s.createObjectURL(this.data,o,\"image/svg+xml\")},addToCache:function(){this.cache.addImage(this.key,this.data)}});a.register(\"htmlTexture\",(function(t,e,i,n,r){if(Array.isArray(t))for(var s=0;s{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(83419),r=i(23906),s=i(41299),a=i(74099),o=i(95540),l=i(41212),h=i(98356),u=new n({Extends:s,initialize:function t(e,i,n,r,a){var h,u=\"png\";if(l(i)){var c=i;i=o(c,\"key\"),n=o(c,\"url\"),h=o(c,\"normalMap\"),r=o(c,\"xhrSettings\"),u=o(c,\"extension\",u),a=o(c,\"frameConfig\")}Array.isArray(n)&&(h=n[1],n=n[0]);var d={type:\"image\",cache:e.textureManager,extension:u,responseType:\"blob\",key:i,url:n,xhrSettings:r,config:a};if(s.call(this,e,d),h){var f=new t(e,this.key,h,r,a);f.type=\"normalMap\",this.setLink(f),e.addFile(f)}this.useImageElementLoad=\"HTMLImageElement\"===e.imageLoadType||this.base64,this.useImageElementLoad&&(this.load=this.loadImage,this.onProcess=this.onProcessImage)},onProcess:function(){this.state=r.FILE_PROCESSING,this.data=new Image,this.data.crossOrigin=this.crossOrigin;var t=this;this.data.onload=function(){s.revokeObjectURL(t.data),t.onProcessComplete()},this.data.onerror=function(){s.revokeObjectURL(t.data),t.onProcessError()},s.createObjectURL(this.data,this.xhrLoader.response,\"image/png\")},onProcessImage:function(){var t=this.state;this.state=r.FILE_PROCESSING,t===r.FILE_LOADED?this.onProcessComplete():this.onProcessError()},loadImage:function(){this.state=r.FILE_LOADING,this.src=h(this,this.loader.baseURL),this.data=new Image,this.data.crossOrigin=this.crossOrigin;var t=this;this.data.onload=function(){t.state=r.FILE_LOADED,t.loader.nextFile(t,!0)},this.data.onerror=function(){t.loader.nextFile(t,!1)},this.data.src=this.src},addToCache:function(){var t=this.linkFile;t?t.state>=r.FILE_COMPLETE&&(\"spritesheet\"===t.type?t.addToCache():\"normalMap\"===this.type?this.cache.addImage(this.key,t.data,this.data):this.cache.addImage(this.key,this.data,t.data)):this.cache.addImage(this.key,this.data)}});a.register(\"image\",(function(t,e,i){if(Array.isArray(t))for(var n=0;n{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(83419),r=i(23906),s=i(41299),a=i(74099),o=i(95540),l=i(35154),h=i(41212),u=new n({Extends:s,initialize:function(t,e,i,n,a){var u=\"json\";if(h(e)){var c=e;e=o(c,\"key\"),i=o(c,\"url\"),n=o(c,\"xhrSettings\"),u=o(c,\"extension\",u),a=o(c,\"dataKey\",a)}var d={type:\"json\",cache:t.cacheManager.json,extension:u,responseType:\"text\",key:e,url:i,xhrSettings:n,config:a};s.call(this,t,d),h(i)&&(this.data=a?l(i,a):i,this.state=r.FILE_POPULATED)},onProcess:function(){if(this.state!==r.FILE_POPULATED){this.state=r.FILE_PROCESSING;try{var t=JSON.parse(this.xhrLoader.responseText)}catch(t){throw this.onProcessError(),t}var e=this.config;this.data=\"string\"==typeof e?l(t,e,t):t}this.onProcessComplete()}});a.register(\"json\",(function(t,e,i,n){if(Array.isArray(t))for(var r=0;r{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(83419),r=i(74099),s=i(95540),a=i(19550),o=i(41212),l=i(518),h=i(26430),u=new n({Extends:h,initialize:function(t,e,i,n,r,a,u){if(o(e)){var c=e;e=s(c,\"key\"),i=s(c,\"url\",!1)?s(c,\"url\"):s(c,\"atlasURL\"),a=s(c,\"xhrSettings\"),n=s(c,\"path\"),r=s(c,\"baseURL\"),u=s(c,\"textureXhrSettings\")}var d=new l(t,e,i,a);h.call(this,t,\"multiatlas\",e,[d]),this.config.path=n,this.config.baseURL=r,this.config.textureXhrSettings=u},onFileComplete:function(t){if(-1!==this.files.indexOf(t)&&(this.pending--,\"json\"===t.type&&t.data.hasOwnProperty(\"textures\"))){var e=t.data.textures,i=this.config,n=this.loader,r=n.baseURL,o=n.path,l=n.prefix,h=s(i,\"baseURL\",this.baseURL),u=s(i,\"path\",this.path),c=s(i,\"prefix\",this.prefix),d=s(i,\"textureXhrSettings\");n.setBaseURL(h),n.setPath(u),n.setPrefix(c);for(var f=0;f{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(83419),r=i(74099),s=i(95540),a=i(41212),o=i(26430),l=i(34328),h=new n({Extends:o,initialize:function(t,e,i,n){var r=\"js\",h=[];if(a(e)){var u=e;e=s(u,\"key\"),i=s(u,\"url\"),n=s(u,\"xhrSettings\"),r=s(u,\"extension\",r)}Array.isArray(i)||(i=[i]);for(var c=0;c{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(83419),r=i(74099),s=i(95540),a=i(41212),o=i(26430),l=i(85048),h=i(61485),u=i(78776),c=new n({Extends:o,initialize:function(t,e,i,n,r,l){var h,c,d=t.cacheManager.obj;if(a(e)){var f=e;e=s(f,\"key\"),h=new u(t,{key:e,type:\"obj\",cache:d,url:s(f,\"url\"),extension:s(f,\"extension\",\"obj\"),xhrSettings:s(f,\"xhrSettings\"),config:{flipUV:s(f,\"flipUV\",r)}}),(n=s(f,\"matURL\"))&&(c=new u(t,{key:e,type:\"mat\",cache:d,url:n,extension:s(f,\"matExtension\",\"mat\"),xhrSettings:s(f,\"xhrSettings\")}))}else h=new u(t,{key:e,url:i,type:\"obj\",cache:d,extension:\"obj\",xhrSettings:l,config:{flipUV:r}}),n&&(c=new u(t,{key:e,url:n,type:\"mat\",cache:d,extension:\"mat\",xhrSettings:l}));o.call(this,t,\"obj\",e,[h,c])},addToCache:function(){if(this.isReadyToProcess()){var t=this.files[0],e=this.files[1],i=l(t.data,t.config.flipUV);e&&(i.materials=h(e.data)),t.cache.add(t.key,i),this.complete=!0}}});r.register(\"obj\",(function(t,e,i,n,r){var s;if(Array.isArray(t))for(var a=0;a{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(83419),r=i(23906),s=i(74099),a=i(518),o=new n({Extends:a,initialize:function(t,e,i,n,r){a.call(this,t,e,i,n,r),this.type=\"packfile\"},onProcess:function(){if(this.state!==r.FILE_POPULATED&&(this.state=r.FILE_PROCESSING,this.data=JSON.parse(this.xhrLoader.responseText)),this.data.hasOwnProperty(\"files\")&&this.config){var t={};t[this.config]=this.data,this.data=t}this.loader.addPack(this.data,this.config),this.onProcessComplete()}});s.register(\"pack\",(function(t,e,i,n){if(Array.isArray(t))for(var r=0;r{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(83419),r=i(23906),s=i(41299),a=i(74099),o=i(95540),l=i(41212),h=new n({Extends:s,initialize:function(t,e,i,n,a,h){var u=\"js\";if(l(e)){var c=e;e=o(c,\"key\"),i=o(c,\"url\"),h=o(c,\"xhrSettings\"),u=o(c,\"extension\",u),n=o(c,\"start\"),a=o(c,\"mapping\")}var d={type:\"plugin\",cache:!1,extension:u,responseType:\"text\",key:e,url:i,xhrSettings:h,config:{start:n,mapping:a}};s.call(this,t,d),\"function\"==typeof i&&(this.data=i,this.state=r.FILE_POPULATED)},onProcess:function(){var t=this.loader.systems.plugins,e=this.config,i=o(e,\"start\",!1),n=o(e,\"mapping\",null);if(this.state===r.FILE_POPULATED)t.install(this.key,this.data,i,n);else{this.state=r.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 s=t.install(this.key,window[this.key],i,n);(i||n)&&(this.loader.systems[n]=s,this.loader.scene[n]=s)}this.onProcessComplete()}});a.register(\"plugin\",(function(t,e,i,n,r){if(Array.isArray(t))for(var s=0;s{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(83419),r=i(23906),s=i(41299),a=i(74099),o=i(95540),l=i(41212),h=new n({Extends:s,initialize:function(t,e,i,n,r){var a=\"svg\";if(l(e)){var h=e;e=o(h,\"key\"),i=o(h,\"url\"),n=o(h,\"svgConfig\",{}),r=o(h,\"xhrSettings\"),a=o(h,\"extension\",a)}var u={type:\"svg\",cache:t.textureManager,extension:a,responseType:\"text\",key:e,url:i,xhrSettings:r,config:{width:o(n,\"width\"),height:o(n,\"height\"),scale:o(n,\"scale\")}};s.call(this,t,u)},onProcess:function(){this.state=r.FILE_PROCESSING;var t=this.xhrLoader.responseText,e=[t],i=this.config.width,n=this.config.height,a=this.config.scale;t:if(i&&n||a){var o=(new DOMParser).parseFromString(t,\"text/xml\").getElementsByTagName(\"svg\")[0],l=o.hasAttribute(\"viewBox\"),h=parseFloat(o.getAttribute(\"width\")),u=parseFloat(o.getAttribute(\"height\"));if(!l&&h&&u)o.setAttribute(\"viewBox\",\"0 0 \"+h+\" \"+u);else if(l&&!h&&!u){var c=o.getAttribute(\"viewBox\").split(/\\s+|,/);h=c[2],u=c[3]}if(a){if(!h||!u)break t;i=h*a,n=u*a}o.setAttribute(\"width\",i.toString()+\"px\"),o.setAttribute(\"height\",n.toString()+\"px\"),e=[(new XMLSerializer).serializeToString(o)]}try{var d=new window.Blob(e,{type:\"image/svg+xml;charset=utf-8\"})}catch(t){return void this.onProcessError()}this.data=new Image,this.data.crossOrigin=this.crossOrigin;var f=this,p=!1;this.data.onload=function(){p||s.revokeObjectURL(f.data),f.onProcessComplete()},this.data.onerror=function(){p?f.onProcessError():(p=!0,s.revokeObjectURL(f.data),f.data.src=\"data:image/svg+xml,\"+encodeURIComponent(e.join(\"\")))},s.createObjectURL(this.data,d,\"image/svg+xml\")},addToCache:function(){this.cache.addImage(this.key,this.data)}});a.register(\"svg\",(function(t,e,i,n){if(Array.isArray(t))for(var r=0;r{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(83419),r=i(23906),s=i(41299),a=i(74099),o=i(95540),l=i(41212),h=new n({Extends:s,initialize:function(t,e,i,n){var r=\"js\";if(l(e)){var a=e;e=o(a,\"key\"),i=o(a,\"url\"),n=o(a,\"xhrSettings\"),r=o(a,\"extension\",r)}var h={type:\"text\",extension:r,responseType:\"text\",key:e,url:i,xhrSettings:n};s.call(this,t,h)},onProcess:function(){this.state=r.FILE_PROCESSING,this.data=this.xhrLoader.responseText,this.onProcessComplete()},addToCache:function(){var t=this.data.concat(\"(function(){\\nreturn new \"+this.key+\"();\\n}).call(this);\"),e=eval;this.loader.sceneManager.add(this.key,e(t)),this.complete=!0}});a.register(\"sceneFile\",(function(t,e,i){if(Array.isArray(t))for(var n=0;n{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(83419),r=i(23906),s=i(41299),a=i(74099),o=i(95540),l=i(41212),h=new n({Extends:s,initialize:function(t,e,i,n,a,h){var u=\"js\";if(l(e)){var c=e;e=o(c,\"key\"),i=o(c,\"url\"),h=o(c,\"xhrSettings\"),u=o(c,\"extension\",u),n=o(c,\"systemKey\"),a=o(c,\"sceneKey\")}var d={type:\"scenePlugin\",cache:!1,extension:u,responseType:\"text\",key:e,url:i,xhrSettings:h,config:{systemKey:n,sceneKey:a}};s.call(this,t,d),\"function\"==typeof i&&(this.data=i,this.state=r.FILE_POPULATED)},onProcess:function(){var t=this.loader.systems.plugins,e=this.config,i=this.key,n=o(e,\"systemKey\",i),s=o(e,\"sceneKey\",i);this.state===r.FILE_POPULATED?t.installScenePlugin(n,this.data,s,this.loader.scene,!0):(this.state=r.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),t.installScenePlugin(n,window[this.key],s,this.loader.scene,!0)),this.onProcessComplete()}});a.register(\"scenePlugin\",(function(t,e,i,n,r){if(Array.isArray(t))for(var s=0;s{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(83419),r=i(23906),s=i(41299),a=i(74099),o=i(95540),l=i(41212),h=new n({Extends:s,initialize:function(t,e,i,n,r){var a=\"js\";if(l(e)){var h=e;e=o(h,\"key\"),i=o(h,\"url\"),n=o(h,\"type\",\"script\"),r=o(h,\"xhrSettings\"),a=o(h,\"extension\",a)}else void 0===n&&(n=\"script\");var u={type:n,cache:!1,extension:a,responseType:\"text\",key:e,url:i,xhrSettings:r};s.call(this,t,u)},onProcess:function(){this.state=r.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()}});a.register(\"script\",(function(t,e,i,n){if(Array.isArray(t))for(var r=0;r{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(83419),r=i(23906),s=i(74099),a=i(19550),o=new n({Extends:a,initialize:function(t,e,i,n,r){a.call(this,t,e,i,r,n),this.type=\"spritesheet\"},addToCache:function(){var t=this.linkFile;t?t.state>=r.FILE_COMPLETE&&(\"normalMap\"===this.type?this.cache.addSpriteSheet(this.key,t.data,this.config,this.data):this.cache.addSpriteSheet(this.key,this.data,this.config,t.data)):this.cache.addSpriteSheet(this.key,this.data,this.config)}});s.register(\"spritesheet\",(function(t,e,i,n){if(Array.isArray(t))for(var r=0;r{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(83419),r=i(23906),s=i(41299),a=i(74099),o=i(95540),l=i(41212),h=new n({Extends:s,initialize:function(t,e,i,n){var r=\"text\",a=\"txt\",h=t.cacheManager.text;if(l(e)){var u=e;e=o(u,\"key\"),i=o(u,\"url\"),n=o(u,\"xhrSettings\"),a=o(u,\"extension\",a),r=o(u,\"type\",r),h=o(u,\"cache\",h)}var c={type:r,cache:h,extension:a,responseType:\"text\",key:e,url:i,xhrSettings:n};s.call(this,t,c)},onProcess:function(){this.state=r.FILE_PROCESSING,this.data=this.xhrLoader.responseText,this.onProcessComplete()}});a.register(\"text\",(function(t,e,i){if(Array.isArray(t))for(var n=0;n{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(83419),r=i(23906),s=i(41299),a=i(74099),o=i(95540),l=i(41212),h=i(80341),u=new n({Extends:s,initialize:function(t,e,i,n){var r=\"csv\";if(l(e)){var a=e;e=o(a,\"key\"),i=o(a,\"url\"),n=o(a,\"xhrSettings\"),r=o(a,\"extension\",r)}var u={type:\"tilemapCSV\",cache:t.cacheManager.tilemap,extension:r,responseType:\"text\",key:e,url:i,xhrSettings:n};s.call(this,t,u),this.tilemapFormat=h.CSV},onProcess:function(){this.state=r.FILE_PROCESSING,this.data=this.xhrLoader.responseText,this.onProcessComplete()},addToCache:function(){var t={format:this.tilemapFormat,data:this.data};this.cache.add(this.key,t)}});a.register(\"tilemapCSV\",(function(t,e,i){if(Array.isArray(t))for(var n=0;n{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(83419),r=i(74099),s=i(518),a=i(80341),o=new n({Extends:s,initialize:function(t,e,i,n){s.call(this,t,e,i,n),this.type=\"tilemapJSON\",this.cache=t.cacheManager.tilemap},addToCache:function(){var t={format:a.WELTMEISTER,data:this.data};this.cache.add(this.key,t)}});r.register(\"tilemapImpact\",(function(t,e,i){if(Array.isArray(t))for(var n=0;n{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(83419),r=i(74099),s=i(518),a=i(80341),o=new n({Extends:s,initialize:function(t,e,i,n){s.call(this,t,e,i,n),this.type=\"tilemapJSON\",this.cache=t.cacheManager.tilemap},addToCache:function(){var t={format:a.TILED_JSON,data:this.data};this.cache.add(this.key,t)}});r.register(\"tilemapTiledJSON\",(function(t,e,i){if(Array.isArray(t))for(var n=0;n{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(83419),r=i(74099),s=i(95540),a=i(19550),o=i(41212),l=i(26430),h=i(78776),u=new n({Extends:l,initialize:function(t,e,i,n,r,u){var c,d;if(o(e)){var f=e;e=s(f,\"key\"),c=new a(t,{key:e,url:s(f,\"textureURL\"),extension:s(f,\"textureExtension\",\"png\"),normalMap:s(f,\"normalMap\"),xhrSettings:s(f,\"textureXhrSettings\")}),d=new h(t,{key:e,url:s(f,\"atlasURL\"),extension:s(f,\"atlasExtension\",\"txt\"),xhrSettings:s(f,\"atlasXhrSettings\")})}else c=new a(t,e,i,r),d=new h(t,e,n,u);c.linkFile?l.call(this,t,\"unityatlas\",e,[c,d,c.linkFile]):l.call(this,t,\"unityatlas\",e,[c,d])},addToCache:function(){if(this.isReadyToProcess()){var t=this.files[0],e=this.files[1],i=this.files[2]?this.files[2].data:null;this.loader.textureManager.addUnityAtlas(t.key,t.data,e.data,i),this.complete=!0}}});r.register(\"unityAtlas\",(function(t,e,i,n,r){var s;if(Array.isArray(t))for(var a=0;a{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(83419),r=i(23906),s=i(41299),a=i(74099),o=i(98356),l=i(95540),h=i(41212),u=new n({Extends:s,initialize:function(t,e,i,n){if(void 0===n&&(n=!1),h(e)){var r=e;e=l(r,\"key\"),i=l(r,\"url\",[]),n=l(r,\"noAudio\",!1)}var a=t.systems.game.device.video.getVideoURL(i);a||console.warn(\"VideoFile: No supported format for \"+e);var o={type:\"video\",cache:t.cacheManager.video,extension:a.type,key:e,url:a.url,config:{noAudio:n}};s.call(this,t,o)},onProcess:function(){this.data={url:this.src,noAudio:this.config.noAudio,crossOrigin:this.crossOrigin},this.onProcessComplete()},load:function(){this.src=o(this,this.loader.baseURL),this.state=r.FILE_LOADED,this.loader.nextFile(this,!0)}});a.register(\"video\",(function(t,e,i){if(Array.isArray(t))for(var n=0;n{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(83419),r=i(23906),s=i(41299),a=i(74099),o=i(95540),l=i(41212),h=i(56836),u=new n({Extends:s,initialize:function(t,e,i,n){var r=\"xml\";if(l(e)){var a=e;e=o(a,\"key\"),i=o(a,\"url\"),n=o(a,\"xhrSettings\"),r=o(a,\"extension\",r)}var h={type:\"xml\",cache:t.cacheManager.xml,extension:r,responseType:\"text\",key:e,url:i,xhrSettings:n};s.call(this,t,h)},onProcess:function(){this.state=r.FILE_PROCESSING,this.data=h(this.xhrLoader.responseText),this.data?this.onProcessComplete():this.onProcessError()}});a.register(\"xml\",(function(t,e,i){if(Array.isArray(t))for(var n=0;n{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports={AnimationJSONFile:i(14135),AsepriteFile:i(76272),AtlasJSONFile:i(38734),AtlasXMLFile:i(74599),AudioFile:i(21097),AudioSpriteFile:i(89524),BinaryFile:i(85722),BitmapFontFile:i(97025),CompressedTextureFile:i(69559),CSSFile:i(16024),FontFile:i(87674),GLSLFile:i(47931),HTML5AudioFile:i(89749),HTMLFile:i(88470),HTMLTextureFile:i(14643),ImageFile:i(19550),JSONFile:i(518),MultiAtlasFile:i(59327),MultiScriptFile:i(99297),OBJFile:i(41846),PackFile:i(58610),PluginFile:i(48988),SceneFile:i(88423),ScenePluginFile:i(56812),ScriptFile:i(34328),SpriteSheetFile:i(85035),SVGFile:i(67397),TextFile:i(78776),TilemapCSVFile:i(49477),TilemapImpactFile:i(40807),TilemapJSONFile:i(56775),UnityAtlasFile:i(25771),VideoFile:i(33720),XMLFile:i(57318)}},57777:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(23906),r=i(79291),s={Events:i(54899),FileTypes:i(64589),File:i(41299),FileTypesManager:i(74099),GetURL:i(98356),LoaderPlugin:i(74261),MergeXHRSettings:i(3374),MultiFile:i(26430),XHRLoader:i(84376),XHRSettings:i(92638)};s=r(!1,s,n),t.exports=s},53307:t=>{t.exports=function(t){for(var e=0,i=0;i{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(6411);t.exports=function(t,e){return n(t)/n(e)/n(t-e)}},30976:t=>{t.exports=function(t,e){return Math.floor(Math.random()*(e-t+1)+t)}},87842:t=>{t.exports=function(t,e,i,n,r){var s=.5*(n-e),a=.5*(r-i),o=t*t;return(2*i-2*n+s+a)*(t*o)+(-3*i+3*n-2*s-a)*o+s*t+i}},26302:t=>{t.exports=function(t,e,i){void 0===e&&(e=0),void 0===i&&(i=10);var n=Math.pow(i,-e);return Math.ceil(t*n)/n}},45319:t=>{t.exports=function(t,e,i){return Math.max(e,Math.min(i,t))}},39506:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(36383);t.exports=function(t){return t*n.DEG_TO_RAD}},61241:t=>{t.exports=function(t,e){return Math.abs(t-e)}},38857:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(45319),r=i(83419),s=i(37867),a=i(29747),o=new s,l=new r({initialize:function t(e,i,n,r){void 0===e&&(e=0),void 0===i&&(i=0),void 0===n&&(n=0),void 0===r&&(r=t.DefaultOrder),this._x=e,this._y=i,this._z=n,this._order=r,this.onChangeCallback=a},x:{get:function(){return this._x},set:function(t){this._x=t,this.onChangeCallback(this)}},y:{get:function(){return this._y},set:function(t){this._y=t,this.onChangeCallback(this)}},z:{get:function(){return this._z},set:function(t){this._z=t,this.onChangeCallback(this)}},order:{get:function(){return this._order},set:function(t){this._order=t,this.onChangeCallback(this)}},set:function(t,e,i,n){return void 0===n&&(n=this._order),this._x=t,this._y=e,this._z=i,this._order=n,this.onChangeCallback(this),this},copy:function(t){return this.set(t.x,t.y,t.z,t.order)},setFromQuaternion:function(t,e,i){return void 0===e&&(e=this._order),void 0===i&&(i=!1),o.fromQuat(t),this.setFromRotationMatrix(o,e,i)},setFromRotationMatrix:function(t,e,i){void 0===e&&(e=this._order),void 0===i&&(i=!1);var r=t.val,s=r[0],a=r[4],o=r[8],l=r[1],h=r[5],u=r[9],c=r[2],d=r[6],f=r[10],p=0,m=0,g=0;switch(e){case\"XYZ\":m=Math.asin(n(o,-1,1)),Math.abs(o)<.99999?(p=Math.atan2(-u,f),g=Math.atan2(-a,s)):p=Math.atan2(d,h);break;case\"YXZ\":p=Math.asin(-n(u,-1,1)),Math.abs(u)<.99999?(m=Math.atan2(o,f),g=Math.atan2(l,h)):m=Math.atan2(-c,s);break;case\"ZXY\":p=Math.asin(n(d,-1,1)),Math.abs(d)<.99999?(m=Math.atan2(-c,f),g=Math.atan2(-a,h)):g=Math.atan2(l,s);break;case\"ZYX\":m=Math.asin(-n(c,-1,1)),Math.abs(c)<.99999?(p=Math.atan2(d,f),g=Math.atan2(l,s)):g=Math.atan2(-a,h);break;case\"YZX\":g=Math.asin(n(l,-1,1)),Math.abs(l)<.99999?(p=Math.atan2(-u,h),m=Math.atan2(-c,s)):m=Math.atan2(o,f);break;case\"XZY\":g=Math.asin(-n(a,-1,1)),Math.abs(a)<.99999?(p=Math.atan2(d,h),m=Math.atan2(o,s)):p=Math.atan2(-u,f)}return this._x=p,this._y=m,this._z=g,this._order=e,i&&this.onChangeCallback(this),this}});l.RotationOrders=[\"XYZ\",\"YXZ\",\"ZXY\",\"ZYX\",\"YZX\",\"XZY\"],l.DefaultOrder=\"XYZ\",t.exports=l},6411:t=>{t.exports=function(t){if(0===t)return 1;for(var e=t;--t;)e*=t;return e}},99472:t=>{t.exports=function(t,e){return Math.random()*(e-t)+t}},77623:t=>{t.exports=function(t,e,i){void 0===e&&(e=0),void 0===i&&(i=10);var n=Math.pow(i,-e);return Math.floor(t*n)/n}},62945:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(45319);t.exports=function(t,e,i){return(i-e)*(t=n(t,0,1))+e}},38265:t=>{t.exports=function(t,e){return t/e/1e3}},78702:t=>{t.exports=function(t){return t==parseFloat(t)?!(t%2):void 0}},94883:t=>{t.exports=function(t){return t===parseFloat(t)?!(t%2):void 0}},28915:t=>{t.exports=function(t,e,i){return(e-t)*i+t}},94908:t=>{t.exports=function(t,e,i){return void 0===i&&(i=0),t.clone().lerp(e,i)}},94434:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=new(i(83419))({initialize:function(t){this.val=new Float32Array(9),t?this.copy(t):this.identity()},clone:function(){return new n(this)},set:function(t){return this.copy(t)},copy:function(t){var e=this.val,i=t.val;return e[0]=i[0],e[1]=i[1],e[2]=i[2],e[3]=i[3],e[4]=i[4],e[5]=i[5],e[6]=i[6],e[7]=i[7],e[8]=i[8],this},fromMat4:function(t){var e=t.val,i=this.val;return i[0]=e[0],i[1]=e[1],i[2]=e[2],i[3]=e[4],i[4]=e[5],i[5]=e[6],i[6]=e[8],i[7]=e[9],i[8]=e[10],this},fromArray:function(t){var e=this.val;return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],this},identity:function(){var t=this.val;return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=0,t[7]=0,t[8]=1,this},transpose:function(){var t=this.val,e=t[1],i=t[2],n=t[5];return t[1]=t[3],t[2]=t[6],t[3]=e,t[5]=t[7],t[6]=i,t[7]=n,this},invert:function(){var t=this.val,e=t[0],i=t[1],n=t[2],r=t[3],s=t[4],a=t[5],o=t[6],l=t[7],h=t[8],u=h*s-a*l,c=-h*r+a*o,d=l*r-s*o,f=e*u+i*c+n*d;return f?(f=1/f,t[0]=u*f,t[1]=(-h*i+n*l)*f,t[2]=(a*i-n*s)*f,t[3]=c*f,t[4]=(h*e-n*o)*f,t[5]=(-a*e+n*r)*f,t[6]=d*f,t[7]=(-l*e+i*o)*f,t[8]=(s*e-i*r)*f,this):null},adjoint:function(){var t=this.val,e=t[0],i=t[1],n=t[2],r=t[3],s=t[4],a=t[5],o=t[6],l=t[7],h=t[8];return t[0]=s*h-a*l,t[1]=n*l-i*h,t[2]=i*a-n*s,t[3]=a*o-r*h,t[4]=e*h-n*o,t[5]=n*r-e*a,t[6]=r*l-s*o,t[7]=i*o-e*l,t[8]=e*s-i*r,this},determinant:function(){var t=this.val,e=t[0],i=t[1],n=t[2],r=t[3],s=t[4],a=t[5],o=t[6],l=t[7],h=t[8];return e*(h*s-a*l)+i*(-h*r+a*o)+n*(l*r-s*o)},multiply:function(t){var e=this.val,i=e[0],n=e[1],r=e[2],s=e[3],a=e[4],o=e[5],l=e[6],h=e[7],u=e[8],c=t.val,d=c[0],f=c[1],p=c[2],m=c[3],g=c[4],v=c[5],y=c[6],b=c[7],x=c[8];return e[0]=d*i+f*s+p*l,e[1]=d*n+f*a+p*h,e[2]=d*r+f*o+p*u,e[3]=m*i+g*s+v*l,e[4]=m*n+g*a+v*h,e[5]=m*r+g*o+v*u,e[6]=y*i+b*s+x*l,e[7]=y*n+b*a+x*h,e[8]=y*r+b*o+x*u,this},translate:function(t){var e=this.val,i=t.x,n=t.y;return e[6]=i*e[0]+n*e[3]+e[6],e[7]=i*e[1]+n*e[4]+e[7],e[8]=i*e[2]+n*e[5]+e[8],this},rotate:function(t){var e=this.val,i=e[0],n=e[1],r=e[2],s=e[3],a=e[4],o=e[5],l=Math.sin(t),h=Math.cos(t);return e[0]=h*i+l*s,e[1]=h*n+l*a,e[2]=h*r+l*o,e[3]=h*s-l*i,e[4]=h*a-l*n,e[5]=h*o-l*r,this},scale:function(t){var e=this.val,i=t.x,n=t.y;return e[0]=i*e[0],e[1]=i*e[1],e[2]=i*e[2],e[3]=n*e[3],e[4]=n*e[4],e[5]=n*e[5],this},fromQuat:function(t){var e=t.x,i=t.y,n=t.z,r=t.w,s=e+e,a=i+i,o=n+n,l=e*s,h=e*a,u=e*o,c=i*a,d=i*o,f=n*o,p=r*s,m=r*a,g=r*o,v=this.val;return v[0]=1-(c+f),v[3]=h+g,v[6]=u-m,v[1]=h-g,v[4]=1-(l+f),v[7]=d+p,v[2]=u+m,v[5]=d-p,v[8]=1-(l+c),this},normalFromMat4:function(t){var e=t.val,i=this.val,n=e[0],r=e[1],s=e[2],a=e[3],o=e[4],l=e[5],h=e[6],u=e[7],c=e[8],d=e[9],f=e[10],p=e[11],m=e[12],g=e[13],v=e[14],y=e[15],b=n*l-r*o,x=n*h-s*o,w=n*u-a*o,T=r*h-s*l,S=r*u-a*l,E=s*u-a*h,C=c*g-d*m,A=c*v-f*m,_=c*y-p*m,k=d*v-f*g,P=d*y-p*g,M=f*y-p*v,D=b*M-x*P+w*k+T*_-S*A+E*C;return D?(D=1/D,i[0]=(l*M-h*P+u*k)*D,i[1]=(h*_-o*M-u*A)*D,i[2]=(o*P-l*_+u*C)*D,i[3]=(s*P-r*M-a*k)*D,i[4]=(n*M-s*_+a*A)*D,i[5]=(r*_-n*P-a*C)*D,i[6]=(g*E-v*S+y*T)*D,i[7]=(v*w-m*E-y*x)*D,i[8]=(m*S-g*w+y*b)*D,this):null}});t.exports=n},37867:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(83419),r=i(25836),s=new n({initialize:function(t){this.val=new Float32Array(16),t?this.copy(t):this.identity()},clone:function(){return new s(this)},set:function(t){return this.copy(t)},setValues:function(t,e,i,n,r,s,a,o,l,h,u,c,d,f,p,m){var g=this.val;return g[0]=t,g[1]=e,g[2]=i,g[3]=n,g[4]=r,g[5]=s,g[6]=a,g[7]=o,g[8]=l,g[9]=h,g[10]=u,g[11]=c,g[12]=d,g[13]=f,g[14]=p,g[15]=m,this},copy:function(t){var e=t.val;return this.setValues(e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7],e[8],e[9],e[10],e[11],e[12],e[13],e[14],e[15])},fromArray:function(t){return this.setValues(t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8],t[9],t[10],t[11],t[12],t[13],t[14],t[15])},zero:function(){return this.setValues(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)},transform:function(t,e,i){var n=a.fromQuat(i).val,r=e.x,s=e.y,o=e.z;return this.setValues(n[0]*r,n[1]*r,n[2]*r,0,n[4]*s,n[5]*s,n[6]*s,0,n[8]*o,n[9]*o,n[10]*o,0,t.x,t.y,t.z,1)},xyz:function(t,e,i){this.identity();var n=this.val;return n[12]=t,n[13]=e,n[14]=i,this},scaling:function(t,e,i){this.zero();var n=this.val;return n[0]=t,n[5]=e,n[10]=i,n[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 t=this.val,e=t[1],i=t[2],n=t[3],r=t[6],s=t[7],a=t[11];return t[1]=t[4],t[2]=t[8],t[3]=t[12],t[4]=e,t[6]=t[9],t[7]=t[13],t[8]=i,t[9]=r,t[11]=t[14],t[12]=n,t[13]=s,t[14]=a,this},getInverse:function(t){return this.copy(t),this.invert()},invert:function(){var t=this.val,e=t[0],i=t[1],n=t[2],r=t[3],s=t[4],a=t[5],o=t[6],l=t[7],h=t[8],u=t[9],c=t[10],d=t[11],f=t[12],p=t[13],m=t[14],g=t[15],v=e*a-i*s,y=e*o-n*s,b=e*l-r*s,x=i*o-n*a,w=i*l-r*a,T=n*l-r*o,S=h*p-u*f,E=h*m-c*f,C=h*g-d*f,A=u*m-c*p,_=u*g-d*p,k=c*g-d*m,P=v*k-y*_+b*A+x*C-w*E+T*S;return P?(P=1/P,this.setValues((a*k-o*_+l*A)*P,(n*_-i*k-r*A)*P,(p*T-m*w+g*x)*P,(c*w-u*T-d*x)*P,(o*C-s*k-l*E)*P,(e*k-n*C+r*E)*P,(m*b-f*T-g*y)*P,(h*T-c*b+d*y)*P,(s*_-a*C+l*S)*P,(i*C-e*_-r*S)*P,(f*w-p*b+g*v)*P,(u*b-h*w-d*v)*P,(a*E-s*A-o*S)*P,(e*A-i*E+n*S)*P,(p*y-f*x-m*v)*P,(h*x-u*y+c*v)*P)):this},adjoint:function(){var t=this.val,e=t[0],i=t[1],n=t[2],r=t[3],s=t[4],a=t[5],o=t[6],l=t[7],h=t[8],u=t[9],c=t[10],d=t[11],f=t[12],p=t[13],m=t[14],g=t[15];return this.setValues(a*(c*g-d*m)-u*(o*g-l*m)+p*(o*d-l*c),-(i*(c*g-d*m)-u*(n*g-r*m)+p*(n*d-r*c)),i*(o*g-l*m)-a*(n*g-r*m)+p*(n*l-r*o),-(i*(o*d-l*c)-a*(n*d-r*c)+u*(n*l-r*o)),-(s*(c*g-d*m)-h*(o*g-l*m)+f*(o*d-l*c)),e*(c*g-d*m)-h*(n*g-r*m)+f*(n*d-r*c),-(e*(o*g-l*m)-s*(n*g-r*m)+f*(n*l-r*o)),e*(o*d-l*c)-s*(n*d-r*c)+h*(n*l-r*o),s*(u*g-d*p)-h*(a*g-l*p)+f*(a*d-l*u),-(e*(u*g-d*p)-h*(i*g-r*p)+f*(i*d-r*u)),e*(a*g-l*p)-s*(i*g-r*p)+f*(i*l-r*a),-(e*(a*d-l*u)-s*(i*d-r*u)+h*(i*l-r*a)),-(s*(u*m-c*p)-h*(a*m-o*p)+f*(a*c-o*u)),e*(u*m-c*p)-h*(i*m-n*p)+f*(i*c-n*u),-(e*(a*m-o*p)-s*(i*m-n*p)+f*(i*o-n*a)),e*(a*c-o*u)-s*(i*c-n*u)+h*(i*o-n*a))},determinant:function(){var t=this.val,e=t[0],i=t[1],n=t[2],r=t[3],s=t[4],a=t[5],o=t[6],l=t[7],h=t[8],u=t[9],c=t[10],d=t[11],f=t[12],p=t[13],m=t[14],g=t[15];return(e*a-i*s)*(c*g-d*m)-(e*o-n*s)*(u*g-d*p)+(e*l-r*s)*(u*m-c*p)+(i*o-n*a)*(h*g-d*f)-(i*l-r*a)*(h*m-c*f)+(n*l-r*o)*(h*p-u*f)},multiply:function(t){var e=this.val,i=e[0],n=e[1],r=e[2],s=e[3],a=e[4],o=e[5],l=e[6],h=e[7],u=e[8],c=e[9],d=e[10],f=e[11],p=e[12],m=e[13],g=e[14],v=e[15],y=t.val,b=y[0],x=y[1],w=y[2],T=y[3];return e[0]=b*i+x*a+w*u+T*p,e[1]=b*n+x*o+w*c+T*m,e[2]=b*r+x*l+w*d+T*g,e[3]=b*s+x*h+w*f+T*v,b=y[4],x=y[5],w=y[6],T=y[7],e[4]=b*i+x*a+w*u+T*p,e[5]=b*n+x*o+w*c+T*m,e[6]=b*r+x*l+w*d+T*g,e[7]=b*s+x*h+w*f+T*v,b=y[8],x=y[9],w=y[10],T=y[11],e[8]=b*i+x*a+w*u+T*p,e[9]=b*n+x*o+w*c+T*m,e[10]=b*r+x*l+w*d+T*g,e[11]=b*s+x*h+w*f+T*v,b=y[12],x=y[13],w=y[14],T=y[15],e[12]=b*i+x*a+w*u+T*p,e[13]=b*n+x*o+w*c+T*m,e[14]=b*r+x*l+w*d+T*g,e[15]=b*s+x*h+w*f+T*v,this},multiplyLocal:function(t){var e=this.val,i=t.val;return this.setValues(e[0]*i[0]+e[1]*i[4]+e[2]*i[8]+e[3]*i[12],e[0]*i[1]+e[1]*i[5]+e[2]*i[9]+e[3]*i[13],e[0]*i[2]+e[1]*i[6]+e[2]*i[10]+e[3]*i[14],e[0]*i[3]+e[1]*i[7]+e[2]*i[11]+e[3]*i[15],e[4]*i[0]+e[5]*i[4]+e[6]*i[8]+e[7]*i[12],e[4]*i[1]+e[5]*i[5]+e[6]*i[9]+e[7]*i[13],e[4]*i[2]+e[5]*i[6]+e[6]*i[10]+e[7]*i[14],e[4]*i[3]+e[5]*i[7]+e[6]*i[11]+e[7]*i[15],e[8]*i[0]+e[9]*i[4]+e[10]*i[8]+e[11]*i[12],e[8]*i[1]+e[9]*i[5]+e[10]*i[9]+e[11]*i[13],e[8]*i[2]+e[9]*i[6]+e[10]*i[10]+e[11]*i[14],e[8]*i[3]+e[9]*i[7]+e[10]*i[11]+e[11]*i[15],e[12]*i[0]+e[13]*i[4]+e[14]*i[8]+e[15]*i[12],e[12]*i[1]+e[13]*i[5]+e[14]*i[9]+e[15]*i[13],e[12]*i[2]+e[13]*i[6]+e[14]*i[10]+e[15]*i[14],e[12]*i[3]+e[13]*i[7]+e[14]*i[11]+e[15]*i[15])},premultiply:function(t){return this.multiplyMatrices(t,this)},multiplyMatrices:function(t,e){var i=t.val,n=e.val,r=i[0],s=i[4],a=i[8],o=i[12],l=i[1],h=i[5],u=i[9],c=i[13],d=i[2],f=i[6],p=i[10],m=i[14],g=i[3],v=i[7],y=i[11],b=i[15],x=n[0],w=n[4],T=n[8],S=n[12],E=n[1],C=n[5],A=n[9],_=n[13],k=n[2],P=n[6],M=n[10],D=n[14],O=n[3],R=n[7],I=n[11],F=n[15];return this.setValues(r*x+s*E+a*k+o*O,l*x+h*E+u*k+c*O,d*x+f*E+p*k+m*O,g*x+v*E+y*k+b*O,r*w+s*C+a*P+o*R,l*w+h*C+u*P+c*R,d*w+f*C+p*P+m*R,g*w+v*C+y*P+b*R,r*T+s*A+a*M+o*I,l*T+h*A+u*M+c*I,d*T+f*A+p*M+m*I,g*T+v*A+y*M+b*I,r*S+s*_+a*D+o*F,l*S+h*_+u*D+c*F,d*S+f*_+p*D+m*F,g*S+v*_+y*D+b*F)},translate:function(t){return this.translateXYZ(t.x,t.y,t.z)},translateXYZ:function(t,e,i){var n=this.val;return n[12]=n[0]*t+n[4]*e+n[8]*i+n[12],n[13]=n[1]*t+n[5]*e+n[9]*i+n[13],n[14]=n[2]*t+n[6]*e+n[10]*i+n[14],n[15]=n[3]*t+n[7]*e+n[11]*i+n[15],this},scale:function(t){return this.scaleXYZ(t.x,t.y,t.z)},scaleXYZ:function(t,e,i){var n=this.val;return n[0]=n[0]*t,n[1]=n[1]*t,n[2]=n[2]*t,n[3]=n[3]*t,n[4]=n[4]*e,n[5]=n[5]*e,n[6]=n[6]*e,n[7]=n[7]*e,n[8]=n[8]*i,n[9]=n[9]*i,n[10]=n[10]*i,n[11]=n[11]*i,this},makeRotationAxis:function(t,e){var i=Math.cos(e),n=Math.sin(e),r=1-i,s=t.x,a=t.y,o=t.z,l=r*s,h=r*a;return this.setValues(l*s+i,l*a-n*o,l*o+n*a,0,l*a+n*o,h*a+i,h*o-n*s,0,l*o-n*a,h*o+n*s,r*o*o+i,0,0,0,0,1)},rotate:function(t,e){var i=this.val,n=e.x,r=e.y,s=e.z,a=Math.sqrt(n*n+r*r+s*s);if(Math.abs(a)<1e-6)return this;n*=a=1/a,r*=a,s*=a;var o=Math.sin(t),l=Math.cos(t),h=1-l,u=i[0],c=i[1],d=i[2],f=i[3],p=i[4],m=i[5],g=i[6],v=i[7],y=i[8],b=i[9],x=i[10],w=i[11],T=i[12],S=i[13],E=i[14],C=i[15],A=n*n*h+l,_=r*n*h+s*o,k=s*n*h-r*o,P=n*r*h-s*o,M=r*r*h+l,D=s*r*h+n*o,O=n*s*h+r*o,R=r*s*h-n*o,I=s*s*h+l;return this.setValues(u*A+p*_+y*k,c*A+m*_+b*k,d*A+g*_+x*k,f*A+v*_+w*k,u*P+p*M+y*D,c*P+m*M+b*D,d*P+g*M+x*D,f*P+v*M+w*D,u*O+p*R+y*I,c*O+m*R+b*I,d*O+g*R+x*I,f*O+v*R+w*I,T,S,E,C)},rotateX:function(t){var e=this.val,i=Math.sin(t),n=Math.cos(t),r=e[4],s=e[5],a=e[6],o=e[7],l=e[8],h=e[9],u=e[10],c=e[11];return e[4]=r*n+l*i,e[5]=s*n+h*i,e[6]=a*n+u*i,e[7]=o*n+c*i,e[8]=l*n-r*i,e[9]=h*n-s*i,e[10]=u*n-a*i,e[11]=c*n-o*i,this},rotateY:function(t){var e=this.val,i=Math.sin(t),n=Math.cos(t),r=e[0],s=e[1],a=e[2],o=e[3],l=e[8],h=e[9],u=e[10],c=e[11];return e[0]=r*n-l*i,e[1]=s*n-h*i,e[2]=a*n-u*i,e[3]=o*n-c*i,e[8]=r*i+l*n,e[9]=s*i+h*n,e[10]=a*i+u*n,e[11]=o*i+c*n,this},rotateZ:function(t){var e=this.val,i=Math.sin(t),n=Math.cos(t),r=e[0],s=e[1],a=e[2],o=e[3],l=e[4],h=e[5],u=e[6],c=e[7];return e[0]=r*n+l*i,e[1]=s*n+h*i,e[2]=a*n+u*i,e[3]=o*n+c*i,e[4]=l*n-r*i,e[5]=h*n-s*i,e[6]=u*n-a*i,e[7]=c*n-o*i,this},fromRotationTranslation:function(t,e){var i=t.x,n=t.y,r=t.z,s=t.w,a=i+i,o=n+n,l=r+r,h=i*a,u=i*o,c=i*l,d=n*o,f=n*l,p=r*l,m=s*a,g=s*o,v=s*l;return this.setValues(1-(d+p),u+v,c-g,0,u-v,1-(h+p),f+m,0,c+g,f-m,1-(h+d),0,e.x,e.y,e.z,1)},fromQuat:function(t){var e=t.x,i=t.y,n=t.z,r=t.w,s=e+e,a=i+i,o=n+n,l=e*s,h=e*a,u=e*o,c=i*a,d=i*o,f=n*o,p=r*s,m=r*a,g=r*o;return this.setValues(1-(c+f),h+g,u-m,0,h-g,1-(l+f),d+p,0,u+m,d-p,1-(l+c),0,0,0,0,1)},frustum:function(t,e,i,n,r,s){var a=1/(e-t),o=1/(n-i),l=1/(r-s);return this.setValues(2*r*a,0,0,0,0,2*r*o,0,0,(e+t)*a,(n+i)*o,(s+r)*l,-1,0,0,s*r*2*l,0)},perspective:function(t,e,i,n){var r=1/Math.tan(t/2),s=1/(i-n);return this.setValues(r/e,0,0,0,0,r,0,0,0,0,(n+i)*s,-1,0,0,2*n*i*s,0)},perspectiveLH:function(t,e,i,n){return this.setValues(2*i/t,0,0,0,0,2*i/e,0,0,0,0,-n/(i-n),1,0,0,i*n/(i-n),0)},ortho:function(t,e,i,n,r,s){var a=t-e,o=i-n,l=r-s;return a=0===a?a:1/a,o=0===o?o:1/o,l=0===l?l:1/l,this.setValues(-2*a,0,0,0,0,-2*o,0,0,0,0,2*l,0,(t+e)*a,(n+i)*o,(s+r)*l,1)},lookAtRH:function(t,e,i){var n=this.val;return u.subVectors(t,e),0===u.lengthSq()&&(u.z=1),u.normalize(),l.crossVectors(i,u),0===l.lengthSq()&&(1===Math.abs(i.z)?u.x+=1e-4:u.z+=1e-4,u.normalize(),l.crossVectors(i,u)),l.normalize(),h.crossVectors(u,l),n[0]=l.x,n[1]=l.y,n[2]=l.z,n[4]=h.x,n[5]=h.y,n[6]=h.z,n[8]=u.x,n[9]=u.y,n[10]=u.z,this},lookAt:function(t,e,i){var n=t.x,r=t.y,s=t.z,a=i.x,o=i.y,l=i.z,h=e.x,u=e.y,c=e.z;if(Math.abs(n-h)<1e-6&&Math.abs(r-u)<1e-6&&Math.abs(s-c)<1e-6)return this.identity();var d=n-h,f=r-u,p=s-c,m=1/Math.sqrt(d*d+f*f+p*p),g=o*(p*=m)-l*(f*=m),v=l*(d*=m)-a*p,y=a*f-o*d;(m=Math.sqrt(g*g+v*v+y*y))?(g*=m=1/m,v*=m,y*=m):(g=0,v=0,y=0);var b=f*y-p*v,x=p*g-d*y,w=d*v-f*g;return(m=Math.sqrt(b*b+x*x+w*w))?(b*=m=1/m,x*=m,w*=m):(b=0,x=0,w=0),this.setValues(g,b,d,0,v,x,f,0,y,w,p,0,-(g*n+v*r+y*s),-(b*n+x*r+w*s),-(d*n+f*r+p*s),1)},yawPitchRoll:function(t,e,i){this.zero(),a.zero(),o.zero();var n=this.val,r=a.val,s=o.val,l=Math.sin(i),h=Math.cos(i);return n[10]=1,n[15]=1,n[0]=h,n[1]=l,n[4]=-l,n[5]=h,l=Math.sin(e),h=Math.cos(e),r[0]=1,r[15]=1,r[5]=h,r[10]=h,r[9]=-l,r[6]=l,l=Math.sin(t),h=Math.cos(t),s[5]=1,s[15]=1,s[0]=h,s[2]=-l,s[8]=l,s[10]=h,this.multiplyLocal(a),this.multiplyLocal(o),this},setWorldMatrix:function(t,e,i,n,r){return this.yawPitchRoll(t.y,t.x,t.z),a.scaling(i.x,i.y,i.z),o.xyz(e.x,e.y,e.z),this.multiplyLocal(a),this.multiplyLocal(o),n&&this.multiplyLocal(n),r&&this.multiplyLocal(r),this},multiplyToMat4:function(t,e){var i=this.val,n=t.val,r=i[0],s=i[1],a=i[2],o=i[3],l=i[4],h=i[5],u=i[6],c=i[7],d=i[8],f=i[9],p=i[10],m=i[11],g=i[12],v=i[13],y=i[14],b=i[15],x=n[0],w=n[1],T=n[2],S=n[3],E=n[4],C=n[5],A=n[6],_=n[7],k=n[8],P=n[9],M=n[10],D=n[11],O=n[12],R=n[13],I=n[14],F=n[15];return e.setValues(x*r+w*l+T*d+S*g,w*s+w*h+T*f+S*v,T*a+w*u+T*p+S*y,S*o+w*c+T*m+S*b,E*r+C*l+A*d+_*g,E*s+C*h+A*f+_*v,E*a+C*u+A*p+_*y,E*o+C*c+A*m+_*b,k*r+P*l+M*d+D*g,k*s+P*h+M*f+D*v,k*a+P*u+M*p+D*y,k*o+P*c+M*m+D*b,O*r+R*l+I*d+F*g,O*s+R*h+I*f+F*v,O*a+R*u+I*p+F*y,O*o+R*c+I*m+F*b)},fromRotationXYTranslation:function(t,e,i){var n=e.x,r=e.y,s=e.z,a=Math.sin(t.x),o=Math.cos(t.x),l=Math.sin(t.y),h=Math.cos(t.y),u=n,c=r,d=s,f=-a,p=0-f*l,m=0-o*l,g=f*h,v=o*h;return i||(u=h*n+l*s,c=p*n+o*r+g*s,d=m*n+a*r+v*s),this.setValues(h,p,m,0,0,o,a,0,l,g,v,0,u,c,d,1)},getMaxScaleOnAxis:function(){var t=this.val,e=t[0]*t[0]+t[1]*t[1]+t[2]*t[2],i=t[4]*t[4]+t[5]*t[5]+t[6]*t[6],n=t[8]*t[8]+t[9]*t[9]+t[10]*t[10];return Math.sqrt(Math.max(e,i,n))}}),a=new s,o=new s,l=new r,h=new r,u=new r;t.exports=s},86883:t=>{t.exports=function(t,e,i){return Math.min(t+e,i)}},50040:t=>{t.exports=function(t){var e=t.length;if(0===e)return 0;t.sort((function(t,e){return t-e}));var i=Math.floor(e/2);return e%2==0?(t[i]+t[i-1])/2:t[i]}},37204:t=>{t.exports=function(t,e,i){return Math.max(t-e,i)}},65201:t=>{t.exports=function(t,e,i,n){void 0===i&&(i=e+1);var r=(t-e)/(i-e);return r>1?void 0!==n?(r=(n-t)/(n-i))<0&&(r=0):r=1:r<0&&(r=0),r}},15746:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(83419),r=i(94434),s=i(29747),a=i(25836),o=new Int8Array([1,2,0]),l=new Float32Array([0,0,0]),h=new a(1,0,0),u=new a(0,1,0),c=new a,d=new r,f=new n({initialize:function(t,e,i,n){this.onChangeCallback=s,this.set(t,e,i,n)},x:{get:function(){return this._x},set:function(t){this._x=t,this.onChangeCallback(this)}},y:{get:function(){return this._y},set:function(t){this._y=t,this.onChangeCallback(this)}},z:{get:function(){return this._z},set:function(t){this._z=t,this.onChangeCallback(this)}},w:{get:function(){return this._w},set:function(t){this._w=t,this.onChangeCallback(this)}},copy:function(t){return this.set(t)},set:function(t,e,i,n,r){return void 0===r&&(r=!0),\"object\"==typeof t?(this._x=t.x||0,this._y=t.y||0,this._z=t.z||0,this._w=t.w||0):(this._x=t||0,this._y=e||0,this._z=i||0,this._w=n||0),r&&this.onChangeCallback(this),this},add:function(t){return this._x+=t.x,this._y+=t.y,this._z+=t.z,this._w+=t.w,this.onChangeCallback(this),this},subtract:function(t){return this._x-=t.x,this._y-=t.y,this._z-=t.z,this._w-=t.w,this.onChangeCallback(this),this},scale:function(t){return this._x*=t,this._y*=t,this._z*=t,this._w*=t,this.onChangeCallback(this),this},length:function(){var t=this.x,e=this.y,i=this.z,n=this.w;return Math.sqrt(t*t+e*e+i*i+n*n)},lengthSq:function(){var t=this.x,e=this.y,i=this.z,n=this.w;return t*t+e*e+i*i+n*n},normalize:function(){var t=this.x,e=this.y,i=this.z,n=this.w,r=t*t+e*e+i*i+n*n;return r>0&&(r=1/Math.sqrt(r),this._x=t*r,this._y=e*r,this._z=i*r,this._w=n*r),this.onChangeCallback(this),this},dot:function(t){return this.x*t.x+this.y*t.y+this.z*t.z+this.w*t.w},lerp:function(t,e){void 0===e&&(e=0);var i=this.x,n=this.y,r=this.z,s=this.w;return this.set(i+e*(t.x-i),n+e*(t.y-n),r+e*(t.z-r),s+e*(t.w-s))},rotationTo:function(t,e){var i=t.x*e.x+t.y*e.y+t.z*e.z;return i<-.999999?(c.copy(h).cross(t).length()<1e-6&&c.copy(u).cross(t),c.normalize(),this.setAxisAngle(c,Math.PI)):i>.999999?this.set(0,0,0,1):(c.copy(t).cross(e),this._x=c.x,this._y=c.y,this._z=c.z,this._w=1+i,this.normalize())},setAxes:function(t,e,i){var n=d.val;return n[0]=e.x,n[3]=e.y,n[6]=e.z,n[1]=i.x,n[4]=i.y,n[7]=i.z,n[2]=-t.x,n[5]=-t.y,n[8]=-t.z,this.fromMat3(d).normalize()},identity:function(){return this.set(0,0,0,1)},setAxisAngle:function(t,e){e*=.5;var i=Math.sin(e);return this.set(i*t.x,i*t.y,i*t.z,Math.cos(e))},multiply:function(t){var e=this.x,i=this.y,n=this.z,r=this.w,s=t.x,a=t.y,o=t.z,l=t.w;return this.set(e*l+r*s+i*o-n*a,i*l+r*a+n*s-e*o,n*l+r*o+e*a-i*s,r*l-e*s-i*a-n*o)},slerp:function(t,e){var i=this.x,n=this.y,r=this.z,s=this.w,a=t.x,o=t.y,l=t.z,h=t.w,u=i*a+n*o+r*l+s*h;u<0&&(u=-u,a=-a,o=-o,l=-l,h=-h);var c=1-e,d=e;if(1-u>1e-6){var f=Math.acos(u),p=Math.sin(f);c=Math.sin((1-e)*f)/p,d=Math.sin(e*f)/p}return this.set(c*i+d*a,c*n+d*o,c*r+d*l,c*s+d*h)},invert:function(){var t=this.x,e=this.y,i=this.z,n=this.w,r=t*t+e*e+i*i+n*n,s=r?1/r:0;return this.set(-t*s,-e*s,-i*s,n*s)},conjugate:function(){return this._x=-this.x,this._y=-this.y,this._z=-this.z,this.onChangeCallback(this),this},rotateX:function(t){t*=.5;var e=this.x,i=this.y,n=this.z,r=this.w,s=Math.sin(t),a=Math.cos(t);return this.set(e*a+r*s,i*a+n*s,n*a-i*s,r*a-e*s)},rotateY:function(t){t*=.5;var e=this.x,i=this.y,n=this.z,r=this.w,s=Math.sin(t),a=Math.cos(t);return this.set(e*a-n*s,i*a+r*s,n*a+e*s,r*a-i*s)},rotateZ:function(t){t*=.5;var e=this.x,i=this.y,n=this.z,r=this.w,s=Math.sin(t),a=Math.cos(t);return this.set(e*a+i*s,i*a-e*s,n*a+r*s,r*a-n*s)},calculateW:function(){var t=this.x,e=this.y,i=this.z;return this.w=-Math.sqrt(1-t*t-e*e-i*i),this},setFromEuler:function(t,e){var i=t.x/2,n=t.y/2,r=t.z/2,s=Math.cos(i),a=Math.cos(n),o=Math.cos(r),l=Math.sin(i),h=Math.sin(n),u=Math.sin(r);switch(t.order){case\"XYZ\":this.set(l*a*o+s*h*u,s*h*o-l*a*u,s*a*u+l*h*o,s*a*o-l*h*u,e);break;case\"YXZ\":this.set(l*a*o+s*h*u,s*h*o-l*a*u,s*a*u-l*h*o,s*a*o+l*h*u,e);break;case\"ZXY\":this.set(l*a*o-s*h*u,s*h*o+l*a*u,s*a*u+l*h*o,s*a*o-l*h*u,e);break;case\"ZYX\":this.set(l*a*o-s*h*u,s*h*o+l*a*u,s*a*u-l*h*o,s*a*o+l*h*u,e);break;case\"YZX\":this.set(l*a*o+s*h*u,s*h*o+l*a*u,s*a*u-l*h*o,s*a*o-l*h*u,e);break;case\"XZY\":this.set(l*a*o-s*h*u,s*h*o-l*a*u,s*a*u+l*h*o,s*a*o+l*h*u,e)}return this},setFromRotationMatrix:function(t){var e,i=t.val,n=i[0],r=i[4],s=i[8],a=i[1],o=i[5],l=i[9],h=i[2],u=i[6],c=i[10],d=n+o+c;return d>0?(e=.5/Math.sqrt(d+1),this.set((u-l)*e,(s-h)*e,(a-r)*e,.25/e)):n>o&&n>c?(e=2*Math.sqrt(1+n-o-c),this.set(.25*e,(r+a)/e,(s+h)/e,(u-l)/e)):o>c?(e=2*Math.sqrt(1+o-n-c),this.set((r+a)/e,.25*e,(l+u)/e,(s-h)/e)):(e=2*Math.sqrt(1+c-n-o),this.set((s+h)/e,(l+u)/e,.25*e,(a-r)/e)),this},fromMat3:function(t){var e,i=t.val,n=i[0]+i[4]+i[8];if(n>0)e=Math.sqrt(n+1),this.w=.5*e,e=.5/e,this._x=(i[7]-i[5])*e,this._y=(i[2]-i[6])*e,this._z=(i[3]-i[1])*e;else{var r=0;i[4]>i[0]&&(r=1),i[8]>i[3*r+r]&&(r=2);var s=o[r],a=o[s];e=Math.sqrt(i[3*r+r]-i[3*s+s]-i[3*a+a]+1),l[r]=.5*e,e=.5/e,l[s]=(i[3*s+r]+i[3*r+s])*e,l[a]=(i[3*a+r]+i[3*r+a])*e,this._x=l[0],this._y=l[1],this._z=l[2],this._w=(i[3*a+s]-i[3*s+a])*e}return this.onChangeCallback(this),this}});t.exports=f},43396:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(36383);t.exports=function(t){return t*n.RAD_TO_DEG}},74362:t=>{t.exports=function(t,e){void 0===e&&(e=1);var i=2*Math.random()*Math.PI;return t.x=Math.cos(i)*e,t.y=Math.sin(i)*e,t}},60706:t=>{t.exports=function(t,e){void 0===e&&(e=1);var i=2*Math.random()*Math.PI,n=2*Math.random()-1,r=Math.sqrt(1-n*n)*e;return t.x=Math.cos(i)*r,t.y=Math.sin(i)*r,t.z=n*e,t}},67421:t=>{t.exports=function(t,e){return void 0===e&&(e=1),t.x=(2*Math.random()-1)*e,t.y=(2*Math.random()-1)*e,t.z=(2*Math.random()-1)*e,t.w=(2*Math.random()-1)*e,t}},36305:t=>{t.exports=function(t,e){var i=t.x,n=t.y;return t.x=i*Math.cos(e)-n*Math.sin(e),t.y=i*Math.sin(e)+n*Math.cos(e),t}},11520:t=>{t.exports=function(t,e,i,n){var r=Math.cos(n),s=Math.sin(n),a=t.x-e,o=t.y-i;return t.x=a*r-o*s+e,t.y=a*s+o*r+i,t}},1163:t=>{t.exports=function(t,e,i,n,r){var s=n+Math.atan2(t.y-i,t.x-e);return t.x=e+r*Math.cos(s),t.y=i+r*Math.sin(s),t}},70336:t=>{t.exports=function(t,e,i,n,r){return t.x=e+r*Math.cos(n),t.y=i+r*Math.sin(n),t}},72678:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(25836),r=i(37867),s=i(15746),a=new r,o=new s,l=new n;t.exports=function(t,e,i){return o.setAxisAngle(e,i),a.fromRotationTranslation(o,l.set(0,0,0)),t.transformMat4(a)}},2284:t=>{t.exports=function(t){return t>0?Math.ceil(t):Math.floor(t)}},41013:t=>{t.exports=function(t,e,i){void 0===e&&(e=0),void 0===i&&(i=10);var n=Math.pow(i,-e);return Math.round(t*n)/n}},16922:t=>{t.exports=function(t,e,i,n){void 0===e&&(e=1),void 0===i&&(i=1),void 0===n&&(n=1),n*=Math.PI/t;for(var r=[],s=[],a=0;a{t.exports=function(t,e,i){return t<=e?0:t>=i?1:(t=(t-e)/(i-e))*t*(3-2*t)}},54261:t=>{t.exports=function(t,e,i){return(t=Math.max(0,Math.min(1,(t-e)/(i-e))))*t*t*(t*(6*t-15)+10)}},44408:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(26099);t.exports=function(t,e,i,r){void 0===r&&(r=new n);var s=0,a=0;return t>0&&t<=e*i&&(s=t>e-1?t-(a=Math.floor(t/e))*e:t),r.set(s,a)}},85955:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(26099);t.exports=function(t,e,i,r,s,a,o,l){void 0===l&&(l=new n);var h=Math.sin(s),u=Math.cos(s),c=u*a,d=h*a,f=-h*o,p=u*o,m=1/(c*p+f*-d);return l.x=p*m*t+-f*m*e+(r*f-i*p)*m,l.y=c*m*e+-d*m*t+(-r*c+i*d)*m,l}},26099:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(83419),r=i(43855),s=new n({initialize:function(t,e){this.x=0,this.y=0,\"object\"==typeof t?(this.x=t.x||0,this.y=t.y||0):(void 0===e&&(e=t),this.x=t||0,this.y=e||0)},clone:function(){return new s(this.x,this.y)},copy:function(t){return this.x=t.x||0,this.y=t.y||0,this},setFromObject:function(t){return this.x=t.x||0,this.y=t.y||0,this},set:function(t,e){return void 0===e&&(e=t),this.x=t,this.y=e,this},setTo:function(t,e){return this.set(t,e)},setToPolar:function(t,e){return null==e&&(e=1),this.x=Math.cos(t)*e,this.y=Math.sin(t)*e,this},equals:function(t){return this.x===t.x&&this.y===t.y},fuzzyEquals:function(t,e){return r(this.x,t.x,e)&&r(this.y,t.y,e)},angle:function(){var t=Math.atan2(this.y,this.x);return t<0&&(t+=2*Math.PI),t},setAngle:function(t){return this.setToPolar(t,this.length())},add:function(t){return this.x+=t.x,this.y+=t.y,this},subtract:function(t){return this.x-=t.x,this.y-=t.y,this},multiply:function(t){return this.x*=t.x,this.y*=t.y,this},scale:function(t){return isFinite(t)?(this.x*=t,this.y*=t):(this.x=0,this.y=0),this},divide:function(t){return this.x/=t.x,this.y/=t.y,this},negate:function(){return this.x=-this.x,this.y=-this.y,this},distance:function(t){var e=t.x-this.x,i=t.y-this.y;return Math.sqrt(e*e+i*i)},distanceSq:function(t){var e=t.x-this.x,i=t.y-this.y;return e*e+i*i},length:function(){var t=this.x,e=this.y;return Math.sqrt(t*t+e*e)},setLength:function(t){return this.normalize().scale(t)},lengthSq:function(){var t=this.x,e=this.y;return t*t+e*e},normalize:function(){var t=this.x,e=this.y,i=t*t+e*e;return i>0&&(i=1/Math.sqrt(i),this.x=t*i,this.y=e*i),this},normalizeRightHand:function(){var t=this.x;return this.x=-1*this.y,this.y=t,this},normalizeLeftHand:function(){var t=this.x;return this.x=this.y,this.y=-1*t,this},dot:function(t){return this.x*t.x+this.y*t.y},cross:function(t){return this.x*t.y-this.y*t.x},lerp:function(t,e){void 0===e&&(e=0);var i=this.x,n=this.y;return this.x=i+e*(t.x-i),this.y=n+e*(t.y-n),this},transformMat3:function(t){var e=this.x,i=this.y,n=t.val;return this.x=n[0]*e+n[3]*i+n[6],this.y=n[1]*e+n[4]*i+n[7],this},transformMat4:function(t){var e=this.x,i=this.y,n=t.val;return this.x=n[0]*e+n[4]*i+n[12],this.y=n[1]*e+n[5]*i+n[13],this},reset:function(){return this.x=0,this.y=0,this},limit:function(t){var e=this.length();return e&&e>t&&this.scale(t/e),this},reflect:function(t){return t=t.clone().normalize(),this.subtract(t.scale(2*this.dot(t)))},mirror:function(t){return this.reflect(t).negate()},rotate:function(t){var e=Math.cos(t),i=Math.sin(t);return this.set(e*this.x-i*this.y,i*this.x+e*this.y)},project:function(t){var e=this.dot(t)/t.dot(t);return this.copy(t).scale(e)}});s.ZERO=new s,s.RIGHT=new s(1,0),s.LEFT=new s(-1,0),s.UP=new s(0,-1),s.DOWN=new s(0,1),s.ONE=new s(1,1),t.exports=s},25836:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=new(i(83419))({initialize:function(t,e,i){this.x=0,this.y=0,this.z=0,\"object\"==typeof t?(this.x=t.x||0,this.y=t.y||0,this.z=t.z||0):(this.x=t||0,this.y=e||0,this.z=i||0)},up:function(){return this.x=0,this.y=1,this.z=0,this},min:function(t){return this.x=Math.min(this.x,t.x),this.y=Math.min(this.y,t.y),this.z=Math.min(this.z,t.z),this},max:function(t){return this.x=Math.max(this.x,t.x),this.y=Math.max(this.y,t.y),this.z=Math.max(this.z,t.z),this},clone:function(){return new n(this.x,this.y,this.z)},addVectors:function(t,e){return this.x=t.x+e.x,this.y=t.y+e.y,this.z=t.z+e.z,this},subVectors:function(t,e){return this.x=t.x-e.x,this.y=t.y-e.y,this.z=t.z-e.z,this},crossVectors:function(t,e){var i=t.x,n=t.y,r=t.z,s=e.x,a=e.y,o=e.z;return this.x=n*o-r*a,this.y=r*s-i*o,this.z=i*a-n*s,this},equals:function(t){return this.x===t.x&&this.y===t.y&&this.z===t.z},copy:function(t){return this.x=t.x,this.y=t.y,this.z=t.z||0,this},set:function(t,e,i){return\"object\"==typeof t?(this.x=t.x||0,this.y=t.y||0,this.z=t.z||0):(this.x=t||0,this.y=e||0,this.z=i||0),this},setFromMatrixPosition:function(t){return this.fromArray(t.val,12)},setFromMatrixColumn:function(t,e){return this.fromArray(t.val,4*e)},fromArray:function(t,e){return void 0===e&&(e=0),this.x=t[e],this.y=t[e+1],this.z=t[e+2],this},add:function(t){return this.x+=t.x,this.y+=t.y,this.z+=t.z||0,this},addScalar:function(t){return this.x+=t,this.y+=t,this.z+=t,this},addScale:function(t,e){return this.x+=t.x*e,this.y+=t.y*e,this.z+=t.z*e||0,this},subtract:function(t){return this.x-=t.x,this.y-=t.y,this.z-=t.z||0,this},multiply:function(t){return this.x*=t.x,this.y*=t.y,this.z*=t.z||1,this},scale:function(t){return isFinite(t)?(this.x*=t,this.y*=t,this.z*=t):(this.x=0,this.y=0,this.z=0),this},divide:function(t){return this.x/=t.x,this.y/=t.y,this.z/=t.z||1,this},negate:function(){return this.x=-this.x,this.y=-this.y,this.z=-this.z,this},distance:function(t){var e=t.x-this.x,i=t.y-this.y,n=t.z-this.z||0;return Math.sqrt(e*e+i*i+n*n)},distanceSq:function(t){var e=t.x-this.x,i=t.y-this.y,n=t.z-this.z||0;return e*e+i*i+n*n},length:function(){var t=this.x,e=this.y,i=this.z;return Math.sqrt(t*t+e*e+i*i)},lengthSq:function(){var t=this.x,e=this.y,i=this.z;return t*t+e*e+i*i},normalize:function(){var t=this.x,e=this.y,i=this.z,n=t*t+e*e+i*i;return n>0&&(n=1/Math.sqrt(n),this.x=t*n,this.y=e*n,this.z=i*n),this},dot:function(t){return this.x*t.x+this.y*t.y+this.z*t.z},cross:function(t){var e=this.x,i=this.y,n=this.z,r=t.x,s=t.y,a=t.z;return this.x=i*a-n*s,this.y=n*r-e*a,this.z=e*s-i*r,this},lerp:function(t,e){void 0===e&&(e=0);var i=this.x,n=this.y,r=this.z;return this.x=i+e*(t.x-i),this.y=n+e*(t.y-n),this.z=r+e*(t.z-r),this},applyMatrix3:function(t){var e=this.x,i=this.y,n=this.z,r=t.val;return this.x=r[0]*e+r[3]*i+r[6]*n,this.y=r[1]*e+r[4]*i+r[7]*n,this.z=r[2]*e+r[5]*i+r[8]*n,this},applyMatrix4:function(t){var e=this.x,i=this.y,n=this.z,r=t.val,s=1/(r[3]*e+r[7]*i+r[11]*n+r[15]);return this.x=(r[0]*e+r[4]*i+r[8]*n+r[12])*s,this.y=(r[1]*e+r[5]*i+r[9]*n+r[13])*s,this.z=(r[2]*e+r[6]*i+r[10]*n+r[14])*s,this},transformMat3:function(t){var e=this.x,i=this.y,n=this.z,r=t.val;return this.x=e*r[0]+i*r[3]+n*r[6],this.y=e*r[1]+i*r[4]+n*r[7],this.z=e*r[2]+i*r[5]+n*r[8],this},transformMat4:function(t){var e=this.x,i=this.y,n=this.z,r=t.val;return this.x=r[0]*e+r[4]*i+r[8]*n+r[12],this.y=r[1]*e+r[5]*i+r[9]*n+r[13],this.z=r[2]*e+r[6]*i+r[10]*n+r[14],this},transformCoordinates:function(t){var e=this.x,i=this.y,n=this.z,r=t.val,s=e*r[0]+i*r[4]+n*r[8]+r[12],a=e*r[1]+i*r[5]+n*r[9]+r[13],o=e*r[2]+i*r[6]+n*r[10]+r[14],l=e*r[3]+i*r[7]+n*r[11]+r[15];return this.x=s/l,this.y=a/l,this.z=o/l,this},transformQuat:function(t){var e=this.x,i=this.y,n=this.z,r=t.x,s=t.y,a=t.z,o=t.w,l=o*e+s*n-a*i,h=o*i+a*e-r*n,u=o*n+r*i-s*e,c=-r*e-s*i-a*n;return this.x=l*o+c*-r+h*-a-u*-s,this.y=h*o+c*-s+u*-r-l*-a,this.z=u*o+c*-a+l*-s-h*-r,this},project:function(t){var e=this.x,i=this.y,n=this.z,r=t.val,s=r[0],a=r[1],o=r[2],l=r[3],h=r[4],u=r[5],c=r[6],d=r[7],f=r[8],p=r[9],m=r[10],g=r[11],v=r[12],y=r[13],b=r[14],x=1/(e*l+i*d+n*g+r[15]);return this.x=(e*s+i*h+n*f+v)*x,this.y=(e*a+i*u+n*p+y)*x,this.z=(e*o+i*c+n*m+b)*x,this},projectViewMatrix:function(t,e){return this.applyMatrix4(t).applyMatrix4(e)},unprojectViewMatrix:function(t,e){return this.applyMatrix4(t).applyMatrix4(e)},unproject:function(t,e){var i=t.x,n=t.y,r=t.z,s=t.w,a=this.x-i,o=s-this.y-1-n,l=this.z;return this.x=2*a/r-1,this.y=2*o/s-1,this.z=2*l-1,this.project(e)},reset:function(){return this.x=0,this.y=0,this.z=0,this}});n.ZERO=new n,n.RIGHT=new n(1,0,0),n.LEFT=new n(-1,0,0),n.UP=new n(0,-1,0),n.DOWN=new n(0,1,0),n.FORWARD=new n(0,0,1),n.BACK=new n(0,0,-1),n.ONE=new n(1,1,1),t.exports=n},61369:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=new(i(83419))({initialize:function(t,e,i,n){this.x=0,this.y=0,this.z=0,this.w=0,\"object\"==typeof t?(this.x=t.x||0,this.y=t.y||0,this.z=t.z||0,this.w=t.w||0):(this.x=t||0,this.y=e||0,this.z=i||0,this.w=n||0)},clone:function(){return new n(this.x,this.y,this.z,this.w)},copy:function(t){return this.x=t.x,this.y=t.y,this.z=t.z||0,this.w=t.w||0,this},equals:function(t){return this.x===t.x&&this.y===t.y&&this.z===t.z&&this.w===t.w},set:function(t,e,i,n){return\"object\"==typeof t?(this.x=t.x||0,this.y=t.y||0,this.z=t.z||0,this.w=t.w||0):(this.x=t||0,this.y=e||0,this.z=i||0,this.w=n||0),this},add:function(t){return this.x+=t.x,this.y+=t.y,this.z+=t.z||0,this.w+=t.w||0,this},subtract:function(t){return this.x-=t.x,this.y-=t.y,this.z-=t.z||0,this.w-=t.w||0,this},scale:function(t){return this.x*=t,this.y*=t,this.z*=t,this.w*=t,this},length:function(){var t=this.x,e=this.y,i=this.z,n=this.w;return Math.sqrt(t*t+e*e+i*i+n*n)},lengthSq:function(){var t=this.x,e=this.y,i=this.z,n=this.w;return t*t+e*e+i*i+n*n},normalize:function(){var t=this.x,e=this.y,i=this.z,n=this.w,r=t*t+e*e+i*i+n*n;return r>0&&(r=1/Math.sqrt(r),this.x=t*r,this.y=e*r,this.z=i*r,this.w=n*r),this},dot:function(t){return this.x*t.x+this.y*t.y+this.z*t.z+this.w*t.w},lerp:function(t,e){void 0===e&&(e=0);var i=this.x,n=this.y,r=this.z,s=this.w;return this.x=i+e*(t.x-i),this.y=n+e*(t.y-n),this.z=r+e*(t.z-r),this.w=s+e*(t.w-s),this},multiply:function(t){return this.x*=t.x,this.y*=t.y,this.z*=t.z||1,this.w*=t.w||1,this},divide:function(t){return this.x/=t.x,this.y/=t.y,this.z/=t.z||1,this.w/=t.w||1,this},distance:function(t){var e=t.x-this.x,i=t.y-this.y,n=t.z-this.z||0,r=t.w-this.w||0;return Math.sqrt(e*e+i*i+n*n+r*r)},distanceSq:function(t){var e=t.x-this.x,i=t.y-this.y,n=t.z-this.z||0,r=t.w-this.w||0;return e*e+i*i+n*n+r*r},negate:function(){return this.x=-this.x,this.y=-this.y,this.z=-this.z,this.w=-this.w,this},transformMat4:function(t){var e=this.x,i=this.y,n=this.z,r=this.w,s=t.val;return this.x=s[0]*e+s[4]*i+s[8]*n+s[12]*r,this.y=s[1]*e+s[5]*i+s[9]*n+s[13]*r,this.z=s[2]*e+s[6]*i+s[10]*n+s[14]*r,this.w=s[3]*e+s[7]*i+s[11]*n+s[15]*r,this},transformQuat:function(t){var e=this.x,i=this.y,n=this.z,r=t.x,s=t.y,a=t.z,o=t.w,l=o*e+s*n-a*i,h=o*i+a*e-r*n,u=o*n+r*i-s*e,c=-r*e-s*i-a*n;return this.x=l*o+c*-r+h*-a-u*-s,this.y=h*o+c*-s+u*-r-l*-a,this.z=u*o+c*-a+l*-s-h*-r,this},reset:function(){return this.x=0,this.y=0,this.z=0,this.w=0,this}});n.prototype.sub=n.prototype.subtract,n.prototype.mul=n.prototype.multiply,n.prototype.div=n.prototype.divide,n.prototype.dist=n.prototype.distance,n.prototype.distSq=n.prototype.distanceSq,n.prototype.len=n.prototype.length,n.prototype.lenSq=n.prototype.lengthSq,t.exports=n},60417:t=>{t.exports=function(t,e,i){return Math.abs(t-e)<=i}},15994:t=>{t.exports=function(t,e,i){var n=i-e;return e+((t-e)%n+n)%n}},31040:t=>{t.exports=function(t,e,i,n){return Math.atan2(n-e,i-t)}},55495:t=>{t.exports=function(t,e){return Math.atan2(e.y-t.y,e.x-t.x)}},128:t=>{t.exports=function(t,e){return Math.atan2(e.x-t.x,e.y-t.y)}},41273:t=>{t.exports=function(t,e,i,n){return Math.atan2(i-t,n-e)}},1432:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(36383);t.exports=function(t){return t>Math.PI&&(t-=n.PI2),Math.abs(((t+n.TAU)%n.PI2-n.PI2)%n.PI2)}},12407:t=>{t.exports=function(t){return(t%=2*Math.PI)>=0?t:t+2*Math.PI}},53993:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @author @samme\n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(99472);t.exports=function(){return n(-Math.PI,Math.PI)}},86564:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @author @samme\n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(99472);t.exports=function(){return n(-180,180)}},90154:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(12407);t.exports=function(t){return n(t+Math.PI)}},48736:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(36383);t.exports=function(t,e,i){return void 0===i&&(i=.05),t===e||(Math.abs(e-t)<=i||Math.abs(e-t)>=n.PI2-i?t=e:(Math.abs(e-t)>Math.PI&&(et?t+=i:e{t.exports=function(t,e){var i=e-t;return 0===i?0:i-360*Math.floor((i- -180)/360)}},86554:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(15994);t.exports=function(t){return n(t,-Math.PI,Math.PI)}},30954:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(15994);t.exports=function(t){return n(t,-180,180)}},25588:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports={Between:i(31040),BetweenPoints:i(55495),BetweenPointsY:i(128),BetweenY:i(41273),CounterClockwise:i(1432),Normalize:i(12407),Random:i(53993),RandomDegrees:i(86564),Reverse:i(90154),RotateTo:i(48736),ShortestBetween:i(61430),Wrap:i(86554),WrapDegrees:i(30954)}},36383:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar e={PI2:2*Math.PI,TAU:.5*Math.PI,EPSILON:1e-6,DEG_TO_RAD:Math.PI/180,RAD_TO_DEG:180/Math.PI,RND:null,MIN_SAFE_INTEGER:Number.MIN_SAFE_INTEGER||-9007199254740991,MAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER||9007199254740991};t.exports=e},20339:t=>{t.exports=function(t,e,i,n){var r=t-i,s=e-n;return Math.sqrt(r*r+s*s)}},52816:t=>{t.exports=function(t,e){var i=t.x-e.x,n=t.y-e.y;return Math.sqrt(i*i+n*n)}},64559:t=>{t.exports=function(t,e){var i=t.x-e.x,n=t.y-e.y;return i*i+n*n}},82340:t=>{t.exports=function(t,e,i,n){return Math.max(Math.abs(t-i),Math.abs(e-n))}},14390:t=>{t.exports=function(t,e,i,n,r){return void 0===r&&(r=2),Math.sqrt(Math.pow(i-t,r)+Math.pow(n-e,r))}},2243:t=>{t.exports=function(t,e,i,n){return Math.abs(t-i)+Math.abs(e-n)}},89774:t=>{t.exports=function(t,e,i,n){var r=t-i,s=e-n;return r*r+s*s}},50994:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports={Between:i(20339),BetweenPoints:i(52816),BetweenPointsSquared:i(64559),Chebyshev:i(82340),Power:i(14390),Snake:i(2243),Squared:i(89774)}},62640:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(54178),r=i(41521),s=i(79980),a=i(85433),o=i(99140),l=i(48857),h=i(81596),u=i(59133),c=i(98516),d=i(35248),f=i(82500),p=i(49752);t.exports={Power0:h,Power1:u.Out,Power2:a.Out,Power3:c.Out,Power4:d.Out,Linear:h,Quad:u.Out,Cubic:a.Out,Quart:c.Out,Quint:d.Out,Sine:f.Out,Expo:l.Out,Circ:s.Out,Elastic:o.Out,Back:n.Out,Bounce:r.Out,Stepped:p,\"Quad.easeIn\":u.In,\"Cubic.easeIn\":a.In,\"Quart.easeIn\":c.In,\"Quint.easeIn\":d.In,\"Sine.easeIn\":f.In,\"Expo.easeIn\":l.In,\"Circ.easeIn\":s.In,\"Elastic.easeIn\":o.In,\"Back.easeIn\":n.In,\"Bounce.easeIn\":r.In,\"Quad.easeOut\":u.Out,\"Cubic.easeOut\":a.Out,\"Quart.easeOut\":c.Out,\"Quint.easeOut\":d.Out,\"Sine.easeOut\":f.Out,\"Expo.easeOut\":l.Out,\"Circ.easeOut\":s.Out,\"Elastic.easeOut\":o.Out,\"Back.easeOut\":n.Out,\"Bounce.easeOut\":r.Out,\"Quad.easeInOut\":u.InOut,\"Cubic.easeInOut\":a.InOut,\"Quart.easeInOut\":c.InOut,\"Quint.easeInOut\":d.InOut,\"Sine.easeInOut\":f.InOut,\"Expo.easeInOut\":l.InOut,\"Circ.easeInOut\":s.InOut,\"Elastic.easeInOut\":o.InOut,\"Back.easeInOut\":n.InOut,\"Bounce.easeInOut\":r.InOut}},1639:t=>{t.exports=function(t,e){return void 0===e&&(e=1.70158),t*t*((e+1)*t-e)}},50099:t=>{t.exports=function(t,e){void 0===e&&(e=1.70158);var i=1.525*e;return(t*=2)<1?t*t*((i+1)*t-i)*.5:.5*((t-=2)*t*((i+1)*t+i)+2)}},41286:t=>{t.exports=function(t,e){return void 0===e&&(e=1.70158),--t*t*((e+1)*t+e)+1}},54178:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports={In:i(1639),Out:i(41286),InOut:i(50099)}},59590:t=>{t.exports=function(t){return(t=1-t)<1/2.75?1-7.5625*t*t:t<2/2.75?1-(7.5625*(t-=1.5/2.75)*t+.75):t<2.5/2.75?1-(7.5625*(t-=2.25/2.75)*t+.9375):1-(7.5625*(t-=2.625/2.75)*t+.984375)}},41788:t=>{t.exports=function(t){var e=!1;return t<.5?(t=1-2*t,e=!0):t=2*t-1,t<1/2.75?t*=7.5625*t:t=t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375,e?.5*(1-t):.5*t+.5}},69905:t=>{t.exports=function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375}},41521:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports={In:i(59590),Out:i(69905),InOut:i(41788)}},91861:t=>{t.exports=function(t){return 1-Math.sqrt(1-t*t)}},4177:t=>{t.exports=function(t){return(t*=2)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)}},57512:t=>{t.exports=function(t){return Math.sqrt(1- --t*t)}},79980:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports={In:i(91861),Out:i(57512),InOut:i(4177)}},51150:t=>{t.exports=function(t){return t*t*t}},82820:t=>{t.exports=function(t){return(t*=2)<1?.5*t*t*t:.5*((t-=2)*t*t+2)}},35033:t=>{t.exports=function(t){return--t*t*t+1}},85433:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports={In:i(51150),Out:i(35033),InOut:i(82820)}},69965:t=>{t.exports=function(t,e,i){if(void 0===e&&(e=.1),void 0===i&&(i=.1),0===t)return 0;if(1===t)return 1;var n=i/4;return e<1?e=1:n=i*Math.asin(1/e)/(2*Math.PI),-e*Math.pow(2,10*(t-=1))*Math.sin((t-n)*(2*Math.PI)/i)}},50665:t=>{t.exports=function(t,e,i){if(void 0===e&&(e=.1),void 0===i&&(i=.1),0===t)return 0;if(1===t)return 1;var n=i/4;return e<1?e=1:n=i*Math.asin(1/e)/(2*Math.PI),(t*=2)<1?e*Math.pow(2,10*(t-=1))*Math.sin((t-n)*(2*Math.PI)/i)*-.5:e*Math.pow(2,-10*(t-=1))*Math.sin((t-n)*(2*Math.PI)/i)*.5+1}},7744:t=>{t.exports=function(t,e,i){if(void 0===e&&(e=.1),void 0===i&&(i=.1),0===t)return 0;if(1===t)return 1;var n=i/4;return e<1?e=1:n=i*Math.asin(1/e)/(2*Math.PI),e*Math.pow(2,-10*t)*Math.sin((t-n)*(2*Math.PI)/i)+1}},99140:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports={In:i(69965),Out:i(7744),InOut:i(50665)}},24590:t=>{t.exports=function(t){return Math.pow(2,10*(t-1))-.001}},87844:t=>{t.exports=function(t){return(t*=2)<1?.5*Math.pow(2,10*(t-1)):.5*(2-Math.pow(2,-10*(t-1)))}},89433:t=>{t.exports=function(t){return 1-Math.pow(2,-10*t)}},48857:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports={In:i(24590),Out:i(89433),InOut:i(87844)}},48820:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports={Back:i(54178),Bounce:i(41521),Circular:i(79980),Cubic:i(85433),Elastic:i(99140),Expo:i(48857),Linear:i(81596),Quadratic:i(59133),Quartic:i(98516),Quintic:i(35248),Sine:i(82500),Stepped:i(49752)}},7147:t=>{t.exports=function(t){return t}},81596:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports=i(7147)},34826:t=>{t.exports=function(t){return t*t}},20544:t=>{t.exports=function(t){return(t*=2)<1?.5*t*t:-.5*(--t*(t-2)-1)}},92029:t=>{t.exports=function(t){return t*(2-t)}},59133:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports={In:i(34826),Out:i(92029),InOut:i(20544)}},64413:t=>{t.exports=function(t){return t*t*t*t}},78137:t=>{t.exports=function(t){return(t*=2)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)}},45840:t=>{t.exports=function(t){return 1- --t*t*t*t}},98516:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports={In:i(64413),Out:i(45840),InOut:i(78137)}},87745:t=>{t.exports=function(t){return t*t*t*t*t}},16509:t=>{t.exports=function(t){return(t*=2)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)}},17868:t=>{t.exports=function(t){return--t*t*t*t*t+1}},35248:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports={In:i(87745),Out:i(17868),InOut:i(16509)}},80461:t=>{t.exports=function(t){return 0===t?0:1===t?1:1-Math.cos(t*Math.PI/2)}},34025:t=>{t.exports=function(t){return 0===t?0:1===t?1:.5*(1-Math.cos(Math.PI*t))}},52768:t=>{t.exports=function(t){return 0===t?0:1===t?1:Math.sin(t*Math.PI/2)}},82500:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports={In:i(80461),Out:i(52768),InOut:i(34025)}},72251:t=>{t.exports=function(t,e){return void 0===e&&(e=1),t<=0?0:t>=1?1:1/e*(1+(e*t|0))}},49752:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports=i(72251)},75698:t=>{t.exports=function(t,e){return void 0===e&&(e=1e-4),Math.ceil(t-e)}},43855:t=>{t.exports=function(t,e,i){return void 0===i&&(i=1e-4),Math.abs(t-e){t.exports=function(t,e){return void 0===e&&(e=1e-4),Math.floor(t+e)}},5470:t=>{t.exports=function(t,e,i){return void 0===i&&(i=1e-4),t>e-i}},94977:t=>{t.exports=function(t,e,i){return void 0===i&&(i=1e-4),t{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports={Ceil:i(75698),Equal:i(43855),Floor:i(25777),GreaterThan:i(5470),LessThan:i(94977)}},75508:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(36383),r=i(79291),s={Angle:i(25588),Distance:i(50994),Easing:i(48820),Fuzzy:i(48379),Interpolation:i(38289),Pow2:i(49001),Snap:i(73697),RandomDataGenerator:i(28453),Average:i(53307),Bernstein:i(85710),Between:i(30976),CatmullRom:i(87842),CeilTo:i(26302),Clamp:i(45319),DegToRad:i(39506),Difference:i(61241),Euler:i(38857),Factorial:i(6411),FloatBetween:i(99472),FloorTo:i(77623),FromPercent:i(62945),GetSpeed:i(38265),IsEven:i(78702),IsEvenStrict:i(94883),Linear:i(28915),LinearXY:i(94908),MaxAdd:i(86883),Median:i(50040),MinSub:i(37204),Percent:i(65201),RadToDeg:i(43396),RandomXY:i(74362),RandomXYZ:i(60706),RandomXYZW:i(67421),Rotate:i(36305),RotateAround:i(11520),RotateAroundDistance:i(1163),RotateTo:i(70336),RoundAwayFromZero:i(2284),RoundTo:i(41013),SinCosTableGenerator:i(16922),SmootherStep:i(54261),SmoothStep:i(7602),ToXY:i(44408),TransformXY:i(85955),Within:i(60417),Wrap:i(15994),Vector2:i(26099),Vector3:i(25836),Vector4:i(61369),Matrix3:i(94434),Matrix4:i(37867),Quaternion:i(15746),RotateVec3:i(72678)};s=r(!1,s,n),t.exports=s},89318:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(85710);t.exports=function(t,e){for(var i=0,r=t.length-1,s=0;s<=r;s++)i+=Math.pow(1-e,r-s)*Math.pow(e,s)*t[s]*n(r,s);return i}},77259:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(87842);t.exports=function(t,e){var i=t.length-1,r=i*e,s=Math.floor(r);return t[0]===t[i]?(e<0&&(s=Math.floor(r=i*(1+e))),n(r-s,t[(s-1+i)%i],t[s],t[(s+1)%i],t[(s+2)%i])):e<0?t[0]-(n(-r,t[0],t[0],t[1],t[1])-t[0]):e>1?t[i]-(n(r-i,t[i],t[i],t[i-1],t[i-1])-t[i]):n(r-s,t[s?s-1:0],t[s],t[i{t.exports=function(t,e,i,n,r){\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nreturn function(t,e){var i=1-t;return i*i*i*e}(t,e)+function(t,e){var i=1-t;return 3*i*i*t*e}(t,i)+function(t,e){return 3*(1-t)*t*t*e}(t,n)+function(t,e){return t*t*t*e}(t,r)}},28392:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(28915);t.exports=function(t,e){var i=t.length-1,r=i*e,s=Math.floor(r);return e<0?n(t[0],t[1],r):e>1?n(t[i],t[i-1],i-r):n(t[s],t[s+1>i?i:s+1],r-s)}},32112:t=>{t.exports=function(t,e,i,n){\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nreturn function(t,e){var i=1-t;return i*i*e}(t,e)+function(t,e){return 2*(1-t)*t*e}(t,i)+function(t,e){return t*t*e}(t,n)}},47235:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(7602);t.exports=function(t,e,i){return e+(i-e)*n(t,0,1)}},50178:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(54261);t.exports=function(t,e,i){return e+(i-e)*n(t,0,1)}},38289:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports={Bezier:i(89318),CatmullRom:i(77259),CubicBezier:i(36316),Linear:i(28392),QuadraticBezier:i(32112),SmoothStep:i(47235),SmootherStep:i(50178)}},98439:t=>{t.exports=function(t){var e=Math.log(t)/.6931471805599453;return 1<{t.exports=function(t,e){return t>0&&0==(t&t-1)&&e>0&&0==(e&e-1)}},81230:t=>{t.exports=function(t){return t>0&&0==(t&t-1)}},49001:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports={GetNext:i(98439),IsSize:i(50030),IsValue:i(81230)}},28453:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=new(i(83419))({initialize:function(t){void 0===t&&(t=[(Date.now()*Math.random()).toString()]),this.c=1,this.s0=0,this.s1=0,this.s2=0,this.n=0,this.signs=[-1,1],t&&this.init(t)},rnd:function(){var t=2091639*this.s0+2.3283064365386963e-10*this.c;return this.c=0|t,this.s0=this.s1,this.s1=this.s2,this.s2=t-this.c,this.s2},hash:function(t){var e,i=this.n;t=t.toString();for(var n=0;n>>0,i=(e*=i)>>>0,i+=4294967296*(e-=i);return this.n=i,2.3283064365386963e-10*(i>>>0)},init:function(t){\"string\"==typeof t?this.state(t):this.sow(t)},sow:function(t){if(this.n=4022871197,this.s0=this.hash(\" \"),this.s1=this.hash(\" \"),this.s2=this.hash(\" \"),this.c=1,t)for(var e=0;e0;e--){var i=Math.floor(this.frac()*(e+1)),n=t[i];t[i]=t[e],t[e]=n}return t}});t.exports=n},63448:t=>{t.exports=function(t,e,i,n){return void 0===i&&(i=0),0===e?t:(t-=i,t=e*Math.ceil(t/e),n?(i+t)/e:i+t)}},56583:t=>{t.exports=function(t,e,i,n){return void 0===i&&(i=0),0===e?t:(t-=i,t=e*Math.floor(t/e),n?(i+t)/e:i+t)}},77720:t=>{t.exports=function(t,e,i,n){return void 0===i&&(i=0),0===e?t:(t-=i,t=e*Math.round(t/e),n?(i+t)/e:i+t)}},73697:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports={Ceil:i(63448),Floor:i(56583),To:i(77720)}},85454:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\ni(63595);var n=i(8054),r=i(79291),s={Actions:i(61061),Animations:i(60421),BlendModes:i(10312),Cache:i(83388),Cameras:i(26638),Core:i(42857),Class:i(83419),Create:i(15822),Curves:i(25410),Data:i(44965),Display:i(27460),DOM:i(84902),Events:i(93055),FX:i(66064),Game:i(50127),GameObjects:i(77856),Geom:i(55738),Input:i(14350),Loader:i(57777),Math:i(75508),Physics:i(44563),Plugins:i(18922),Renderer:i(36909),Scale:i(93364),ScaleModes:i(29795),Scene:i(97482),Scenes:i(62194),Structs:i(41392),Textures:i(27458),Tilemaps:i(62501),Time:i(90291),Tweens:i(43066),Utils:i(91799)};s.Sound=i(23717),s=r(!1,s,n),t.exports=s,i.g.Phaser=s},71289:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(83419),r=i(92209),s=i(88571),a=new n({Extends:s,Mixins:[r.Acceleration,r.Angular,r.Bounce,r.Collision,r.Debug,r.Drag,r.Enable,r.Friction,r.Gravity,r.Immovable,r.Mass,r.Pushable,r.Size,r.Velocity],initialize:function(t,e,i,n,r){s.call(this,t,e,i,n,r),this.body=null}});t.exports=a},86689:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(83419),r=i(39506),s=i(20339),a=i(89774),o=i(66022),l=i(95540),h=i(46975),u=i(72441),c=i(47956),d=i(37277),f=i(44594),p=i(26099),m=i(82248),g=new n({initialize:function(t){this.scene=t,this.systems=t.sys,this.config=this.getConfig(),this.world,this.add,this._category=1,t.sys.events.once(f.BOOT,this.boot,this),t.sys.events.on(f.START,this.start,this)},boot:function(){this.world=new m(this.scene,this.config),this.add=new o(this.world),this.systems.events.once(f.DESTROY,this.destroy,this)},start:function(){this.world||(this.world=new m(this.scene,this.config),this.add=new o(this.world));var t=this.systems.events;l(this.config,\"customUpdate\",!1)||t.on(f.UPDATE,this.world.update,this.world),t.on(f.POST_UPDATE,this.world.postUpdate,this.world),t.once(f.SHUTDOWN,this.shutdown,this)},enableUpdate:function(){this.systems.events.on(f.UPDATE,this.world.update,this.world)},disableUpdate:function(){this.systems.events.off(f.UPDATE,this.world.update,this.world)},getConfig:function(){var t=this.systems.game.config.physics,e=this.systems.settings.physics;return h(l(e,\"arcade\",{}),l(t,\"arcade\",{}))},nextCategory:function(){return this._category=this._category<<1,this._category},overlap:function(t,e,i,n,r){return void 0===i&&(i=null),void 0===n&&(n=null),void 0===r&&(r=i),this.world.collideObjects(t,e,i,n,r,!0)},collide:function(t,e,i,n,r){return void 0===i&&(i=null),void 0===n&&(n=null),void 0===r&&(r=i),this.world.collideObjects(t,e,i,n,r,!1)},collideTiles:function(t,e,i,n,r){return this.world.collideTiles(t,e,i,n,r)},overlapTiles:function(t,e,i,n,r){return this.world.overlapTiles(t,e,i,n,r)},pause:function(){return this.world.pause()},resume:function(){return this.world.resume()},accelerateTo:function(t,e,i,n,r,s){void 0===n&&(n=60);var a=Math.atan2(i-t.y,e-t.x);return t.body.acceleration.setToPolar(a,n),void 0!==r&&void 0!==s&&t.body.maxVelocity.set(r,s),a},accelerateToObject:function(t,e,i,n,r){return this.accelerateTo(t,e.x,e.y,i,n,r)},closest:function(t,e){e||(e=this.world.bodies.entries);for(var i=Number.MAX_VALUE,n=null,r=t.x,s=t.y,o=e.length,l=0;li&&(n=h,i=c)}}return n},moveTo:function(t,e,i,n,r){void 0===n&&(n=60),void 0===r&&(r=0);var a=Math.atan2(i-t.y,e-t.x);return r>0&&(n=s(t.x,t.y,e,i)/(r/1e3)),t.body.velocity.setToPolar(a,n),a},moveToObject:function(t,e,i,n){return this.moveTo(t,e.x,e.y,i,n)},velocityFromAngle:function(t,e,i){return void 0===e&&(e=60),void 0===i&&(i=new p),i.setToPolar(r(t),e)},velocityFromRotation:function(t,e,i){return void 0===e&&(e=60),void 0===i&&(i=new p),i.setToPolar(t,e)},overlapRect:function(t,e,i,n,r,s){return c(this.world,t,e,i,n,r,s)},overlapCirc:function(t,e,i,n,r){return u(this.world,t,e,i,n,r)},shutdown:function(){if(this.world){var t=this.systems.events;t.off(f.UPDATE,this.world.update,this.world),t.off(f.POST_UPDATE,this.world.postUpdate,this.world),t.off(f.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(f.START,this.start,this),this.scene=null,this.systems=null}});d.register(\"ArcadePhysics\",g,\"arcadePhysics\"),t.exports=g},13759:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(83419),r=i(92209),s=i(68287),a=new n({Extends:s,Mixins:[r.Acceleration,r.Angular,r.Bounce,r.Collision,r.Debug,r.Drag,r.Enable,r.Friction,r.Gravity,r.Immovable,r.Mass,r.Pushable,r.Size,r.Velocity],initialize:function(t,e,i,n,r){s.call(this,t,e,i,n,r),this.body=null}});t.exports=a},37742:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(83419),r=i(78389),s=i(37747),a=i(63012),o=i(43396),l=i(87841),h=i(37303),u=i(95829),c=i(26099),d=new n({Mixins:[r],initialize:function(t,e){var i=64,n=64,r=void 0!==e;r&&e.displayWidth&&(i=e.displayWidth,n=e.displayHeight),r||(e={x:0,y:0,angle:0,rotation:0,scaleX:1,scaleY:1,displayOriginX:0,displayOriginY:0}),this.world=t,this.gameObject=r?e:void 0,this.isBody=!0,this.transform={x:e.x,y:e.y,rotation:e.angle,scaleX:e.scaleX,scaleY:e.scaleY,displayOriginX:e.displayOriginX,displayOriginY:e.displayOriginY},this.debugShowBody=t.defaults.debugShowBody,this.debugShowVelocity=t.defaults.debugShowVelocity,this.debugBodyColor=t.defaults.bodyDebugColor,this.enable=!0,this.isCircle=!1,this.radius=0,this.offset=new c,this.position=new c(e.x-e.scaleX*e.displayOriginX,e.y-e.scaleY*e.displayOriginY),this.prev=this.position.clone(),this.prevFrame=this.position.clone(),this.allowRotation=!0,this.rotation=e.angle,this.preRotation=e.angle,this.width=i,this.height=n,this.sourceWidth=i,this.sourceHeight=n,e.frame&&(this.sourceWidth=e.frame.realWidth,this.sourceHeight=e.frame.realHeight),this.halfWidth=Math.abs(i/2),this.halfHeight=Math.abs(n/2),this.center=new c(this.position.x+this.halfWidth,this.position.y+this.halfHeight),this.velocity=new c,this.newVelocity=new c,this.deltaMax=new c,this.acceleration=new c,this.allowDrag=!0,this.drag=new c,this.allowGravity=!0,this.gravity=new c,this.bounce=new c,this.worldBounce=null,this.customBoundsRectangle=t.bounds,this.onWorldBounds=!1,this.onCollide=!1,this.onOverlap=!1,this.maxVelocity=new c(1e4,1e4),this.maxSpeed=-1,this.friction=new c(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=s.FACING_NONE,this.immovable=!1,this.pushable=!0,this.slideFactor=new c(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=u(!1),this.touching=u(!0),this.wasTouching=u(!0),this.blocked=u(!0),this.syncBounds=!1,this.physicsType=s.DYNAMIC_BODY,this.collisionCategory=1,this.collisionMask=1,this._sx=e.scaleX,this._sy=e.scaleY,this._dx=0,this._dy=0,this._tx=0,this._ty=0,this._bounds=new l,this.directControl=!1,this.autoFrame=this.position.clone()},updateBounds:function(){var t=this.gameObject,e=this.transform;if(t.parentContainer){var i=t.getWorldTransformMatrix(this.world._tempMatrix,this.world._tempMatrix2);e.x=i.tx,e.y=i.ty,e.rotation=o(i.rotation),e.scaleX=i.scaleX,e.scaleY=i.scaleY,e.displayOriginX=t.displayOriginX,e.displayOriginY=t.displayOriginY}else e.x=t.x,e.y=t.y,e.rotation=t.angle,e.scaleX=t.scaleX,e.scaleY=t.scaleY,e.displayOriginX=t.displayOriginX,e.displayOriginY=t.displayOriginY;var n=!1;if(this.syncBounds){var r=t.getBounds(this._bounds);this.width=r.width,this.height=r.height,n=!0}else{var s=Math.abs(e.scaleX),a=Math.abs(e.scaleY);this._sx===s&&this._sy===a||(this.width=this.sourceWidth*s,this.height=this.sourceHeight*a,this._sx=s,this._sy=a,n=!0)}n&&(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 t=this.transform;this.position.x=t.x+t.scaleX*(this.offset.x-t.displayOriginX),this.position.y=t.y+t.scaleY*(this.offset.y-t.displayOriginY),this.updateCenter()},resetFlags:function(t){void 0===t&&(t=!1);var e=this.wasTouching,i=this.touching,n=this.blocked;t?u(!0,e):(e.none=i.none,e.up=i.up,e.down=i.down,e.left=i.left,e.right=i.right),u(!0,i),u(!0,n),this.overlapR=0,this.overlapX=0,this.overlapY=0,this.embedded=!1},preUpdate:function(t,e){if(t&&this.resetFlags(),this.gameObject&&this.updateFromGameObject(),this.rotation=this.transform.rotation,this.preRotation=this.rotation,this.moves){var i=this.position;this.prev.x=i.x,this.prev.y=i.y,this.prevFrame.x=i.x,this.prevFrame.y=i.y}t&&this.update(e)},update:function(t){var e=this.prev,i=this.position,n=this.velocity;if(e.set(i.x,i.y),!this.moves)return this._dx=i.x-e.x,void(this._dy=i.y-e.y);if(this.directControl){var r=this.autoFrame;n.set((i.x-r.x)/t,(i.y-r.y)/t),this.world.updateMotion(this,t),this._dx=i.x-r.x,this._dy=i.y-r.y}else this.world.updateMotion(this,t),this.newVelocity.set(n.x*t,n.y*t),i.add(this.newVelocity),this._dx=i.x-e.x,this._dy=i.y-e.y;var s=n.x,o=n.y;if(this.updateCenter(),this.angle=Math.atan2(o,s),this.speed=Math.sqrt(s*s+o*o),this.collideWorldBounds&&this.checkWorldBounds()&&this.onWorldBounds){var l=this.blocked;this.world.emit(a.WORLD_BOUNDS,this,l.up,l.down,l.left,l.right)}},postUpdate:function(){var t=this.position,e=t.x-this.prevFrame.x,i=t.y-this.prevFrame.y,n=this.gameObject;if(this.moves){var r=this.deltaMax.x,a=this.deltaMax.y;0!==r&&0!==e&&(e<0&&e<-r?e=-r:e>0&&e>r&&(e=r)),0!==a&&0!==i&&(i<0&&i<-a?i=-a:i>0&&i>a&&(i=a)),n&&(n.x+=e,n.y+=i)}e<0?this.facing=s.FACING_LEFT:e>0&&(this.facing=s.FACING_RIGHT),i<0?this.facing=s.FACING_UP:i>0&&(this.facing=s.FACING_DOWN),this.allowRotation&&n&&(n.angle+=this.deltaZ()),this._tx=e,this._ty=i,this.autoFrame.set(t.x,t.y)},setBoundsRectangle:function(t){return this.customBoundsRectangle=t||this.world.bounds,this},checkWorldBounds:function(){var t=this.position,e=this.velocity,i=this.blocked,n=this.customBoundsRectangle,r=this.world.checkCollision,s=this.worldBounce?-this.worldBounce.x:-this.bounce.x,a=this.worldBounce?-this.worldBounce.y:-this.bounce.y,o=!1;return t.xn.right&&r.right&&(t.x=n.right-this.width,e.x*=s,i.right=!0,o=!0),t.yn.bottom&&r.down&&(t.y=n.bottom-this.height,e.y*=a,i.down=!0,o=!0),o&&(this.blocked.none=!1,this.updateCenter()),o},setOffset:function(t,e){return void 0===e&&(e=t),this.offset.set(t,e),this},setGameObject:function(t,e){if(void 0===e&&(e=!0),!t||!t.hasTransformComponent)return this;var i=this.world;return this.gameObject&&this.gameObject.body&&(i.disable(this.gameObject),this.gameObject.body=null),t.body&&i.disable(t),this.gameObject=t,t.body=this,this.setSize(),this.enable=e,this},setSize:function(t,e,i){void 0===i&&(i=!0);var n=this.gameObject;if(n&&(!t&&n.frame&&(t=n.frame.realWidth),!e&&n.frame&&(e=n.frame.realHeight)),this.sourceWidth=t,this.sourceHeight=e,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(),i&&n&&n.getCenter){var r=(n.width-t)/2,s=(n.height-e)/2;this.offset.set(r,s)}return this.isCircle=!1,this.radius=0,this},setCircle:function(t,e,i){return void 0===e&&(e=this.offset.x),void 0===i&&(i=this.offset.y),t>0?(this.isCircle=!0,this.radius=t,this.sourceWidth=2*t,this.sourceHeight=2*t,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(e,i),this.updateCenter()):this.isCircle=!1,this},reset:function(t,e){this.stop();var i=this.gameObject;i&&(i.setPosition(t,e),this.rotation=i.angle,this.preRotation=i.angle);var n=this.position;i&&i.getTopLeft?i.getTopLeft(n):n.set(t,e),this.prev.copy(n),this.prevFrame.copy(n),this.autoFrame.copy(n),i&&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(t){return t.x=this.x,t.y=this.y,t.right=this.right,t.bottom=this.bottom,t},hitTest:function(t,e){return this.isCircle?this.radius>0&&t>=this.left&&t<=this.right&&e>=this.top&&e<=this.bottom&&(this.center.x-t)*(this.center.x-t)+(this.center.y-e)*(this.center.y-e)<=this.radius*this.radius:h(this,t,e)},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(t){var e=this.position,i=e.x+this.halfWidth,n=e.y+this.halfHeight;this.debugShowBody&&(t.lineStyle(t.defaultStrokeWidth,this.debugBodyColor),this.isCircle?t.strokeCircle(i,n,this.width/2):(this.checkCollision.up&&t.lineBetween(e.x,e.y,e.x+this.width,e.y),this.checkCollision.right&&t.lineBetween(e.x+this.width,e.y,e.x+this.width,e.y+this.height),this.checkCollision.down&&t.lineBetween(e.x,e.y+this.height,e.x+this.width,e.y+this.height),this.checkCollision.left&&t.lineBetween(e.x,e.y,e.x,e.y+this.height))),this.debugShowVelocity&&(t.lineStyle(t.defaultStrokeWidth,this.world.defaults.velocityDebugColor,1),t.lineBetween(i,n,i+this.velocity.x/2,n+this.velocity.y/2))},willDrawDebug:function(){return this.debugShowBody||this.debugShowVelocity},setDirectControl:function(t){return void 0===t&&(t=!0),this.directControl=t,this},setCollideWorldBounds:function(t,e,i,n){void 0===t&&(t=!0),this.collideWorldBounds=t;var r=void 0!==e,s=void 0!==i;return(r||s)&&(this.worldBounce||(this.worldBounce=new c),r&&(this.worldBounce.x=e),s&&(this.worldBounce.y=i)),void 0!==n&&(this.onWorldBounds=n),this},setVelocity:function(t,e){return this.velocity.set(t,e),t=this.velocity.x,e=this.velocity.y,this.speed=Math.sqrt(t*t+e*e),this},setVelocityX:function(t){return this.setVelocity(t,this.velocity.y)},setVelocityY:function(t){return this.setVelocity(this.velocity.x,t)},setMaxVelocity:function(t,e){return this.maxVelocity.set(t,e),this},setMaxVelocityX:function(t){return this.maxVelocity.x=t,this},setMaxVelocityY:function(t){return this.maxVelocity.y=t,this},setMaxSpeed:function(t){return this.maxSpeed=t,this},setSlideFactor:function(t,e){return this.slideFactor.set(t,e),this},setBounce:function(t,e){return this.bounce.set(t,e),this},setBounceX:function(t){return this.bounce.x=t,this},setBounceY:function(t){return this.bounce.y=t,this},setAcceleration:function(t,e){return this.acceleration.set(t,e),this},setAccelerationX:function(t){return this.acceleration.x=t,this},setAccelerationY:function(t){return this.acceleration.y=t,this},setAllowDrag:function(t){return void 0===t&&(t=!0),this.allowDrag=t,this},setAllowGravity:function(t){return void 0===t&&(t=!0),this.allowGravity=t,this},setAllowRotation:function(t){return void 0===t&&(t=!0),this.allowRotation=t,this},setDrag:function(t,e){return this.drag.set(t,e),this},setDamping:function(t){return this.useDamping=t,this},setDragX:function(t){return this.drag.x=t,this},setDragY:function(t){return this.drag.y=t,this},setGravity:function(t,e){return this.gravity.set(t,e),this},setGravityX:function(t){return this.gravity.x=t,this},setGravityY:function(t){return this.gravity.y=t,this},setFriction:function(t,e){return this.friction.set(t,e),this},setFrictionX:function(t){return this.friction.x=t,this},setFrictionY:function(t){return this.friction.y=t,this},setAngularVelocity:function(t){return this.angularVelocity=t,this},setAngularAcceleration:function(t){return this.angularAcceleration=t,this},setAngularDrag:function(t){return this.angularDrag=t,this},setMass:function(t){return this.mass=t,this},setImmovable:function(t){return void 0===t&&(t=!0),this.immovable=t,this},setEnable:function(t){return void 0===t&&(t=!0),this.enable=t,this},processX:function(t,e,i,n){this.x+=t,this.updateCenter(),null!==e&&(this.velocity.x=e*this.slideFactor.x);var r=this.blocked;i&&(r.left=!0,r.none=!1),n&&(r.right=!0,r.none=!1)},processY:function(t,e,i,n){this.y+=t,this.updateCenter(),null!==e&&(this.velocity.y=e*this.slideFactor.y);var r=this.blocked;i&&(r.up=!0,r.none=!1),n&&(r.down=!0,r.none=!1)},x:{get:function(){return this.position.x},set:function(t){this.position.x=t}},y:{get:function(){return this.position.y},set:function(t){this.position.y=t}},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}}});t.exports=d},79342:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=new(i(83419))({initialize:function(t,e,i,n,r,s,a){this.world=t,this.name=\"\",this.active=!0,this.overlapOnly=e,this.object1=i,this.object2=n,this.collideCallback=r,this.processCallback=s,this.callbackContext=a},setName:function(t){return this.name=t,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}});t.exports=n},66022:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(71289),r=i(13759),s=i(37742),a=i(83419),o=i(37747),l=i(60758),h=i(72624),u=i(71464),c=new a({initialize:function(t){this.world=t,this.scene=t.scene,this.sys=t.scene.sys},collider:function(t,e,i,n,r){return this.world.addCollider(t,e,i,n,r)},overlap:function(t,e,i,n,r){return this.world.addOverlap(t,e,i,n,r)},existing:function(t,e){var i=e?o.STATIC_BODY:o.DYNAMIC_BODY;return this.world.enableBody(t,i),t},staticImage:function(t,e,i,r){var s=new n(this.scene,t,e,i,r);return this.sys.displayList.add(s),this.world.enableBody(s,o.STATIC_BODY),s},image:function(t,e,i,r){var s=new n(this.scene,t,e,i,r);return this.sys.displayList.add(s),this.world.enableBody(s,o.DYNAMIC_BODY),s},staticSprite:function(t,e,i,n){var s=new r(this.scene,t,e,i,n);return this.sys.displayList.add(s),this.sys.updateList.add(s),this.world.enableBody(s,o.STATIC_BODY),s},sprite:function(t,e,i,n){var s=new r(this.scene,t,e,i,n);return this.sys.displayList.add(s),this.sys.updateList.add(s),this.world.enableBody(s,o.DYNAMIC_BODY),s},staticGroup:function(t,e){return this.sys.updateList.add(new u(this.world,this.world.scene,t,e))},group:function(t,e){return this.sys.updateList.add(new l(this.world,this.world.scene,t,e))},body:function(t,e,i,n){var r=new s(this.world);return r.position.set(t,e),i&&n&&r.setSize(i,n),this.world.add(r,o.DYNAMIC_BODY),r},staticBody:function(t,e,i,n){var r=new h(this.world);return r.position.set(t,e),i&&n&&r.setSize(i,n),this.world.add(r,o.STATIC_BODY),r},destroy:function(){this.world=null,this.scene=null,this.sys=null}});t.exports=c},79599:t=>{t.exports=function(t){var e=0;if(Array.isArray(t))for(var i=0;i{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(37747);t.exports=function(t,e,i,r){var s=0,a=t.deltaAbsX()+e.deltaAbsX()+r;return 0===t._dx&&0===e._dx?(t.embedded=!0,e.embedded=!0):t._dx>e._dx?(s=t.right-e.x)>a&&!i||!1===t.checkCollision.right||!1===e.checkCollision.left?s=0:(t.touching.none=!1,t.touching.right=!0,e.touching.none=!1,e.touching.left=!0,e.physicsType!==n.STATIC_BODY||i||(t.blocked.none=!1,t.blocked.right=!0),t.physicsType!==n.STATIC_BODY||i||(e.blocked.none=!1,e.blocked.left=!0)):t._dxa&&!i||!1===t.checkCollision.left||!1===e.checkCollision.right?s=0:(t.touching.none=!1,t.touching.left=!0,e.touching.none=!1,e.touching.right=!0,e.physicsType!==n.STATIC_BODY||i||(t.blocked.none=!1,t.blocked.left=!0),t.physicsType!==n.STATIC_BODY||i||(e.blocked.none=!1,e.blocked.right=!0))),t.overlapX=s,e.overlapX=s,s}},45170:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(37747);t.exports=function(t,e,i,r){var s=0,a=t.deltaAbsY()+e.deltaAbsY()+r;return 0===t._dy&&0===e._dy?(t.embedded=!0,e.embedded=!0):t._dy>e._dy?(s=t.bottom-e.y)>a&&!i||!1===t.checkCollision.down||!1===e.checkCollision.up?s=0:(t.touching.none=!1,t.touching.down=!0,e.touching.none=!1,e.touching.up=!0,e.physicsType!==n.STATIC_BODY||i||(t.blocked.none=!1,t.blocked.down=!0),t.physicsType!==n.STATIC_BODY||i||(e.blocked.none=!1,e.blocked.up=!0)):t._dya&&!i||!1===t.checkCollision.up||!1===e.checkCollision.down?s=0:(t.touching.none=!1,t.touching.up=!0,e.touching.none=!1,e.touching.down=!0,e.physicsType!==n.STATIC_BODY||i||(t.blocked.none=!1,t.blocked.up=!0),t.physicsType!==n.STATIC_BODY||i||(e.blocked.none=!1,e.blocked.down=!0))),t.overlapY=s,e.overlapY=s,s}},60758:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(13759),r=i(83419),s=i(78389),a=i(37747),o=i(95540),l=i(26479),h=i(41212),u=new r({Extends:l,Mixins:[s],initialize:function(t,e,i,r){if(i||r)if(h(i))r=i,i=null,r.internalCreateCallback=this.createCallbackHandler,r.internalRemoveCallback=this.removeCallbackHandler;else if(Array.isArray(i)&&h(i[0])){var s=this;i.forEach((function(t){t.internalCreateCallback=s.createCallbackHandler,t.internalRemoveCallback=s.removeCallbackHandler,t.classType=o(t,\"classType\",n)})),r=null}else r={internalCreateCallback:this.createCallbackHandler,internalRemoveCallback:this.removeCallbackHandler};else r={internalCreateCallback:this.createCallbackHandler,internalRemoveCallback:this.removeCallbackHandler};this.world=t,r&&(r.classType=o(r,\"classType\",n)),this.physicsType=a.DYNAMIC_BODY,this.collisionCategory=1,this.collisionMask=2147483647,this.defaults={setCollideWorldBounds:o(r,\"collideWorldBounds\",!1),setBoundsRectangle:o(r,\"customBoundsRectangle\",null),setAccelerationX:o(r,\"accelerationX\",0),setAccelerationY:o(r,\"accelerationY\",0),setAllowDrag:o(r,\"allowDrag\",!0),setAllowGravity:o(r,\"allowGravity\",!0),setAllowRotation:o(r,\"allowRotation\",!0),setDamping:o(r,\"useDamping\",!1),setBounceX:o(r,\"bounceX\",0),setBounceY:o(r,\"bounceY\",0),setDragX:o(r,\"dragX\",0),setDragY:o(r,\"dragY\",0),setEnable:o(r,\"enable\",!0),setGravityX:o(r,\"gravityX\",0),setGravityY:o(r,\"gravityY\",0),setFrictionX:o(r,\"frictionX\",0),setFrictionY:o(r,\"frictionY\",0),setMaxSpeed:o(r,\"maxSpeed\",-1),setMaxVelocityX:o(r,\"maxVelocityX\",1e4),setMaxVelocityY:o(r,\"maxVelocityY\",1e4),setVelocityX:o(r,\"velocityX\",0),setVelocityY:o(r,\"velocityY\",0),setAngularVelocity:o(r,\"angularVelocity\",0),setAngularAcceleration:o(r,\"angularAcceleration\",0),setAngularDrag:o(r,\"angularDrag\",0),setMass:o(r,\"mass\",1),setImmovable:o(r,\"immovable\",!1)},l.call(this,e,i,r),this.type=\"PhysicsGroup\"},createCallbackHandler:function(t){t.body||this.world.enableBody(t,a.DYNAMIC_BODY);var e=t.body;for(var i in this.defaults)e[i](this.defaults[i])},removeCallbackHandler:function(t){t.body&&this.world.disableBody(t)},setVelocity:function(t,e,i){void 0===i&&(i=0);for(var n=this.getChildren(),r=0;r{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar e,i,n,r,s,a,o,l,h,u,c,d,f,p,m,g,v,y=function(){return u&&m&&i.blocked.right?(e.processX(-v,o,!1,!0),1):h&&g&&i.blocked.left?(e.processX(v,o,!0),1):f&&g&&e.blocked.right?(i.processX(-v,l,!1,!0),2):d&&m&&e.blocked.left?(i.processX(v,l,!0),2):0},b=function(t){if(n&&r)v*=.5,0===t||3===t?(e.processX(v,s),i.processX(-v,a)):(e.processX(-v,s),i.processX(v,a));else if(n&&!r)0===t||3===t?e.processX(v,o,!0):e.processX(-v,o,!1,!0);else if(!n&&r)0===t||3===t?i.processX(-v,l,!1,!0):i.processX(v,l,!0);else{var m=.5*v;0===t?p?(e.processX(v,0,!0),i.processX(0,null,!1,!0)):f?(e.processX(m,0,!0),i.processX(-m,0,!1,!0)):(e.processX(m,i.velocity.x,!0),i.processX(-m,null,!1,!0)):1===t?c?(e.processX(0,null,!1,!0),i.processX(v,0,!0)):u?(e.processX(-m,0,!1,!0),i.processX(m,0,!0)):(e.processX(-m,null,!1,!0),i.processX(m,e.velocity.x,!0)):2===t?p?(e.processX(-v,0,!1,!0),i.processX(0,null,!0)):d?(e.processX(-m,0,!1,!0),i.processX(m,0,!0)):(e.processX(-m,i.velocity.x,!1,!0),i.processX(m,null,!0)):3===t&&(c?(e.processX(0,null,!0),i.processX(-v,0,!1,!0)):h?(e.processX(m,0,!0),i.processX(-m,0,!1,!0)):(e.processX(m,i.velocity.y,!0),i.processX(-m,null,!1,!0)))}return!0};t.exports={BlockCheck:y,Check:function(){var t=e.velocity.x,n=i.velocity.x,r=Math.sqrt(n*n*i.mass/e.mass)*(n>0?1:-1),o=Math.sqrt(t*t*e.mass/i.mass)*(t>0?1:-1),l=.5*(r+o);return o-=l,s=l+(r-=l)*e.bounce.x,a=l+o*i.bounce.x,h&&g?b(0):d&&m?b(1):u&&m?b(2):!(!f||!g)&&b(3)},Set:function(t,s,a){i=s;var b=(e=t).velocity.x,x=i.velocity.x;return n=e.pushable,h=e._dx<0,u=e._dx>0,c=0===e._dx,m=Math.abs(e.right-i.x)<=Math.abs(i.right-e.x),o=x-b*e.bounce.x,r=i.pushable,d=i._dx<0,f=i._dx>0,p=0===i._dx,g=!m,l=b-x*i.bounce.x,v=Math.abs(a),y()},Run:b,RunImmovableBody1:function(t){if(1===t?i.velocity.x=0:m?i.processX(v,l,!0):i.processX(-v,l,!1,!0),e.moves){var n=e.directControl?e.y-e.autoFrame.y:e.y-e.prev.y;i.y+=n*e.friction.y,i._dy=i.y-i.prev.y}},RunImmovableBody2:function(t){if(2===t?e.velocity.x=0:g?e.processX(v,o,!0):e.processX(-v,o,!1,!0),i.moves){var n=i.directControl?i.y-i.autoFrame.y:i.y-i.prev.y;e.y+=n*i.friction.y,e._dy=e.y-e.prev.y}}}},47962:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar e,i,n,r,s,a,o,l,h,u,c,d,f,p,m,g,v,y=function(){return u&&m&&i.blocked.down?(e.processY(-v,o,!1,!0),1):h&&g&&i.blocked.up?(e.processY(v,o,!0),1):f&&g&&e.blocked.down?(i.processY(-v,l,!1,!0),2):d&&m&&e.blocked.up?(i.processY(v,l,!0),2):0},b=function(t){if(n&&r)v*=.5,0===t||3===t?(e.processY(v,s),i.processY(-v,a)):(e.processY(-v,s),i.processY(v,a));else if(n&&!r)0===t||3===t?e.processY(v,o,!0):e.processY(-v,o,!1,!0);else if(!n&&r)0===t||3===t?i.processY(-v,l,!1,!0):i.processY(v,l,!0);else{var m=.5*v;0===t?p?(e.processY(v,0,!0),i.processY(0,null,!1,!0)):f?(e.processY(m,0,!0),i.processY(-m,0,!1,!0)):(e.processY(m,i.velocity.y,!0),i.processY(-m,null,!1,!0)):1===t?c?(e.processY(0,null,!1,!0),i.processY(v,0,!0)):u?(e.processY(-m,0,!1,!0),i.processY(m,0,!0)):(e.processY(-m,null,!1,!0),i.processY(m,e.velocity.y,!0)):2===t?p?(e.processY(-v,0,!1,!0),i.processY(0,null,!0)):d?(e.processY(-m,0,!1,!0),i.processY(m,0,!0)):(e.processY(-m,i.velocity.y,!1,!0),i.processY(m,null,!0)):3===t&&(c?(e.processY(0,null,!0),i.processY(-v,0,!1,!0)):h?(e.processY(m,0,!0),i.processY(-m,0,!1,!0)):(e.processY(m,i.velocity.y,!0),i.processY(-m,null,!1,!0)))}return!0};t.exports={BlockCheck:y,Check:function(){var t=e.velocity.y,n=i.velocity.y,r=Math.sqrt(n*n*i.mass/e.mass)*(n>0?1:-1),o=Math.sqrt(t*t*e.mass/i.mass)*(t>0?1:-1),l=.5*(r+o);return o-=l,s=l+(r-=l)*e.bounce.y,a=l+o*i.bounce.y,h&&g?b(0):d&&m?b(1):u&&m?b(2):!(!f||!g)&&b(3)},Set:function(t,s,a){i=s;var b=(e=t).velocity.y,x=i.velocity.y;return n=e.pushable,h=e._dy<0,u=e._dy>0,c=0===e._dy,m=Math.abs(e.bottom-i.y)<=Math.abs(i.bottom-e.y),o=x-b*e.bounce.y,r=i.pushable,d=i._dy<0,f=i._dy>0,p=0===i._dy,g=!m,l=b-x*i.bounce.y,v=Math.abs(a),y()},Run:b,RunImmovableBody1:function(t){if(1===t?i.velocity.y=0:m?i.processY(v,l,!0):i.processY(-v,l,!1,!0),e.moves){var n=e.directControl?e.x-e.autoFrame.x:e.x-e.prev.x;i.x+=n*e.friction.x,i._dx=i.x-i.prev.x}},RunImmovableBody2:function(t){if(2===t?e.velocity.y=0:g?e.processY(v,o,!0):e.processY(-v,o,!1,!0),i.moves){var n=i.directControl?i.x-i.autoFrame.x:i.x-i.prev.x;e.x+=n*i.friction.x,e._dx=e.x-e.prev.x}}}},14087:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(64897),r=i(3017);t.exports=function(t,e,i,s,a){void 0===a&&(a=n(t,e,i,s));var o=t.immovable,l=e.immovable;if(i||0===a||o&&l||t.customSeparateX||e.customSeparateX)return 0!==a||t.embedded&&e.embedded;var h=r.Set(t,e,a);return o||l?(o?r.RunImmovableBody1(h):l&&r.RunImmovableBody2(h),!0):h>0||r.Check()}},89936:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(45170),r=i(47962);t.exports=function(t,e,i,s,a){void 0===a&&(a=n(t,e,i,s));var o=t.immovable,l=e.immovable;if(i||0===a||o&&l||t.customSeparateY||e.customSeparateY)return 0!==a||t.embedded&&e.embedded;var h=r.Set(t,e,a);return o||l?(o?r.RunImmovableBody1(h):l&&r.RunImmovableBody2(h),!0):h>0||r.Check()}},95829:t=>{t.exports=function(t,e){return void 0===e&&(e={}),e.none=t,e.up=!1,e.down=!1,e.left=!1,e.right=!1,t||(e.up=!0,e.down=!0,e.left=!0,e.right=!0),e}},72624:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(87902),r=i(83419),s=i(78389),a=i(37747),o=i(37303),l=i(95829),h=i(26099),u=new r({Mixins:[s],initialize:function(t,e){var i=64,n=64,r=void 0!==e;r&&e.displayWidth&&(i=e.displayWidth,n=e.displayHeight),r||(e={x:0,y:0,angle:0,rotation:0,scaleX:1,scaleY:1,displayOriginX:0,displayOriginY:0}),this.world=t,this.gameObject=r?e:void 0,this.isBody=!0,this.debugShowBody=t.defaults.debugShowStaticBody,this.debugBodyColor=t.defaults.staticBodyDebugColor,this.enable=!0,this.isCircle=!1,this.radius=0,this.offset=new h,this.position=new h(e.x-i*e.originX,e.y-n*e.originY),this.width=i,this.height=n,this.halfWidth=Math.abs(this.width/2),this.halfHeight=Math.abs(this.height/2),this.center=new h(this.position.x+this.halfWidth,this.position.y+this.halfHeight),this.velocity=h.ZERO,this.allowGravity=!1,this.gravity=h.ZERO,this.bounce=h.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=l(!1),this.touching=l(!0),this.wasTouching=l(!0),this.blocked=l(!0),this.physicsType=a.STATIC_BODY,this.collisionCategory=1,this.collisionMask=1,this._dx=0,this._dy=0},setGameObject:function(t,e,i){if(void 0===e&&(e=!0),void 0===i&&(i=!0),!t||!t.hasTransformComponent)return this;var n=this.world;return this.gameObject&&this.gameObject.body&&(n.disable(this.gameObject),this.gameObject.body=null),t.body&&n.disable(t),this.gameObject=t,t.body=this,this.setSize(),e&&this.updateFromGameObject(),this.enable=i,this},updateFromGameObject:function(){this.world.staticTree.remove(this);var t=this.gameObject;return t.getTopLeft(this.position),this.width=t.displayWidth,this.height=t.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(t,e){return void 0===e&&(e=t),this.world.staticTree.remove(this),this.position.x-=this.offset.x,this.position.y-=this.offset.y,this.offset.set(t,e),this.position.x+=this.offset.x,this.position.y+=this.offset.y,this.updateCenter(),this.world.staticTree.insert(this),this},setSize:function(t,e,i){void 0===i&&(i=!0);var n=this.gameObject;if(n&&n.frame&&(t||(t=n.frame.realWidth),e||(e=n.frame.realHeight)),this.world.staticTree.remove(this),this.width=t,this.height=e,this.halfWidth=Math.floor(t/2),this.halfHeight=Math.floor(e/2),i&&n&&n.getCenter){var r=n.displayWidth/2,s=n.displayHeight/2;this.position.x-=this.offset.x,this.position.y-=this.offset.y,this.offset.set(r-this.halfWidth,s-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(t,e,i){return void 0===e&&(e=this.offset.x),void 0===i&&(i=this.offset.y),t>0?(this.world.staticTree.remove(this),this.isCircle=!0,this.radius=t,this.width=2*t,this.height=2*t,this.halfWidth=Math.floor(this.width/2),this.halfHeight=Math.floor(this.height/2),this.offset.set(e,i),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(t,e){var i=this.gameObject;void 0===t&&(t=i.x),void 0===e&&(e=i.y),this.world.staticTree.remove(this),i.setPosition(t,e),i.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(t){return t.x=this.x,t.y=this.y,t.right=this.right,t.bottom=this.bottom,t},hitTest:function(t,e){return this.isCircle?n(this,t,e):o(this,t,e)},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(t){var e=this.position,i=e.x+this.halfWidth,n=e.y+this.halfHeight;this.debugShowBody&&(t.lineStyle(t.defaultStrokeWidth,this.debugBodyColor,1),this.isCircle?t.strokeCircle(i,n,this.width/2):t.strokeRect(e.x,e.y,this.width,this.height))},willDrawDebug:function(){return this.debugShowBody},setMass:function(t){return t<=0&&(t=.1),this.mass=t,this},x:{get:function(){return this.position.x},set:function(t){this.world.staticTree.remove(this),this.position.x=t,this.world.staticTree.insert(this)}},y:{get:function(){return this.position.y},set:function(t){this.world.staticTree.remove(this),this.position.y=t,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}}});t.exports=u},71464:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(13759),r=i(83419),s=i(78389),a=i(37747),o=i(95540),l=i(26479),h=i(41212),u=new r({Extends:l,Mixins:[s],initialize:function(t,e,i,r){i||r?h(i)?(r=i,i=null,r.internalCreateCallback=this.createCallbackHandler,r.internalRemoveCallback=this.removeCallbackHandler,r.createMultipleCallback=this.createMultipleCallbackHandler,r.classType=o(r,\"classType\",n)):Array.isArray(i)&&h(i[0])?(r=i,i=null,r.forEach((function(t){t.internalCreateCallback=this.createCallbackHandler,t.internalRemoveCallback=this.removeCallbackHandler,t.createMultipleCallback=this.createMultipleCallbackHandler,t.classType=o(t,\"classType\",n)}))):r={internalCreateCallback:this.createCallbackHandler,internalRemoveCallback:this.removeCallbackHandler}:r={internalCreateCallback:this.createCallbackHandler,internalRemoveCallback:this.removeCallbackHandler,createMultipleCallback:this.createMultipleCallbackHandler,classType:n},this.world=t,this.physicsType=a.STATIC_BODY,this.collisionCategory=1,this.collisionMask=1,l.call(this,e,i,r),this.type=\"StaticPhysicsGroup\"},createCallbackHandler:function(t){t.body||this.world.enableBody(t,a.STATIC_BODY)},removeCallbackHandler:function(t){t.body&&this.world.disableBody(t)},createMultipleCallbackHandler:function(){this.refresh()},refresh:function(){for(var t=this.children.entries,e=0;e{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(55495),r=i(37742),s=i(45319),a=i(83419),o=i(79342),l=i(37747),h=i(20339),u=i(52816),c=i(50792),d=i(63012),f=i(43855),p=i(5470),m=i(94977),g=i(64897),v=i(45170),y=i(96523),b=i(35154),x=i(36383),w=i(25774),T=i(96602),S=i(87841),E=i(59542),C=i(40012),A=i(14087),_=i(89936),k=i(35072),P=i(72624),M=i(2483),D=i(61340),O=i(26099),R=i(15994),I=new a({Extends:c,initialize:function(t,e){c.call(this),this.scene=t,this.bodies=new k,this.staticBodies=new k,this.pendingDestroy=new k,this.colliders=new w,this.gravity=new O(b(e,\"gravity.x\",0),b(e,\"gravity.y\",0)),this.bounds=new S(b(e,\"x\",0),b(e,\"y\",0),b(e,\"width\",t.sys.scale.width),b(e,\"height\",t.sys.scale.height)),this.checkCollision={up:b(e,\"checkCollision.up\",!0),down:b(e,\"checkCollision.down\",!0),left:b(e,\"checkCollision.left\",!0),right:b(e,\"checkCollision.right\",!0)},this.fps=b(e,\"fps\",60),this.fixedStep=b(e,\"fixedStep\",!0),this._elapsed=0,this._frameTime=1/this.fps,this._frameTimeMS=1e3*this._frameTime,this.stepsLastFrame=0,this.timeScale=b(e,\"timeScale\",1),this.OVERLAP_BIAS=b(e,\"overlapBias\",4),this.TILE_BIAS=b(e,\"tileBias\",16),this.forceX=b(e,\"forceX\",!1),this.isPaused=b(e,\"isPaused\",!1),this._total=0,this.drawDebug=b(e,\"debug\",!1),this.debugGraphic,this.defaults={debugShowBody:b(e,\"debugShowBody\",!0),debugShowStaticBody:b(e,\"debugShowStaticBody\",!0),debugShowVelocity:b(e,\"debugShowVelocity\",!0),bodyDebugColor:b(e,\"debugBodyColor\",16711935),staticBodyDebugColor:b(e,\"debugStaticBodyColor\",255),velocityDebugColor:b(e,\"debugVelocityColor\",65280)},this.maxEntries=b(e,\"maxEntries\",16),this.useTree=b(e,\"useTree\",!0),this.tree=new E(this.maxEntries),this.staticTree=new E(this.maxEntries),this.treeMinMax={minX:0,minY:0,maxX:0,maxY:0},this._tempMatrix=new D,this._tempMatrix2=new D,this.tileFilterOptions={isColliding:!0,isNotEmpty:!0,hasInterestingFace:!0},this.drawDebug&&this.createDebugGraphic()},enable:function(t,e){void 0===e&&(e=l.DYNAMIC_BODY),Array.isArray(t)||(t=[t]);for(var i=0;i=s;for(this.fixedStep||(r=.001*e,o=!0,this._elapsed=0),i=0;i=s;)this._elapsed-=s,this.step(r)}},step:function(t){var e,i,n=this.bodies.entries,r=n.length;for(e=0;e0){var h=this.tree,u=this.staticTree;for(n=(i=o.entries).length,t=0;t-1&&t.velocity.length()>d&&(t.velocity.normalize().scale(d),c=d),t.speed=c},separate:function(t,e,i,n,r){var s,a,o=!1,l=!0;if(!t.enable||!e.enable||t.checkCollision.none||e.checkCollision.none||!this.intersects(t,e))return o;if(i&&!1===i.call(n,t.gameObject||t,e.gameObject||e))return o;if(t.isCircle||e.isCircle){var h=this.separateCircle(t,e,r);h.result?(o=!0,l=!1):(s=h.x,a=h.y,l=!0)}if(l){var u=!1,c=!1,f=this.OVERLAP_BIAS;r?(u=A(t,e,r,f,s),c=_(t,e,r,f,a)):this.forceX||Math.abs(this.gravity.y+t.gravity.y)E&&(p=h(y,b,E,S)-w):b>C&&(yE&&(p=h(y,b,E,C)-w)),p*=-1}else p=t.halfWidth+e.halfWidth-u(a,o);t.overlapR=p,e.overlapR=p;var A=n(a,o),_=(p+x.EPSILON)*Math.cos(A),k=(p+x.EPSILON)*Math.sin(A),P={overlap:p,result:!1,x:_,y:k};if(i&&(!m||m&&0!==p))return P.result=!0,P;if(!m&&0===p||l&&c||t.customSeparateX||e.customSeparateX)return P.x=void 0,P.y=void 0,P;var M=!t.pushable&&!e.pushable;if(m){var D=a.x-o.x,O=a.y-o.y,R=Math.sqrt(Math.pow(D,2)+Math.pow(O,2)),I=(o.x-a.x)/R||0,F=(o.y-a.y)/R||0,L=2*(d.x*I+d.y*F-f.x*I-f.y*F)/(t.mass+e.mass);!l&&!c&&t.pushable&&e.pushable||(L*=2),!l&&t.pushable&&(d.x=d.x-L/t.mass*I,d.y=d.y-L/t.mass*F,d.multiply(t.bounce)),!c&&e.pushable&&(f.x=f.x+L/e.mass*I,f.y=f.y+L/e.mass*F,f.multiply(e.bounce)),l||c||(_*=.5,k*=.5),(!l||t.pushable||M)&&(t.x-=_,t.y-=k,t.updateCenter()),(!c||e.pushable||M)&&(e.x+=_,e.y+=k,e.updateCenter()),P.result=!0}else(!l||t.pushable||M)&&(t.x-=_,t.y-=k,t.updateCenter()),(!c||e.pushable||M)&&(e.x+=_,e.y+=k,e.updateCenter()),P.x=void 0,P.y=void 0;return P},intersects:function(t,e){return t!==e&&(t.isCircle||e.isCircle?t.isCircle?e.isCircle?u(t.center,e.center)<=t.halfWidth+e.halfWidth:this.circleBodyIntersects(t,e):this.circleBodyIntersects(e,t):!(t.right<=e.left||t.bottom<=e.top||t.left>=e.right||t.top>=e.bottom))},circleBodyIntersects:function(t,e){var i=s(t.center.x,e.left,e.right),n=s(t.center.y,e.top,e.bottom);return(t.center.x-i)*(t.center.x-i)+(t.center.y-n)*(t.center.y-n)<=t.halfWidth*t.halfWidth},overlap:function(t,e,i,n,r){return void 0===i&&(i=null),void 0===n&&(n=null),void 0===r&&(r=i),this.collideObjects(t,e,i,n,r,!0)},collide:function(t,e,i,n,r){return void 0===i&&(i=null),void 0===n&&(n=null),void 0===r&&(r=i),this.collideObjects(t,e,i,n,r,!1)},collideObjects:function(t,e,i,n,r,s){var a,o;!t.isParent||void 0!==t.physicsType&&void 0!==e&&t!==e||(t=t.children.entries),e&&e.isParent&&void 0===e.physicsType&&(e=e.children.entries);var l=Array.isArray(t),h=Array.isArray(e);if(this._total=0,l||h)if(!l&&h)for(a=0;a0},collideHandler:function(t,e,i,n,r,s){if(void 0===e&&t.isParent)return this.collideGroupVsGroup(t,t,i,n,r,s);if(!t||!e)return!1;if(t.body||t.isBody){if(e.body||e.isBody)return this.collideSpriteVsSprite(t,e,i,n,r,s);if(e.isParent)return this.collideSpriteVsGroup(t,e,i,n,r,s);if(e.isTilemap)return this.collideSpriteVsTilemapLayer(t,e,i,n,r,s)}else if(t.isParent){if(e.body||e.isBody)return this.collideSpriteVsGroup(e,t,i,n,r,s);if(e.isParent)return this.collideGroupVsGroup(t,e,i,n,r,s);if(e.isTilemap)return this.collideGroupVsTilemapLayer(t,e,i,n,r,s)}else if(t.isTilemap){if(e.body||e.isBody)return this.collideSpriteVsTilemapLayer(e,t,i,n,r,s);if(e.isParent)return this.collideGroupVsTilemapLayer(e,t,i,n,r,s)}},canCollide:function(t,e){return t&&e&&0!=(t.collisionMask&e.collisionCategory)&&0!=(e.collisionMask&t.collisionCategory)},collideSpriteVsSprite:function(t,e,i,n,r,s){var a=t.isBody?t:t.body,o=e.isBody?e:e.body;return!!this.canCollide(a,o)&&(this.separate(a,o,n,r,s)&&(i&&i.call(r,t,e),this._total++),!0)},collideSpriteVsGroup:function(t,e,i,n,r,s){var a,o,h,u=t.isBody?t:t.body;if(0!==e.getLength()&&u&&u.enable&&!u.checkCollision.none&&this.canCollide(u,e))if(this.useTree||e.physicsType===l.STATIC_BODY){var c=this.treeMinMax;c.minX=u.left,c.minY=u.top,c.maxX=u.right,c.maxY=u.bottom;var d=e.physicsType===l.DYNAMIC_BODY?this.tree.search(c):this.staticTree.search(c);for(o=d.length,a=0;a{t.exports={setAcceleration:function(t,e){return this.body.acceleration.set(t,e),this},setAccelerationX:function(t){return this.body.acceleration.x=t,this},setAccelerationY:function(t){return this.body.acceleration.y=t,this}}},59023:t=>{t.exports={setAngularVelocity:function(t){return this.body.angularVelocity=t,this},setAngularAcceleration:function(t){return this.body.angularAcceleration=t,this},setAngularDrag:function(t){return this.body.angularDrag=t,this}}},62069:t=>{t.exports={setBounce:function(t,e){return this.body.bounce.set(t,e),this},setBounceX:function(t){return this.body.bounce.x=t,this},setBounceY:function(t){return this.body.bounce.y=t,this},setCollideWorldBounds:function(t,e,i,n){return this.body.setCollideWorldBounds(t,e,i,n),this}}},78389:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(79599),r={setCollisionCategory:function(t){return(this.body?this.body:this).collisionCategory=t,this},willCollideWith:function(t){return 0!=((this.body?this.body:this).collisionMask&t)},addCollidesWith:function(t){var e=this.body?this.body:this;return e.collisionMask=e.collisionMask|t,this},removeCollidesWith:function(t){var e=this.body?this.body:this;return e.collisionMask=e.collisionMask&~t,this},setCollidesWith:function(t){return(this.body?this.body:this).collisionMask=n(t),this},resetCollisionCategory:function(){var t=this.body?this.body:this;return t.collisionCategory=1,t.collisionMask=2147483647,this}};t.exports=r},87118:t=>{t.exports={setDebug:function(t,e,i){return this.debugShowBody=t,this.debugShowVelocity=e,this.debugBodyColor=i,this},setDebugBodyColor:function(t){return this.body.debugBodyColor=t,this},debugShowBody:{get:function(){return this.body.debugShowBody},set:function(t){this.body.debugShowBody=t}},debugShowVelocity:{get:function(){return this.body.debugShowVelocity},set:function(t){this.body.debugShowVelocity=t}},debugBodyColor:{get:function(){return this.body.debugBodyColor},set:function(t){this.body.debugBodyColor=t}}}},52819:t=>{t.exports={setDrag:function(t,e){return this.body.drag.set(t,e),this},setDragX:function(t){return this.body.drag.x=t,this},setDragY:function(t){return this.body.drag.y=t,this},setDamping:function(t){return this.body.useDamping=t,this}}},4074:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar e={setDirectControl:function(t){return this.body.setDirectControl(t),this},enableBody:function(t,e,i,n,r){return t&&this.body.reset(e,i),n&&(this.body.gameObject.active=!0),r&&(this.body.gameObject.visible=!0),this.body.enable=!0,this},disableBody:function(t,e){return void 0===t&&(t=!1),void 0===e&&(e=!1),this.body.stop(),this.body.enable=!1,t&&(this.body.gameObject.active=!1),e&&(this.body.gameObject.visible=!1),this},refreshBody:function(){return this.body.updateFromGameObject(),this}};t.exports=e},40831:t=>{t.exports={setFriction:function(t,e){return this.body.friction.set(t,e),this},setFrictionX:function(t){return this.body.friction.x=t,this},setFrictionY:function(t){return this.body.friction.y=t,this}}},26775:t=>{t.exports={setGravity:function(t,e){return this.body.gravity.set(t,e),this},setGravityX:function(t){return this.body.gravity.x=t,this},setGravityY:function(t){return this.body.gravity.y=t,this}}},9437:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar e={setImmovable:function(t){return void 0===t&&(t=!0),this.body.immovable=t,this}};t.exports=e},30621:t=>{t.exports={setMass:function(t){return this.body.mass=t,this}}},72441:(t,e,i)=>{var n=i(47956),r=i(96503),s=i(2044),a=i(81491);t.exports=function(t,e,i,o,l,h){var u=n(t,e-o,i-o,2*o,2*o,l,h);if(0===u.length)return u;for(var c=new r(e,i,o),d=new r,f=[],p=0;p{t.exports=function(t,e,i,n,r,s,a){void 0===s&&(s=!0),void 0===a&&(a=!1);var o=[],l=[],h=t.treeMinMax;if(h.minX=e,h.minY=i,h.maxX=e+n,h.maxY=i+r,a&&(l=t.staticTree.search(h)),s&&t.useTree)o=t.tree.search(h);else if(s){var u=t.bodies,c={position:{x:e,y:i},left:e,top:i,right:e+n,bottom:i+r,isCircle:!1},d=t.intersects;u.iterate((function(t){d(t,c)&&o.push(t)}))}return l.concat(o)}},62121:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar e={setPushable:function(t){return void 0===t&&(t=!0),this.body.pushable=t,this}};t.exports=e},29384:t=>{t.exports={setOffset:function(t,e){return this.body.setOffset(t,e),this},setSize:function(t,e,i){return this.body.setSize(t,e,i),this},setBodySize:function(t,e,i){return this.body.setSize(t,e,i),this},setCircle:function(t,e,i){return this.body.setCircle(t,e,i),this}}},15098:t=>{t.exports={setVelocity:function(t,e){return this.body.setVelocity(t,e),this},setVelocityX:function(t){return this.body.setVelocityX(t),this},setVelocityY:function(t){return this.body.setVelocityY(t),this},setMaxVelocity:function(t,e){return this.body.maxVelocity.set(t,e),this}}},92209:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports={Acceleration:i(1093),Angular:i(59023),Bounce:i(62069),Collision:i(78389),Debug:i(87118),Drag:i(52819),Enable:i(4074),Friction:i(40831),Gravity:i(26775),Immovable:i(9437),Mass:i(30621),OverlapCirc:i(72441),OverlapRect:i(47956),Pushable:i(62121),Size:i(29384),Velocity:i(15098)}},37747:t=>{t.exports={DYNAMIC_BODY:0,STATIC_BODY:1,GROUP:2,TILEMAPLAYER:3,FACING_NONE:10,FACING_UP:11,FACING_DOWN:12,FACING_LEFT:13,FACING_RIGHT:14}},20009:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports=\"collide\"},36768:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports=\"overlap\"},60473:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports=\"pause\"},89954:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports=\"resume\"},61804:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports=\"tilecollide\"},7161:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports=\"tileoverlap\"},34689:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports=\"worldbounds\"},16006:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports=\"worldstep\"},63012:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports={COLLIDE:i(20009),OVERLAP:i(36768),PAUSE:i(60473),RESUME:i(89954),TILE_COLLIDE:i(61804),TILE_OVERLAP:i(7161),WORLD_BOUNDS:i(34689),WORLD_STEP:i(16006)}},27064:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(37747),r=i(79291),s={ArcadePhysics:i(86689),Body:i(37742),Collider:i(79342),Components:i(92209),Events:i(63012),Factory:i(66022),GetCollidesWith:i(79599),GetOverlapX:i(64897),GetOverlapY:i(45170),SeparateX:i(14087),SeparateY:i(89936),Group:i(60758),Image:i(71289),Sprite:i(13759),StaticBody:i(72624),StaticGroup:i(71464),Tilemap:i(55173),World:i(82248)};s=r(!1,s,n),t.exports=s},96602:t=>{t.exports=function(t,e){return t.collisionCallback?!t.collisionCallback.call(t.collisionCallbackContext,e,t):!t.layer.callbacks[t.index]||!t.layer.callbacks[t.index].callback.call(t.layer.callbacks[t.index].callbackContext,e,t)}},36294:t=>{t.exports=function(t,e){e<0?(t.blocked.none=!1,t.blocked.left=!0):e>0&&(t.blocked.none=!1,t.blocked.right=!0),t.position.x-=e,t.updateCenter(),0===t.bounce.x?t.velocity.x=0:t.velocity.x=-t.velocity.x*t.bounce.x}},67013:t=>{t.exports=function(t,e){e<0?(t.blocked.none=!1,t.blocked.up=!0):e>0&&(t.blocked.none=!1,t.blocked.down=!0),t.position.y-=e,t.updateCenter(),0===t.bounce.y?t.velocity.y=0:t.velocity.y=-t.velocity.y*t.bounce.y}},40012:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(21329),r=i(53442),s=i(2483);t.exports=function(t,e,i,a,o,l,h){var u=a.left,c=a.top,d=a.right,f=a.bottom,p=i.faceLeft||i.faceRight,m=i.faceTop||i.faceBottom;if(h||(p=!0,m=!0),!p&&!m)return!1;var g=0,v=0,y=0,b=1;if(e.deltaAbsX()>e.deltaAbsY()?y=-1:e.deltaAbsX(){\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(36294);t.exports=function(t,e,i,r,s,a){var o=0,l=e.faceLeft,h=e.faceRight,u=e.collideLeft,c=e.collideRight;return a||(l=!0,h=!0,u=!0,c=!0),t.deltaX()<0&&c&&t.checkCollision.left?h&&t.x0&&u&&t.checkCollision.right&&l&&t.right>i&&(o=t.right-i)>s&&(o=0),0!==o&&(t.customSeparateX?t.overlapX=o:n(t,o)),o}},53442:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(67013);t.exports=function(t,e,i,r,s,a){var o=0,l=e.faceTop,h=e.faceBottom,u=e.collideUp,c=e.collideDown;return a||(l=!0,h=!0,u=!0,c=!0),t.deltaY()<0&&c&&t.checkCollision.up?h&&t.y0&&u&&t.checkCollision.down&&l&&t.bottom>i&&(o=t.bottom-i)>s&&(o=0),0!==o&&(t.customSeparateY?t.overlapY=o:n(t,o)),o}},2483:t=>{t.exports=function(t,e){return!(e.right<=t.left||e.bottom<=t.top||e.position.x>=t.right||e.position.y>=t.bottom)}},55173:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n={ProcessTileCallbacks:i(96602),ProcessTileSeparationX:i(36294),ProcessTileSeparationY:i(67013),SeparateTile:i(40012),TileCheckX:i(21329),TileCheckY:i(53442),TileIntersectsBody:i(2483)};t.exports=n},44563:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports={Arcade:i(27064),Matter:i(3875)}},68174:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(83419),r=i(26099),s=new n({initialize:function(){this.boundsCenter=new r,this.centerDiff=new r},parseBody:function(t){if(!(t=t.hasOwnProperty(\"body\")?t.body:t).hasOwnProperty(\"bounds\")||!t.hasOwnProperty(\"centerOfMass\"))return!1;var e=this.boundsCenter,i=this.centerDiff,n=t.bounds.max.x-t.bounds.min.x,r=t.bounds.max.y-t.bounds.min.y,s=n*t.centerOfMass.x,a=r*t.centerOfMass.y;return e.set(n/2,r/2),i.set(s-e.x,a-e.y),!0},getTopLeft:function(t,e,i){if(void 0===e&&(e=0),void 0===i&&(i=0),this.parseBody(t)){var n=this.boundsCenter,s=this.centerDiff;return new r(e+n.x+s.x,i+n.y+s.y)}return!1},getTopCenter:function(t,e,i){if(void 0===e&&(e=0),void 0===i&&(i=0),this.parseBody(t)){var n=this.boundsCenter,s=this.centerDiff;return new r(e+s.x,i+n.y+s.y)}return!1},getTopRight:function(t,e,i){if(void 0===e&&(e=0),void 0===i&&(i=0),this.parseBody(t)){var n=this.boundsCenter,s=this.centerDiff;return new r(e-(n.x-s.x),i+n.y+s.y)}return!1},getLeftCenter:function(t,e,i){if(void 0===e&&(e=0),void 0===i&&(i=0),this.parseBody(t)){var n=this.boundsCenter,s=this.centerDiff;return new r(e+n.x+s.x,i+s.y)}return!1},getCenter:function(t,e,i){if(void 0===e&&(e=0),void 0===i&&(i=0),this.parseBody(t)){var n=this.centerDiff;return new r(e+n.x,i+n.y)}return!1},getRightCenter:function(t,e,i){if(void 0===e&&(e=0),void 0===i&&(i=0),this.parseBody(t)){var n=this.boundsCenter,s=this.centerDiff;return new r(e-(n.x-s.x),i+s.y)}return!1},getBottomLeft:function(t,e,i){if(void 0===e&&(e=0),void 0===i&&(i=0),this.parseBody(t)){var n=this.boundsCenter,s=this.centerDiff;return new r(e+n.x+s.x,i-(n.y-s.y))}return!1},getBottomCenter:function(t,e,i){if(void 0===e&&(e=0),void 0===i&&(i=0),this.parseBody(t)){var n=this.boundsCenter,s=this.centerDiff;return new r(e+s.x,i-(n.y-s.y))}return!1},getBottomRight:function(t,e,i){if(void 0===e&&(e=0),void 0===i&&(i=0),this.parseBody(t)){var n=this.boundsCenter,s=this.centerDiff;return new r(e-(n.x-s.x),i-(n.y-s.y))}return!1}});t.exports=s},19933:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(6790);n.Body=i(22562),n.Composite=i(69351),n.World=i(4372),n.Collision=i(52284),n.Detector=i(81388),n.Pairs=i(99561),n.Pair=i(4506),n.Query=i(73296),n.Resolver=i(66272),n.Constraint=i(48140),n.Common=i(53402),n.Engine=i(48413),n.Events=i(35810),n.Sleeping=i(53614),n.Plugin=i(73832),n.Bodies=i(66280),n.Composites=i(74116),n.Axes=i(66615),n.Bounds=i(15647),n.Svg=i(74058),n.Vector=i(31725),n.Vertices=i(41598),n.World.add=n.Composite.add,n.World.remove=n.Composite.remove,n.World.addComposite=n.Composite.addComposite,n.World.addBody=n.Composite.addBody,n.World.addConstraint=n.Composite.addConstraint,n.World.clear=n.Composite.clear,t.exports=n},28137:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(66280),r=i(83419),s=i(74116),a=i(48140),o=i(74058),l=i(75803),h=i(23181),u=i(34803),c=i(73834),d=i(19496),f=i(85791),p=i(98713),m=i(41598),g=new r({initialize:function(t){this.world=t,this.scene=t.scene,this.sys=t.scene.sys},rectangle:function(t,e,i,r,s){var a=n.rectangle(t,e,i,r,s);return this.world.add(a),a},trapezoid:function(t,e,i,r,s,a){var o=n.trapezoid(t,e,i,r,s,a);return this.world.add(o),o},circle:function(t,e,i,r,s){var a=n.circle(t,e,i,r,s);return this.world.add(a),a},polygon:function(t,e,i,r,s){var a=n.polygon(t,e,i,r,s);return this.world.add(a),a},fromVertices:function(t,e,i,r,s,a,o){\"string\"==typeof i&&(i=m.fromPath(i));var l=n.fromVertices(t,e,i,r,s,a,o);return this.world.add(l),l},fromPhysicsEditor:function(t,e,i,n,r){void 0===r&&(r=!0);var s=d.parseBody(t,e,i,n);return r&&!this.world.has(s)&&this.world.add(s),s},fromSVG:function(t,e,i,r,s,a){void 0===r&&(r=1),void 0===s&&(s={}),void 0===a&&(a=!0);for(var l=i.getElementsByTagName(\"path\"),h=[],u=0;u{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(31884),r=i(95540),s=i(26099);t.exports=function(t,e,i,a){void 0===i&&(i={}),void 0===a&&(a=!0);var o=e.x,l=e.y;if(e.body={temp:!0,position:{x:o,y:l}},[n.Bounce,n.Collision,n.Force,n.Friction,n.Gravity,n.Mass,n.Sensor,n.SetBody,n.Sleep,n.Static,n.Transform,n.Velocity].forEach((function(t){for(var i in t)(n=t[i]).get&&\"function\"==typeof n.get||n.set&&\"function\"==typeof n.set?Object.defineProperty(e,i,{get:t[i].get,set:t[i].set}):Object.defineProperty(e,i,{value:t[i]});var n})),e.world=t,e._tempVec2=new s(o,l),i.hasOwnProperty(\"type\")&&\"body\"===i.type)e.setExistingBody(i,a);else{var h=r(i,\"shape\",null);h||(h=\"rectangle\"),i.addToWorld=a,e.setBody(h,i)}return e}},23181:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(83419),r=i(31884),s=i(95643),a=i(95540),o=i(88571),l=i(72699),h=i(26099),u=new n({Extends:o,Mixins:[r.Bounce,r.Collision,r.Force,r.Friction,r.Gravity,r.Mass,r.Sensor,r.SetBody,r.Sleep,r.Static,r.Transform,r.Velocity,l],initialize:function(t,e,i,n,r,o){s.call(this,t.scene,\"Image\"),this._crop=this.resetCropObject(),this.setTexture(n,r),this.setSizeToFrame(),this.setOrigin(),this.world=t,this._tempVec2=new h(e,i);var l=a(o,\"shape\",null);l?this.setBody(l,o):this.setRectangle(this.width,this.height,o),this.setPosition(e,i),this.initPipeline(),this.initPostPipeline(!0)}});t.exports=u},42045:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(60461),r=i(66615),s=i(66280),a=i(22562),o=i(68174),l=i(15647),h=i(83419),u=i(52284),c=i(53402),d=i(69351),f=i(74116),p=i(48140),m=i(81388),g=i(20339),v=i(28137),y=i(95540),b=i(35154),x=i(46975),w=i(4506),T=i(99561),S=i(37277),E=i(73296),C=i(66272),A=i(44594),_=i(74058),k=i(31725),P=i(41598),M=i(68243);c.setDecomp(i(55973));var D=new h({initialize:function(t){this.scene=t,this.systems=t.sys,this.config=this.getConfig(),this.world,this.add,this.bodyBounds,this.body=a,this.composite=d,this.collision=u,this.detector=m,this.pair=w,this.pairs=T,this.query=E,this.resolver=C,this.constraint=p,this.bodies=s,this.composites=f,this.axes=r,this.bounds=l,this.svg=_,this.vector=k,this.vertices=P,this.verts=P,this._tempVec2=k.create(),C._restingThresh=b(this.config,\"restingThresh\",4),C._restingThreshTangent=b(this.config,\"restingThreshTangent\",6),C._positionDampen=b(this.config,\"positionDampen\",.9),C._positionWarming=b(this.config,\"positionWarming\",.8),C._frictionNormalMultiplier=b(this.config,\"frictionNormalMultiplier\",5),t.sys.events.once(A.BOOT,this.boot,this),t.sys.events.on(A.START,this.start,this)},boot:function(){this.world=new M(this.scene,this.config),this.add=new v(this.world),this.bodyBounds=new o,this.systems.events.once(A.DESTROY,this.destroy,this)},start:function(){this.world||(this.world=new M(this.scene,this.config),this.add=new v(this.world));var t=this.systems.events;t.on(A.UPDATE,this.world.update,this.world),t.on(A.POST_UPDATE,this.world.postUpdate,this.world),t.once(A.SHUTDOWN,this.shutdown,this)},getConfig:function(){var t=this.systems.game.config.physics,e=this.systems.settings.physics;return x(y(e,\"matter\",{}),y(t,\"matter\",{}))},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(t,e){this.world.step(t,e)},containsPoint:function(t,e,i){t=this.getMatterBodies(t);var n=k.create(e,i);return E.point(t,n).length>0},intersectPoint:function(t,e,i){i=this.getMatterBodies(i);var n=k.create(t,e),r=[];return E.point(i,n).forEach((function(t){-1===r.indexOf(t)&&r.push(t)})),r},intersectRect:function(t,e,i,n,r,s){void 0===r&&(r=!1),s=this.getMatterBodies(s);var a={min:{x:t,y:e},max:{x:t+i,y:e+n}},o=[];return E.region(s,a,r).forEach((function(t){-1===o.indexOf(t)&&o.push(t)})),o},intersectRay:function(t,e,i,n,r,s){void 0===r&&(r=1),s=this.getMatterBodies(s);for(var a=[],o=E.ray(s,k.create(t,e),k.create(i,n),r),l=0;l{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(9674),r=i(83419),s=i(31884),a=i(95643),o=i(95540),l=i(72699),h=i(68287),u=i(26099),c=new r({Extends:h,Mixins:[s.Bounce,s.Collision,s.Force,s.Friction,s.Gravity,s.Mass,s.Sensor,s.SetBody,s.Sleep,s.Static,s.Transform,s.Velocity,l],initialize:function(t,e,i,r,s,l){a.call(this,t.scene,\"Sprite\"),this._crop=this.resetCropObject(),this.anims=new n(this),this.setTexture(r,s),this.setSizeToFrame(),this.setOrigin(),this.world=t,this._tempVec2=new u(e,i);var h=o(l,\"shape\",null);h?this.setBody(h,l):this.setRectangle(this.width,this.height,l),this.setPosition(e,i),this.initPipeline(),this.initPostPipeline(!0)}});t.exports=c},73834:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(66280),r=i(22562),s=i(83419),a=i(31884),o=i(62644),l=i(50792),h=i(95540),u=i(97022),c=i(41598),d=new s({Extends:l,Mixins:[a.Bounce,a.Collision,a.Friction,a.Gravity,a.Mass,a.Sensor,a.Sleep,a.Static],initialize:function(t,e,i){l.call(this),this.tile=e,this.world=t,e.physics.matterBody&&e.physics.matterBody.destroy(),e.physics.matterBody=this;var n=h(i,\"body\",null),s=h(i,\"addToWorld\",!0);if(n)this.setBody(n,s);else{var a=e.getCollisionGroup();h(a,\"objects\",[]).length>0?this.setFromTileCollision(i):this.setFromTileRectangle(i)}if(e.flipX||e.flipY){var o={x:e.getCenterX(),y:e.getCenterY()},u=e.flipX?-1:1,c=e.flipY?-1:1;r.scale(n,u,c,o)}},setFromTileRectangle:function(t){void 0===t&&(t={}),u(t,\"isStatic\")||(t.isStatic=!0),u(t,\"addToWorld\")||(t.addToWorld=!0);var e=this.tile.getBounds(),i=e.x+e.width/2,r=e.y+e.height/2,s=n.rectangle(i,r,e.width,e.height,t);return this.setBody(s,t.addToWorld),this},setFromTileCollision:function(t){void 0===t&&(t={}),u(t,\"isStatic\")||(t.isStatic=!0),u(t,\"addToWorld\")||(t.addToWorld=!0);for(var e=this.tile.tilemapLayer.scaleX,i=this.tile.tilemapLayer.scaleY,s=this.tile.getLeft(),a=this.tile.getTop(),l=this.tile.getCollisionGroup(),d=h(l,\"objects\",[]),f=[],p=0;p1){var E=o(t);E.parts=f,this.setBody(r.create(E),E.addToWorld)}return this},setBody:function(t,e){return void 0===e&&(e=!0),this.body&&this.removeBody(),this.body=t,this.body.gameObject=this,e&&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()}});t.exports=d},19496:(t,e,i)=>{\n/**\n * @author Joachim Grill \n * @author Richard Davey \n * @copyright 2018 CodeAndWeb GmbH\n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(66280),r=i(22562),s=i(53402),a=i(95540),o=i(41598),l={parseBody:function(t,e,i,n){void 0===n&&(n={});for(var o=a(i,\"fixtures\",[]),l=[],h=0;h{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(66280),r=i(22562),s={parseBody:function(t,e,i,s){var a;void 0===s&&(s={});var o=i.vertices;if(1===o.length)s.vertices=o[0],a=r.create(s),n.flagCoincidentParts(a.parts);else{for(var l=[],h=0;h{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(15647),r=i(83419),s=i(69351),a=i(48140),o=i(81388),l=i(1121),h=i(8214),u=i(46975),c=i(53614),d=i(26099),f=i(41598),p=new r({initialize:function(t,e,i){void 0===i&&(i={}),this.scene=t,this.world=e,this.camera=null,this.pointer=null,this.active=!0,this.position=new d,this.body=null,this.part=null,this.constraint=a.create(u(i,{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.world.on(l.BEFORE_UPDATE,this.update,this),t.sys.input.on(h.POINTER_DOWN,this.onDown,this),t.sys.input.on(h.POINTER_UP,this.onUp,this)},onDown:function(t){this.pointer||(this.pointer=t,this.camera=t.camera)},onUp:function(t){t===this.pointer&&(this.pointer=null)},getBody:function(t){var e=this.position,i=this.constraint;this.camera.getWorldPoint(t.x,t.y,e);for(var r=s.allBodies(this.world.localWorld),a=0;a1?1:0;r{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(66280),r=i(22562),s=i(83419),a=i(53402),o=i(69351),l=i(48413),h=i(50792),u=i(1121),c=i(95540),d=i(35154),f=i(22562),p=i(35810),m=i(73834),g=i(4372),v=i(13037),y=i(31725),b=new s({Extends:h,initialize:function(t,e){h.call(this),this.scene=t,this.engine=l.create(e),this.localWorld=this.engine.world;var i=d(e,\"gravity\",null);i?this.setGravity(i.x,i.y,i.scale):!1===i&&this.setGravity(0,0,0),this.walls={left:null,right:null,top:null,bottom:null},this.enabled=d(e,\"enabled\",!0),this.getDelta=d(e,\"getDelta\",this.update60Hz);var n=c(e,\"runner\",{});c(n,\"fps\",!1)&&(n.delta=1e3/c(n,\"fps\",60)),this.runner=v.create(n),this.autoUpdate=d(e,\"autoUpdate\",!0);var r=d(e,\"debug\",!1);if(this.drawDebug=\"object\"==typeof r||r,this.debugGraphic,this.debugConfig={showAxes:c(r,\"showAxes\",!1),showAngleIndicator:c(r,\"showAngleIndicator\",!1),angleColor:c(r,\"angleColor\",15208787),showBroadphase:c(r,\"showBroadphase\",!1),broadphaseColor:c(r,\"broadphaseColor\",16757760),showBounds:c(r,\"showBounds\",!1),boundsColor:c(r,\"boundsColor\",16777215),showVelocity:c(r,\"showVelocity\",!1),velocityColor:c(r,\"velocityColor\",44783),showCollisions:c(r,\"showCollisions\",!1),collisionColor:c(r,\"collisionColor\",16094476),showSeparations:c(r,\"showSeparations\",!1),separationColor:c(r,\"separationColor\",16753920),showBody:c(r,\"showBody\",!0),showStaticBody:c(r,\"showStaticBody\",!0),showInternalEdges:c(r,\"showInternalEdges\",!1),renderFill:c(r,\"renderFill\",!1),renderLine:c(r,\"renderLine\",!0),fillColor:c(r,\"fillColor\",1075465),fillOpacity:c(r,\"fillOpacity\",1),lineColor:c(r,\"lineColor\",2678297),lineOpacity:c(r,\"lineOpacity\",1),lineThickness:c(r,\"lineThickness\",1),staticFillColor:c(r,\"staticFillColor\",857979),staticLineColor:c(r,\"staticLineColor\",1255396),showSleeping:c(r,\"showSleeping\",!1),staticBodySleepOpacity:c(r,\"staticBodySleepOpacity\",.7),sleepFillColor:c(r,\"sleepFillColor\",4605510),sleepLineColor:c(r,\"sleepLineColor\",10066585),showSensors:c(r,\"showSensors\",!0),sensorFillColor:c(r,\"sensorFillColor\",857979),sensorLineColor:c(r,\"sensorLineColor\",1255396),showPositions:c(r,\"showPositions\",!0),positionSize:c(r,\"positionSize\",4),positionColor:c(r,\"positionColor\",14697178),showJoint:c(r,\"showJoint\",!0),jointColor:c(r,\"jointColor\",14737474),jointLineOpacity:c(r,\"jointLineOpacity\",1),jointLineThickness:c(r,\"jointLineThickness\",2),pinSize:c(r,\"pinSize\",4),pinColor:c(r,\"pinColor\",4382944),springColor:c(r,\"springColor\",14697184),anchorColor:c(r,\"anchorColor\",15724527),anchorSize:c(r,\"anchorSize\",4),showConvexHulls:c(r,\"showConvexHulls\",!1),hullColor:c(r,\"hullColor\",14091216)},this.drawDebug&&this.createDebugGraphic(),this.setEventsProxy(),c(e,\"setBounds\",!1)){var s=e.setBounds;if(\"boolean\"==typeof s)this.setBounds();else{var a=c(s,\"x\",0),o=c(s,\"y\",0),u=c(s,\"width\",t.sys.scale.width),f=c(s,\"height\",t.sys.scale.height),p=c(s,\"thickness\",64),m=c(s,\"left\",!0),g=c(s,\"right\",!0),y=c(s,\"top\",!0),b=c(s,\"bottom\",!0);this.setBounds(a,o,u,f,p,m,g,y,b)}}},setCompositeRenderStyle:function(t){var e,i,n,r=t.bodies,s=t.constraints,a=t.composites;for(e=0;e0&&r.map((function(t){i=t.bodyA,n=t.bodyB,i.gameObject&&i.gameObject.emit(\"collide\",i,n,t),n.gameObject&&n.gameObject.emit(\"collide\",n,i,t),p.trigger(i,\"onCollide\",{pair:t}),p.trigger(n,\"onCollide\",{pair:t}),i.onCollideCallback&&i.onCollideCallback(t),n.onCollideCallback&&n.onCollideCallback(t),i.onCollideWith[n.id]&&i.onCollideWith[n.id](n,t),n.onCollideWith[i.id]&&n.onCollideWith[i.id](i,t)})),t.emit(u.COLLISION_START,e,i,n)})),p.on(e,\"collisionActive\",(function(e){var i,n,r=e.pairs;r.length>0&&r.map((function(t){i=t.bodyA,n=t.bodyB,i.gameObject&&i.gameObject.emit(\"collideActive\",i,n,t),n.gameObject&&n.gameObject.emit(\"collideActive\",n,i,t),p.trigger(i,\"onCollideActive\",{pair:t}),p.trigger(n,\"onCollideActive\",{pair:t}),i.onCollideActiveCallback&&i.onCollideActiveCallback(t),n.onCollideActiveCallback&&n.onCollideActiveCallback(t)})),t.emit(u.COLLISION_ACTIVE,e,i,n)})),p.on(e,\"collisionEnd\",(function(e){var i,n,r=e.pairs;r.length>0&&r.map((function(t){i=t.bodyA,n=t.bodyB,i.gameObject&&i.gameObject.emit(\"collideEnd\",i,n,t),n.gameObject&&n.gameObject.emit(\"collideEnd\",n,i,t),p.trigger(i,\"onCollideEnd\",{pair:t}),p.trigger(n,\"onCollideEnd\",{pair:t}),i.onCollideEndCallback&&i.onCollideEndCallback(t),n.onCollideEndCallback&&n.onCollideEndCallback(t)})),t.emit(u.COLLISION_END,e,i,n)}))},setBounds:function(t,e,i,n,r,s,a,o,l){return void 0===t&&(t=0),void 0===e&&(e=0),void 0===i&&(i=this.scene.sys.scale.width),void 0===n&&(n=this.scene.sys.scale.height),void 0===r&&(r=64),void 0===s&&(s=!0),void 0===a&&(a=!0),void 0===o&&(o=!0),void 0===l&&(l=!0),this.updateWall(s,\"left\",t-r,e-r,r,n+2*r),this.updateWall(a,\"right\",t+i,e-r,r,n+2*r),this.updateWall(o,\"top\",t,e-r,i,r),this.updateWall(l,\"bottom\",t,e+n,i,r),this},updateWall:function(t,e,i,n,r,s){var a=this.walls[e];t?(a&&g.remove(this.localWorld,a),i+=r/2,n+=s/2,this.walls[e]=this.create(i,n,r,s,{isStatic:!0,friction:0,frictionStatic:0})):(a&&g.remove(this.localWorld,a),this.walls[e]=null)},createDebugGraphic:function(){var t=this.scene.sys.add.graphics({x:0,y:0});return t.setDepth(Number.MAX_VALUE),this.debugGraphic=t,this.drawDebug=!0,t},disableGravity:function(){return this.localWorld.gravity.x=0,this.localWorld.gravity.y=0,this.localWorld.gravity.scale=0,this},setGravity:function(t,e,i){return void 0===t&&(t=0),void 0===e&&(e=1),void 0===i&&(i=.001),this.localWorld.gravity.x=t,this.localWorld.gravity.y=e,this.localWorld.gravity.scale=i,this},create:function(t,e,i,r,s){var a=n.rectangle(t,e,i,r,s);return g.add(this.localWorld,a),a},add:function(t){return g.add(this.localWorld,t),this},remove:function(t,e){Array.isArray(t)||(t=[t]);for(var i=0;iMath.max(v._maxFrameDelta,i.maxFrameTime))&&(o=i.frameDelta||v._frameDeltaFallback),i.frameDeltaSmoothing){i.frameDeltaHistory.push(o),i.frameDeltaHistory=i.frameDeltaHistory.slice(-i.frameDeltaHistorySize);var h=i.frameDeltaHistory.slice(0).sort(),u=i.frameDeltaHistory.slice(h.length*v._smoothingLowerBound,h.length*v._smoothingUpperBound);o=v._mean(u)||o}i.frameDeltaSnapping&&(o=1e3/Math.round(1e3/o)),i.frameDelta=o,i.timeLastTick=t,i.timeBuffer+=i.frameDelta,i.timeBuffer=a.clamp(i.timeBuffer,0,i.frameDelta+r*v._timeBufferMargin),i.lastUpdatesDeferred=0;for(var c=i.maxUpdates||Math.ceil(i.maxFrameTime/r),d=a.now();r>0&&i.timeBuffer>=r*v._timeBufferMargin;){l.update(e,r),i.timeBuffer-=r,s+=1;var f=a.now()-n,p=a.now()-d,m=f+v._elapsedNextEstimate*p/s;if(s>=c||m>i.maxFrameTime){i.lastUpdatesDeferred=Math.round(Math.max(0,i.timeBuffer/r-v._timeBufferMargin));break}}}},step:function(t){l.update(this.engine,t)},update60Hz:function(){return 1e3/60},update30Hz:function(){return 1e3/30},has:function(t){var e=t.hasOwnProperty(\"body\")?t.body:t;return null!==o.get(this.localWorld,e.id,e.type)},getAllBodies:function(){return o.allBodies(this.localWorld)},getAllConstraints:function(){return o.allConstraints(this.localWorld)},getAllComposites:function(){return o.allComposites(this.localWorld)},postUpdate:function(){if(this.drawDebug){var t=this.debugConfig,e=this.engine,i=this.debugGraphic,n=o.allBodies(this.localWorld);this.debugGraphic.clear(),t.showBroadphase&&e.broadphase.controller&&this.renderGrid(e.broadphase,i,t.broadphaseColor,.5),t.showBounds&&this.renderBodyBounds(n,i,t.boundsColor,.5),(t.showBody||t.showStaticBody)&&this.renderBodies(n),t.showJoint&&this.renderJoints(),(t.showAxes||t.showAngleIndicator)&&this.renderBodyAxes(n,i,t.showAxes,t.angleColor,.5),t.showVelocity&&this.renderBodyVelocity(n,i,t.velocityColor,1,2),t.showSeparations&&this.renderSeparations(e.pairs.list,i,t.separationColor),t.showCollisions&&this.renderCollisions(e.pairs.list,i,t.collisionColor)}},renderGrid:function(t,e,i,n){e.lineStyle(1,i,n);for(var r=a.keys(t.buckets),s=0;s0){var h=l[0].vertex.x,u=l[0].vertex.y;2===r.contactCount&&(h=(l[0].vertex.x+l[1].vertex.x)/2,u=(l[0].vertex.y+l[1].vertex.y)/2),o.bodyB===o.supports[0].body||o.bodyA.isStatic?e.lineBetween(h-8*o.normal.x,u-8*o.normal.y,h,u):e.lineBetween(h+8*o.normal.x,u+8*o.normal.y,h,u)}}return this},renderBodyBounds:function(t,e,i,n){e.lineStyle(1,i,n);for(var r=0;r1?1:0;l1?1:0;o1?1:0;o1&&this.renderConvexHull(m,e,f,y)}}},renderBody:function(t,e,i,n,r,s,a,o){void 0===n&&(n=null),void 0===r&&(r=null),void 0===s&&(s=1),void 0===a&&(a=null),void 0===o&&(o=null);for(var l=this.debugConfig,h=l.sensorFillColor,u=l.sensorLineColor,c=t.parts,d=c.length,f=d>1?1:0;f1){var r=t.vertices;e.lineStyle(n,i),e.beginPath(),e.moveTo(r[0].x,r[0].y);for(var s=1;s0&&(e.fillStyle(o),e.fillCircle(u.x,u.y,l),e.fillCircle(c.x,c.y,l)),this},resetCollisionIDs:function(){return r._nextCollidingGroupId=1,r._nextNonCollidingGroupId=-1,r._nextCategory=1,this},shutdown:function(){p.off(this.engine),this.removeAllListeners(),g.clear(this.localWorld,!1),l.clear(this.engine),this.drawDebug&&this.debugGraphic.destroy()},destroy:function(){this.shutdown()}});t.exports=b},70410:t=>{t.exports={setBounce:function(t){return this.body.restitution=t,this}}},66968:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar e={setCollisionCategory:function(t){return this.body.collisionFilter.category=t,this},setCollisionGroup:function(t){return this.body.collisionFilter.group=t,this},setCollidesWith:function(t){var e=0;if(Array.isArray(t))for(var i=0;i{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(22562),r={applyForce:function(t){return this._tempVec2.set(this.body.position.x,this.body.position.y),n.applyForce(this.body,this._tempVec2,t),this},applyForceFrom:function(t,e){return n.applyForce(this.body,t,e),this},thrust:function(t){var e=this.body.angle;return this._tempVec2.set(t*Math.cos(e),t*Math.sin(e)),n.applyForce(this.body,{x:this.body.position.x,y:this.body.position.y},this._tempVec2),this},thrustLeft:function(t){var e=this.body.angle-Math.PI/2;return this._tempVec2.set(t*Math.cos(e),t*Math.sin(e)),n.applyForce(this.body,{x:this.body.position.x,y:this.body.position.y},this._tempVec2),this},thrustRight:function(t){var e=this.body.angle+Math.PI/2;return this._tempVec2.set(t*Math.cos(e),t*Math.sin(e)),n.applyForce(this.body,{x:this.body.position.x,y:this.body.position.y},this._tempVec2),this},thrustBack:function(t){var e=this.body.angle-Math.PI;return this._tempVec2.set(t*Math.cos(e),t*Math.sin(e)),n.applyForce(this.body,{x:this.body.position.x,y:this.body.position.y},this._tempVec2),this}};t.exports=r},5436:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar e={setFriction:function(t,e,i){return this.body.friction=t,void 0!==e&&(this.body.frictionAir=e),void 0!==i&&(this.body.frictionStatic=i),this},setFrictionAir:function(t){return this.body.frictionAir=t,this},setFrictionStatic:function(t){return this.body.frictionStatic=t,this}};t.exports=e},39858:t=>{t.exports={setIgnoreGravity:function(t){return this.body.ignoreGravity=t,this}}},37302:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(22562),r=i(26099),s={setMass:function(t){return n.setMass(this.body,t),this},setDensity:function(t){return n.setDensity(this.body,t),this},centerOfMass:{get:function(){return new r(this.body.centerOfMass.x,this.body.centerOfMass.y)}}};t.exports=s},39132:t=>{t.exports={setSensor:function(t){return this.body.isSensor=t,this},isSensor:function(){return this.body.isSensor}}},57772:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(66280),r=i(22562),s=i(43855),a=i(95540),o=i(19496),l=i(85791),h=i(41598),u={setRectangle:function(t,e,i){return this.setBody({type:\"rectangle\",width:t,height:e},i)},setCircle:function(t,e){return this.setBody({type:\"circle\",radius:t},e)},setPolygon:function(t,e,i){return this.setBody({type:\"polygon\",sides:e,radius:t},i)},setTrapezoid:function(t,e,i,n){return this.setBody({type:\"trapezoid\",width:t,height:e,slope:i},n)},setExistingBody:function(t,e){void 0===e&&(e=!0),this.body&&this.world.remove(this.body,!0),this.body=t;for(var i=0;i{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(1121),r=i(53614),s=i(35810),a={setToSleep:function(){return r.set(this.body,!0),this},setAwake:function(){return r.set(this.body,!1),this},setSleepThreshold:function(t){return void 0===t&&(t=60),this.body.sleepThreshold=t,this},setSleepEvents:function(t,e){return this.setSleepStartEvent(t),this.setSleepEndEvent(e),this},setSleepStartEvent:function(t){if(t){var e=this.world;s.on(this.body,\"sleepStart\",(function(t){e.emit(n.SLEEP_START,t,this)}))}else s.off(this.body,\"sleepStart\");return this},setSleepEndEvent:function(t){if(t){var e=this.world;s.on(this.body,\"sleepEnd\",(function(t){e.emit(n.SLEEP_END,t,this)}))}else s.off(this.body,\"sleepEnd\");return this}};t.exports=a},90556:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(22562),r={setStatic:function(t){return n.setStatic(this.body,t),this},isStatic:function(){return this.body.isStatic}};t.exports=r},85436:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(22562),r=i(36383),s=i(86554),a=i(30954),o={x:{get:function(){return this.body.position.x},set:function(t){this._tempVec2.set(t,this.y),n.setPosition(this.body,this._tempVec2)}},y:{get:function(){return this.body.position.y},set:function(t){this._tempVec2.set(this.x,t),n.setPosition(this.body,this._tempVec2)}},scale:{get:function(){return(this._scaleX+this._scaleY)/2},set:function(t){this.setScale(t,t)}},scaleX:{get:function(){return this._scaleX},set:function(t){var e=1/this._scaleX,i=1/this._scaleY;this._scaleX=t,0===this._scaleX?this.renderFlags&=-5:this.renderFlags|=4,n.scale(this.body,e,i),n.scale(this.body,t,this._scaleY)}},scaleY:{get:function(){return this._scaleY},set:function(t){var e=1/this._scaleX,i=1/this._scaleY;this._scaleY=t,0===this._scaleY?this.renderFlags&=-5:this.renderFlags|=4,n.scale(this.body,e,i),n.scale(this.body,this._scaleX,t)}},angle:{get:function(){return a(this.body.angle*r.RAD_TO_DEG)},set:function(t){this.rotation=a(t)*r.DEG_TO_RAD}},rotation:{get:function(){return this.body.angle},set:function(t){this._rotation=s(t),n.setAngle(this.body,this._rotation)}},setPosition:function(t,e){return void 0===t&&(t=0),void 0===e&&(e=t),this._tempVec2.set(t,e),n.setPosition(this.body,this._tempVec2),this},setRotation:function(t){return void 0===t&&(t=0),this._rotation=s(t),n.setAngle(this.body,t),this},setFixedRotation:function(){return n.setInertia(this.body,1/0),this},setAngle:function(t){return void 0===t&&(t=0),this.angle=t,n.setAngle(this.body,this.rotation),this},setScale:function(t,e,i){void 0===t&&(t=1),void 0===e&&(e=t);var r=1/this._scaleX,s=1/this._scaleY;return this._scaleX=t,this._scaleY=e,n.scale(this.body,r,s,i),n.scale(this.body,t,e,i),this}};t.exports=o},42081:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(22562),r={setVelocityX:function(t){return this._tempVec2.set(t,this.body.velocity.y),n.setVelocity(this.body,this._tempVec2),this},setVelocityY:function(t){return this._tempVec2.set(this.body.velocity.x,t),n.setVelocity(this.body,this._tempVec2),this},setVelocity:function(t,e){return this._tempVec2.set(t,e),n.setVelocity(this.body,this._tempVec2),this},getVelocity:function(){return n.getVelocity(this.body)},setAngularVelocity:function(t){return n.setAngularVelocity(this.body,t),this},getAngularVelocity:function(){return n.getAngularVelocity(this.body)},setAngularSpeed:function(t){return n.setAngularSpeed(this.body,t),this},getAngularSpeed:function(){return n.getAngularSpeed(this.body)}};t.exports=r},31884:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports={Bounce:i(70410),Collision:i(66968),Force:i(51607),Friction:i(5436),Gravity:i(39858),Mass:i(37302),Sensor:i(39132),SetBody:i(57772),Sleep:i(38083),Static:i(90556),Transform:i(85436),Velocity:i(42081)}},85608:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports=\"afteradd\"},1213:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports=\"afterremove\"},25968:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports=\"afterupdate\"},67205:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports=\"beforeadd\"},39438:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports=\"beforeremove\"},44823:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports=\"beforeupdate\"},92593:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports=\"collisionactive\"},60128:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports=\"collisionend\"},76861:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports=\"collisionstart\"},92362:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports=\"dragend\"},76408:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports=\"drag\"},93971:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports=\"dragstart\"},5656:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports=\"pause\"},47861:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports=\"resume\"},79099:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports=\"sleepend\"},35906:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports=\"sleepstart\"},1121:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports={AFTER_ADD:i(85608),AFTER_REMOVE:i(1213),AFTER_UPDATE:i(25968),BEFORE_ADD:i(67205),BEFORE_REMOVE:i(39438),BEFORE_UPDATE:i(44823),COLLISION_ACTIVE:i(92593),COLLISION_END:i(60128),COLLISION_START:i(76861),DRAG_END:i(92362),DRAG:i(76408),DRAG_START:i(93971),PAUSE:i(5656),RESUME:i(47861),SLEEP_END:i(79099),SLEEP_START:i(35906)}},3875:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports={BodyBounds:i(68174),Components:i(31884),Events:i(1121),Factory:i(28137),MatterGameObject:i(75803),Image:i(23181),Matter:i(19933),MatterPhysics:i(42045),PolyDecomp:i(55973),Sprite:i(34803),TileBody:i(73834),PhysicsEditorParser:i(19496),PhysicsJSONParser:i(85791),PointerConstraint:i(98713),World:i(68243)}},22562:(t,e,i)=>{var n={};t.exports=n;var r=i(41598),s=i(31725),a=i(53614),o=i(53402),l=i(15647),h=i(66615);!function(){n._timeCorrection=!0,n._inertiaScale=4,n._nextCollidingGroupId=1,n._nextNonCollidingGroupId=-1,n._nextCategory=1,n._baseDelta=1e3/60,n.create=function(e){var i={id:o.nextId(),type:\"body\",label:\"Body\",parts:[],plugin:{},attractors:e.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:1e3/60,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:{}};!e.hasOwnProperty(\"position\")&&e.hasOwnProperty(\"vertices\")?e.position=r.centre(e.vertices):e.hasOwnProperty(\"vertices\")||(i.vertices=r.fromPath(\"L 0 0 L 40 0 L 40 40 L 0 40\"));var n=o.extend(i,e);return t(n,e),n.setOnCollideWith=function(t,e){return e?this.onCollideWith[t.id]=e:delete this.onCollideWith[t.id],this},n},n.nextGroup=function(t){return t?n._nextNonCollidingGroupId--:n._nextCollidingGroupId++},n.nextCategory=function(){return n._nextCategory=n._nextCategory<<1,n._nextCategory};var t=function(t,e){if(e=e||{},n.set(t,{bounds:t.bounds||l.create(t.vertices),positionPrev:t.positionPrev||s.clone(t.position),anglePrev:t.anglePrev||t.angle,vertices:t.vertices,parts:t.parts||[t],isStatic:t.isStatic,isSleeping:t.isSleeping,parent:t.parent||t}),r.rotate(t.vertices,t.angle,t.position),h.rotate(t.axes,t.angle),l.update(t.bounds,t.vertices,t.velocity),n.set(t,{axes:e.axes||t.axes,area:e.area||t.area,mass:e.mass||t.mass,inertia:e.inertia||t.inertia}),1===t.parts.length){var i=t.bounds,a=t.centerOfMass,o=t.centerOffset,u=i.max.x-i.min.x,c=i.max.y-i.min.y;a.x=-(i.min.x-t.position.x)/u,a.y=-(i.min.y-t.position.y)/c,o.x=u*a.x,o.y=c*a.y}};n.set=function(t,e,i){var r;for(r in\"string\"==typeof e&&(r=e,(e={})[r]=i),e)if(Object.prototype.hasOwnProperty.call(e,r))switch(i=e[r],r){case\"isStatic\":n.setStatic(t,i);break;case\"isSleeping\":a.set(t,i);break;case\"mass\":n.setMass(t,i);break;case\"density\":n.setDensity(t,i);break;case\"inertia\":n.setInertia(t,i);break;case\"vertices\":n.setVertices(t,i);break;case\"position\":n.setPosition(t,i);break;case\"angle\":n.setAngle(t,i);break;case\"velocity\":n.setVelocity(t,i);break;case\"angularVelocity\":n.setAngularVelocity(t,i);break;case\"speed\":n.setSpeed(t,i);break;case\"angularSpeed\":n.setAngularSpeed(t,i);break;case\"parts\":n.setParts(t,i);break;case\"centre\":n.setCentre(t,i);break;default:t[r]=i}},n.setStatic=function(t,e){for(var i=0;i0&&s.rotateAbout(o.position,n,t.position,o.position)}},n.setVelocity=function(t,e){var i=t.deltaTime/n._baseDelta;t.positionPrev.x=t.position.x-e.x*i,t.positionPrev.y=t.position.y-e.y*i,t.velocity.x=(t.position.x-t.positionPrev.x)/i,t.velocity.y=(t.position.y-t.positionPrev.y)/i,t.speed=s.magnitude(t.velocity)},n.getVelocity=function(t){var e=n._baseDelta/t.deltaTime;return{x:(t.position.x-t.positionPrev.x)*e,y:(t.position.y-t.positionPrev.y)*e}},n.getSpeed=function(t){return s.magnitude(n.getVelocity(t))},n.setSpeed=function(t,e){n.setVelocity(t,s.mult(s.normalise(n.getVelocity(t)),e))},n.setAngularVelocity=function(t,e){var i=t.deltaTime/n._baseDelta;t.anglePrev=t.angle-e*i,t.angularVelocity=(t.angle-t.anglePrev)/i,t.angularSpeed=Math.abs(t.angularVelocity)},n.getAngularVelocity=function(t){return(t.angle-t.anglePrev)*n._baseDelta/t.deltaTime},n.getAngularSpeed=function(t){return Math.abs(n.getAngularVelocity(t))},n.setAngularSpeed=function(t,e){n.setAngularVelocity(t,o.sign(n.getAngularVelocity(t))*e)},n.translate=function(t,e,i){n.setPosition(t,s.add(t.position,e),i)},n.rotate=function(t,e,i,r){if(i){var s=Math.cos(e),a=Math.sin(e),o=t.position.x-i.x,l=t.position.y-i.y;n.setPosition(t,{x:i.x+(o*s-l*a),y:i.y+(o*a+l*s)},r),n.setAngle(t,t.angle+e,r)}else n.setAngle(t,t.angle+e,r)},n.scale=function(t,e,i,s){var a=0,o=0;s=s||t.position;for(var u=t.inertia===1/0,c=0;c0&&(a+=d.area,o+=d.inertia),d.position.x=s.x+(d.position.x-s.x)*e,d.position.y=s.y+(d.position.y-s.y)*i,l.update(d.bounds,d.vertices,t.velocity)}t.parts.length>1&&(t.area=a,t.isStatic||(n.setMass(t,t.density*a),n.setInertia(t,o))),t.circleRadius&&(e===i?t.circleRadius*=e:t.circleRadius=null),u&&n.setInertia(t,1/0)},n.update=function(t,e){var i=(e=(void 0!==e?e:1e3/60)*t.timeScale)*e,a=n._timeCorrection?e/(t.deltaTime||e):1,u=1-t.frictionAir*(e/o._baseDelta),c=(t.position.x-t.positionPrev.x)*a,d=(t.position.y-t.positionPrev.y)*a;t.velocity.x=c*u+t.force.x/t.mass*i,t.velocity.y=d*u+t.force.y/t.mass*i,t.positionPrev.x=t.position.x,t.positionPrev.y=t.position.y,t.position.x+=t.velocity.x,t.position.y+=t.velocity.y,t.deltaTime=e,t.angularVelocity=(t.angle-t.anglePrev)*u*a+t.torque/t.inertia*i,t.anglePrev=t.angle,t.angle+=t.angularVelocity,t.speed=s.magnitude(t.velocity),t.angularSpeed=Math.abs(t.angularVelocity);for(var f=0;f0&&(p.position.x+=t.velocity.x,p.position.y+=t.velocity.y),0!==t.angularVelocity&&(r.rotate(p.vertices,t.angularVelocity,t.position),h.rotate(p.axes,t.angularVelocity),f>0&&s.rotateAbout(p.position,t.angularVelocity,t.position,p.position)),l.update(p.bounds,p.vertices,t.velocity)}},n.updateVelocities=function(t){var e=n._baseDelta/t.deltaTime,i=t.velocity;i.x=(t.position.x-t.positionPrev.x)*e,i.y=(t.position.y-t.positionPrev.y)*e,t.speed=Math.sqrt(i.x*i.x+i.y*i.y),t.angularVelocity=(t.angle-t.anglePrev)*e,t.angularSpeed=Math.abs(t.angularVelocity)},n.applyForce=function(t,e,i){var n=e.x-t.position.x,r=e.y-t.position.y;t.force.x+=i.x,t.force.y+=i.y,t.torque+=n*i.y-r*i.x},n._totalProperties=function(t){for(var e={mass:0,area:0,inertia:0,centre:{x:0,y:0}},i=1===t.parts.length?0:1;i{var n={};t.exports=n;var r=i(35810),s=i(53402),a=i(15647),o=i(22562);n.create=function(t){return s.extend({id:s.nextId(),type:\"composite\",parent:null,isModified:!1,bodies:[],constraints:[],composites:[],label:\"Composite\",plugin:{},wrapBounds:null,cache:{allBodies:null,allConstraints:null,allComposites:null}},t)},n.setModified=function(t,e,i,s){if(r.trigger(t,\"compositeModified\",t),t.isModified=e,e&&t.cache&&(t.cache.allBodies=null,t.cache.allConstraints=null,t.cache.allComposites=null),i&&t.parent&&n.setModified(t.parent,e,i,s),s)for(var a=0;a{var n={};t.exports=n;var r=i(69351);n.create=r.create,n.add=r.add,n.remove=r.remove,n.clear=r.clear,n.addComposite=r.addComposite,n.addBody=r.addBody,n.addConstraint=r.addConstraint},52284:(t,e,i)=>{var n={};t.exports=n;var r,s,a,o=i(41598),l=i(4506);r=[],s={overlap:0,axis:null},a={overlap:0,axis:null},n.create=function(t,e){return{pair:null,collided:!1,bodyA:t,bodyB:e,parentA:t.parent,parentB:e.parent,depth:0,normal:{x:0,y:0},tangent:{x:0,y:0},penetration:{x:0,y:0},supports:[null,null],supportCount:0}},n.collides=function(t,e,i){if(n._overlapAxes(s,t.vertices,e.vertices,t.axes),s.overlap<=0)return null;if(n._overlapAxes(a,e.vertices,t.vertices,e.axes),a.overlap<=0)return null;var r,h,u=i&&i.table[l.id(t,e)];u?r=u.collision:((r=n.create(t,e)).collided=!0,r.bodyA=t.id=0&&(v=-v,y=-y),c.x=v,c.y=y,d.x=-y,d.y=v,f.x=v*m,f.y=y*m,r.depth=m;var b=n._findSupports(t,e,c,1),x=0;if(o.contains(t.vertices,b[0])&&(p[x++]=b[0]),o.contains(t.vertices,b[1])&&(p[x++]=b[1]),x<2){var w=n._findSupports(e,t,c,-1);o.contains(e.vertices,w[0])&&(p[x++]=w[0]),x<2&&o.contains(e.vertices,w[1])&&(p[x++]=w[1])}return 0===x&&(p[x++]=b[0]),r.supportCount=x,r},n._overlapAxes=function(t,e,i,n){var r,s,a,o,l,h,u=e.length,c=i.length,d=e[0].x,f=e[0].y,p=i[0].x,m=i[0].y,g=n.length,v=Number.MAX_VALUE,y=0;for(l=0;lE?E=o:oC?C=o:o{var e={};t.exports=e,e.create=function(t){return{vertex:t,normalImpulse:0,tangentImpulse:0}}},81388:(t,e,i)=>{var n={};t.exports=n;var r=i(53402),s=i(52284);n.create=function(t){return r.extend({bodies:[],collisions:[],pairs:null},t)},n.setBodies=function(t,e){t.bodies=e.slice(0)},n.clear=function(t){t.bodies=[],t.collisions=[]},n.collisions=function(t){var e,i,r=t.pairs,a=t.bodies,o=a.length,l=n.canCollide,h=s.collides,u=t.collisions,c=0;for(a.sort(n._compareBoundsX),e=0;ep)break;if(!(mk.max.y)&&(!v||!x.isStatic&&!x.isSleeping)&&l(d.collisionFilter,x.collisionFilter)){var w=x.parts.length;if(b&&1===w)(A=h(d,x,r))&&(u[c++]=A);else for(var T=w>1?1:0,S=y>1?1:0;Sk.max.x||f.max.xk.max.y||(A=h(E,_,r))&&(u[c++]=A)}}}}return u.length!==c&&(u.length=c),u},n.canCollide=function(t,e){return t.group===e.group&&0!==t.group?t.group>0:0!=(t.mask&e.category)&&0!=(e.mask&t.category)},n._compareBoundsX=function(t,e){return t.bounds.min.x-e.bounds.min.x}},4506:(t,e,i)=>{var n={};t.exports=n;var r=i(43424);n.create=function(t,e){var i=t.bodyA,s=t.bodyB,a={id:n.id(i,s),bodyA:i,bodyB:s,collision:t,contacts:[r.create(),r.create()],contactCount:0,separation:0,isActive:!0,isSensor:i.isSensor||s.isSensor,timeCreated:e,timeUpdated:e,inverseMass:0,friction:0,frictionStatic:0,restitution:0,slop:0};return n.update(a,t,e),a},n.update=function(t,e,i){var n=e.supports,r=e.supportCount,s=t.contacts,a=e.parentA,o=e.parentB;t.isActive=!0,t.timeUpdated=i,t.collision=e,t.separation=e.depth,t.inverseMass=a.inverseMass+o.inverseMass,t.friction=a.frictiono.frictionStatic?a.frictionStatic:o.frictionStatic,t.restitution=a.restitution>o.restitution?a.restitution:o.restitution,t.slop=a.slop>o.slop?a.slop:o.slop,t.contactCount=r,e.pair=t;var l=n[0],h=s[0],u=n[1],c=s[1];c.vertex!==l&&h.vertex!==u||(s[1]=h,s[0]=h=c,c=s[1]),h.vertex=l,c.vertex=u},n.setActive=function(t,e,i){e?(t.isActive=!0,t.timeUpdated=i):(t.isActive=!1,t.contactCount=0)},n.id=function(t,e){return t.id{var n={};t.exports=n;var r=i(4506),s=i(53402);n.create=function(t){return s.extend({table:{},list:[],collisionStart:[],collisionActive:[],collisionEnd:[]},t)},n.update=function(t,e,i){var n,s,a,o=r.update,l=r.create,h=r.setActive,u=t.table,c=t.list,d=c.length,f=d,p=t.collisionStart,m=t.collisionEnd,g=t.collisionActive,v=e.length,y=0,b=0,x=0;for(a=0;a=i?c[f++]=s:(h(s,!1,i),s.collision.bodyA.sleepCounter>0&&s.collision.bodyB.sleepCounter>0?c[f++]=s:(m[b++]=s,delete u[s.id]));c.length!==f&&(c.length=f),p.length!==y&&(p.length=y),m.length!==b&&(m.length=b),g.length!==x&&(g.length=x)},n.clear=function(t){return t.table={},t.list.length=0,t.collisionStart.length=0,t.collisionActive.length=0,t.collisionEnd.length=0,t}},73296:(t,e,i)=>{var n={};t.exports=n;var r=i(31725),s=i(52284),a=i(15647),o=i(66280),l=i(41598);n.collides=function(t,e){for(var i=[],n=e.length,r=t.bounds,o=s.collides,l=a.overlaps,h=0;h{var n={};t.exports=n;var r=i(41598),s=i(53402),a=i(15647);n._restingThresh=2,n._restingThreshTangent=Math.sqrt(6),n._positionDampen=.9,n._positionWarming=.8,n._frictionNormalMultiplier=5,n._frictionMaxStatic=Number.MAX_VALUE,n.preSolvePosition=function(t){var e,i,n,r=t.length;for(e=0;eX?(r=G>0?G:-G,(i=m.friction*(G>0?1:-1)*h)<-r?i=-r:i>r&&(i=r)):(i=G,r=f);var W=L*x-N*b,q=B*x-z*b,$=_/(S+v.inverseInertia*W*W+y.inverseInertia*q*q),K=(1+m.restitution)*V*$;if(i*=$,V0&&(I.normalImpulse=0),K=I.normalImpulse-J}if(G<-c||G>c)I.tangentImpulse=0;else{var Z=I.tangentImpulse;I.tangentImpulse+=i,I.tangentImpulse<-r&&(I.tangentImpulse=-r),I.tangentImpulse>r&&(I.tangentImpulse=r),i=I.tangentImpulse-Z}var Q=b*K+w*i,tt=x*K+T*i;v.isStatic||v.isSleeping||(v.positionPrev.x+=Q*v.inverseMass,v.positionPrev.y+=tt*v.inverseMass,v.anglePrev+=(L*tt-N*Q)*v.inverseInertia),y.isStatic||y.isSleeping||(y.positionPrev.x-=Q*y.inverseMass,y.positionPrev.y-=tt*y.inverseMass,y.anglePrev-=(B*tt-z*Q)*y.inverseInertia)}}}}},48140:(t,e,i)=>{var n={};t.exports=n;var r=i(41598),s=i(31725),a=i(53614),o=i(15647),l=i(66615),h=i(53402);n._warming=.4,n._torqueDampen=1,n._minLength=1e-6,n.create=function(t){var e=t;e.bodyA&&!e.pointA&&(e.pointA={x:0,y:0}),e.bodyB&&!e.pointB&&(e.pointB={x:0,y:0});var i=e.bodyA?s.add(e.bodyA.position,e.pointA):e.pointA,n=e.bodyB?s.add(e.bodyB.position,e.pointB):e.pointB,r=s.magnitude(s.sub(i,n));e.length=void 0!==e.length?e.length:r,e.id=e.id||h.nextId(),e.label=e.label||\"Constraint\",e.type=\"constraint\",e.stiffness=e.stiffness||(e.length>0?1:.7),e.damping=e.damping||0,e.angularStiffness=e.angularStiffness||0,e.angleA=e.bodyA?e.bodyA.angle:e.angleA,e.angleB=e.bodyB?e.bodyB.angle:e.angleB,e.plugin={};var a={visible:!0,type:\"line\",anchors:!0,lineColor:null,lineOpacity:null,lineThickness:null,pinSize:null,anchorColor:null,anchorSize:null};return 0===e.length&&e.stiffness>.1?(a.type=\"pin\",a.anchors=!1):e.stiffness<.9&&(a.type=\"spring\"),e.render=h.extend(a,e.render),e},n.preSolveAll=function(t){for(var e=0;e=1||0===t.length?t.stiffness*e:t.stiffness*e*e,b=t.damping*e,x=s.mult(u,v*y),w=(i?i.inverseMass:0)+(r?r.inverseMass:0),T=w+((i?i.inverseInertia:0)+(r?r.inverseInertia:0));if(b>0){var S=s.create();p=s.div(u,c),g=s.sub(r&&s.sub(r.position,r.positionPrev)||S,i&&s.sub(i.position,i.positionPrev)||S),m=s.dot(p,g)}i&&!i.isStatic&&(f=i.inverseMass/w,i.constraintImpulse.x-=x.x*f,i.constraintImpulse.y-=x.y*f,i.position.x-=x.x*f,i.position.y-=x.y*f,b>0&&(i.positionPrev.x-=b*p.x*m*f,i.positionPrev.y-=b*p.y*m*f),d=s.cross(a,x)/T*n._torqueDampen*i.inverseInertia*(1-t.angularStiffness),i.constraintImpulse.angle-=d,i.angle-=d),r&&!r.isStatic&&(f=r.inverseMass/w,r.constraintImpulse.x+=x.x*f,r.constraintImpulse.y+=x.y*f,r.position.x+=x.x*f,r.position.y+=x.y*f,b>0&&(r.positionPrev.x+=b*p.x*m*f,r.positionPrev.y+=b*p.y*m*f),d=s.cross(o,x)/T*n._torqueDampen*r.inverseInertia*(1-t.angularStiffness),r.constraintImpulse.angle+=d,r.angle+=d)}}},n.postSolveAll=function(t){for(var e=0;e0&&(c.position.x+=h.x,c.position.y+=h.y),0!==h.angle&&(r.rotate(c.vertices,h.angle,i.position),l.rotate(c.axes,h.angle),u>0&&s.rotateAbout(c.position,h.angle,i.position,c.position)),o.update(c.bounds,c.vertices,i.velocity)}h.angle*=n._warming,h.x*=n._warming,h.y*=n._warming}}},n.pointAWorld=function(t){return{x:(t.bodyA?t.bodyA.position.x:0)+(t.pointA?t.pointA.x:0),y:(t.bodyA?t.bodyA.position.y:0)+(t.pointA?t.pointA.y:0)}},n.pointBWorld=function(t){return{x:(t.bodyB?t.bodyB.position.x:0)+(t.pointB?t.pointB.x:0),y:(t.bodyB?t.bodyB.position.y:0)+(t.pointB?t.pointB.y:0)}},n.currentLength=function(t){var e=(t.bodyA?t.bodyA.position.x:0)+(t.pointA?t.pointA.x:0),i=(t.bodyA?t.bodyA.position.y:0)+(t.pointA?t.pointA.y:0),n=e-((t.bodyB?t.bodyB.position.x:0)+(t.pointB?t.pointB.x:0)),r=i-((t.bodyB?t.bodyB.position.y:0)+(t.pointB?t.pointB.y:0));return Math.sqrt(n*n+r*r)}},53402:(t,e,i)=>{var n={};t.exports=n,function(){n._baseDelta=1e3/60,n._nextId=0,n._seed=0,n._nowStartTime=+new Date,n._warnedOnce={},n._decomp=null,n.extend=function(t,e){var i,r;\"boolean\"==typeof e?(i=2,r=e):(i=1,r=!0);for(var s=i;s0;e--){var i=Math.floor(n.random()*(e+1)),r=t[e];t[e]=t[i],t[i]=r}return t},n.choose=function(t){return t[Math.floor(n.random()*t.length)]},n.isElement=function(t){return\"undefined\"!=typeof HTMLElement?t instanceof HTMLElement:!!(t&&t.nodeType&&t.nodeName)},n.isArray=function(t){return\"[object Array]\"===Object.prototype.toString.call(t)},n.isFunction=function(t){return\"function\"==typeof t},n.isPlainObject=function(t){return\"object\"==typeof t&&t.constructor===Object},n.isString=function(t){return\"[object String]\"===toString.call(t)},n.clamp=function(t,e,i){return ti?i:t},n.sign=function(t){return t<0?-1:1},n.now=function(){if(\"undefined\"!=typeof window&&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-n._nowStartTime},n.random=function(e,i){return i=void 0!==i?i:1,(e=void 0!==e?e:0)+t()*(i-e)};var t=function(){return n._seed=(9301*n._seed+49297)%233280,n._seed/233280};n.colorToNumber=function(t){return 3==(t=t.replace(\"#\",\"\")).length&&(t=t.charAt(0)+t.charAt(0)+t.charAt(1)+t.charAt(1)+t.charAt(2)+t.charAt(2)),parseInt(t,16)},n.logLevel=1,n.log=function(){console&&n.logLevel>0&&n.logLevel<=3&&console.log.apply(console,[\"matter-js:\"].concat(Array.prototype.slice.call(arguments)))},n.info=function(){console&&n.logLevel>0&&n.logLevel<=2&&console.info.apply(console,[\"matter-js:\"].concat(Array.prototype.slice.call(arguments)))},n.warn=function(){console&&n.logLevel>0&&n.logLevel<=3&&console.warn.apply(console,[\"matter-js:\"].concat(Array.prototype.slice.call(arguments)))},n.warnOnce=function(){var t=Array.prototype.slice.call(arguments).join(\" \");n._warnedOnce[t]||(n.warn(t),n._warnedOnce[t]=!0)},n.deprecated=function(t,e,i){t[e]=n.chain((function(){n.warnOnce(\"🔅 deprecated 🔅\",i)}),t[e])},n.nextId=function(){return n._nextId++},n.indexOf=function(t,e){if(t.indexOf)return t.indexOf(e);for(var i=0;i{var n={};t.exports=n;var r=i(53614),s=i(66272),a=i(81388),o=i(99561),l=i(35810),h=i(69351),u=i(48140),c=i(53402),d=i(22562);n._deltaMax=1e3/60,n.create=function(t){t=t||{};var e=c.extend({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}},t);return e.world=t.world||h.create({label:\"World\"}),e.pairs=t.pairs||o.create(),e.detector=t.detector||a.create(),e.detector.pairs=e.pairs,e.grid={buckets:[]},e.world.gravity=e.gravity,e.broadphase=e.grid,e.metrics={},e},n.update=function(t,e){var i,d=c.now(),f=t.world,p=t.detector,m=t.pairs,g=t.timing,v=g.timestamp;e>n._deltaMax&&c.warnOnce(\"Matter.Engine.update: delta argument is recommended to be less than or equal to\",n._deltaMax.toFixed(3),\"ms.\"),e=void 0!==e?e:c._baseDelta,e*=g.timeScale,g.timestamp+=e,g.lastDelta=e;var y={timestamp:g.timestamp,delta:e};l.trigger(t,\"beforeUpdate\",y);var b=h.allBodies(f),x=h.allConstraints(f),w=h.allComposites(f);for(f.isModified&&(a.setBodies(p,b),h.setModified(f,!1,!1,!0)),t.enableSleeping&&r.update(b,e),n._bodiesApplyGravity(b,t.gravity),n.wrap(b,w),n.attractors(b),e>0&&n._bodiesUpdate(b,e),l.trigger(t,\"beforeSolve\",y),u.preSolveAll(b),i=0;i0&&l.trigger(t,\"collisionStart\",{pairs:m.collisionStart,timestamp:g.timestamp,delta:e});var S=c.clamp(20/t.positionIterations,0,1);for(s.preSolvePosition(m.list),i=0;i0&&l.trigger(t,\"collisionActive\",{pairs:m.collisionActive,timestamp:g.timestamp,delta:e}),m.collisionEnd.length>0&&l.trigger(t,\"collisionEnd\",{pairs:m.collisionEnd,timestamp:g.timestamp,delta:e}),n._bodiesClearForces(b),l.trigger(t,\"afterUpdate\",y),t.timing.lastElapsed=c.now()-d,t},n.merge=function(t,e){if(c.extend(t,e),e.world){t.world=e.world,n.clear(t);for(var i=h.allBodies(t.world),s=0;s0)for(var r=0;r{var n={};t.exports=n;var r=i(53402);n.on=function(t,e,i){for(var n,r=e.split(\" \"),s=0;s0){i||(i={}),n=e.split(\" \");for(var h=0;h{var n={};t.exports=n;var r=i(73832),s=i(53402);n.name=\"matter-js\",n.version=\"0.20.0\",n.uses=[],n.used=[],n.use=function(){r.use(n,Array.prototype.slice.call(arguments))},n.before=function(t,e){return t=t.replace(/^Matter./,\"\"),s.chainPathBefore(n,t,e)},n.after=function(t,e){return t=t.replace(/^Matter./,\"\"),s.chainPathAfter(n,t,e)}},73832:(t,e,i)=>{var n={};t.exports=n;var r=i(53402);n._registry={},n.register=function(t){if(n.isPlugin(t)||r.warn(\"Plugin.register:\",n.toString(t),\"does not implement all required fields.\"),t.name in n._registry){var e=n._registry[t.name],i=n.versionParse(t.version).number,s=n.versionParse(e.version).number;i>s?(r.warn(\"Plugin.register:\",n.toString(e),\"was upgraded to\",n.toString(t)),n._registry[t.name]=t):i-1},n.isFor=function(t,e){var i=t.for&&n.dependencyParse(t.for);return!t.for||e.name===i.name&&n.versionSatisfies(e.version,i.range)},n.use=function(t,e){if(t.uses=(t.uses||[]).concat(e||[]),0!==t.uses.length){for(var i=n.dependencies(t),s=r.topologicalSort(i),a=[],o=0;o0&&!l.silent&&r.info(a.join(\" \"))}else r.warn(\"Plugin.use:\",n.toString(t),\"does not specify any dependencies to install.\")},n.dependencies=function(t,e){var i=n.dependencyParse(t),s=i.name;if(!(s in(e=e||{}))){t=n.resolve(t)||t,e[s]=r.map(t.uses||[],(function(e){n.isPlugin(e)&&n.register(e);var s=n.dependencyParse(e),a=n.resolve(e);return a&&!n.versionSatisfies(a.version,s.range)?(r.warn(\"Plugin.dependencies:\",n.toString(a),\"does not satisfy\",n.toString(s),\"used by\",n.toString(i)+\".\"),a._warned=!0,t._warned=!0):a||(r.warn(\"Plugin.dependencies:\",n.toString(e),\"used by\",n.toString(i),\"could not be resolved.\"),t._warned=!0),s.name}));for(var a=0;a=|>)?\\s*((\\d+)\\.(\\d+)\\.(\\d+))(-[0-9A-Za-z-+]+)?$/;e.test(t)||r.warn(\"Plugin.versionParse:\",t,\"is not a valid version or range.\");var i=e.exec(t),n=Number(i[4]),s=Number(i[5]),a=Number(i[6]);return{isRange:Boolean(i[1]||i[2]),version:i[3],range:t,operator:i[1]||i[2]||\"\",major:n,minor:s,patch:a,parts:[n,s,a],prerelease:i[7],number:1e8*n+1e4*s+a}},n.versionSatisfies=function(t,e){e=e||\"*\";var i=n.versionParse(e),r=n.versionParse(t);if(i.isRange){if(\"*\"===i.operator||\"*\"===t)return!0;if(\">\"===i.operator)return r.number>i.number;if(\">=\"===i.operator)return r.number>=i.number;if(\"~\"===i.operator)return r.major===i.major&&r.minor===i.minor&&r.patch>=i.patch;if(\"^\"===i.operator)return i.major>0?r.major===i.major&&r.number>=i.number:i.minor>0?r.minor===i.minor&&r.patch>=i.patch:r.patch===i.patch}return t===e||\"*\"===t}},13037:(t,e,i)=>{var n={};t.exports=n;var r=i(35810),s=i(48413),a=i(53402);!function(){n._maxFrameDelta=1e3/15,n._frameDeltaFallback=1e3/60,n._timeBufferMargin=1.5,n._elapsedNextEstimate=1,n._smoothingLowerBound=.1,n._smoothingUpperBound=.9,n.create=function(t){var e=a.extend({delta:1e3/60,frameDelta:null,frameDeltaSmoothing:!0,frameDeltaSnapping:!0,frameDeltaHistory:[],frameDeltaHistorySize:100,frameRequestId:null,timeBuffer:0,timeLastTick:null,maxUpdates:null,maxFrameTime:1e3/30,lastUpdatesDeferred:0,enabled:!0},t);return e.fps=0,e},n.run=function(t,e){return t.timeBuffer=n._frameDeltaFallback,function i(r){t.frameRequestId=n._onNextFrame(t,i),r&&t.enabled&&n.tick(t,e,r)}(),t},n.tick=function(e,i,o){var l=a.now(),h=e.delta,u=0,c=o-e.timeLastTick;if((!c||!e.timeLastTick||c>Math.max(n._maxFrameDelta,e.maxFrameTime))&&(c=e.frameDelta||n._frameDeltaFallback),e.frameDeltaSmoothing){e.frameDeltaHistory.push(c),e.frameDeltaHistory=e.frameDeltaHistory.slice(-e.frameDeltaHistorySize);var d=e.frameDeltaHistory.slice(0).sort(),f=e.frameDeltaHistory.slice(d.length*n._smoothingLowerBound,d.length*n._smoothingUpperBound);c=t(f)||c}e.frameDeltaSnapping&&(c=1e3/Math.round(1e3/c)),e.frameDelta=c,e.timeLastTick=o,e.timeBuffer+=e.frameDelta,e.timeBuffer=a.clamp(e.timeBuffer,0,e.frameDelta+h*n._timeBufferMargin),e.lastUpdatesDeferred=0;var p=e.maxUpdates||Math.ceil(e.maxFrameTime/h),m={timestamp:i.timing.timestamp};r.trigger(e,\"beforeTick\",m),r.trigger(e,\"tick\",m);for(var g=a.now();h>0&&e.timeBuffer>=h*n._timeBufferMargin;){r.trigger(e,\"beforeUpdate\",m),s.update(i,h),r.trigger(e,\"afterUpdate\",m),e.timeBuffer-=h,u+=1;var v=a.now()-l,y=a.now()-g,b=v+n._elapsedNextEstimate*y/u;if(u>=p||b>e.maxFrameTime){e.lastUpdatesDeferred=Math.round(Math.max(0,e.timeBuffer/h-n._timeBufferMargin));break}}i.timing.lastUpdatesPerFrame=u,r.trigger(e,\"afterTick\",m),e.frameDeltaHistory.length>=100&&(e.lastUpdatesDeferred&&Math.round(e.frameDelta/h)>p?a.warnOnce(\"Matter.Runner: runner reached runner.maxUpdates, see docs.\"):e.lastUpdatesDeferred&&a.warnOnce(\"Matter.Runner: runner reached runner.maxFrameTime, see docs.\"),void 0!==e.isFixed&&a.warnOnce(\"Matter.Runner: runner.isFixed is now redundant, see docs.\"),(e.deltaMin||e.deltaMax)&&a.warnOnce(\"Matter.Runner: runner.deltaMin and runner.deltaMax were removed, see docs.\"),0!==e.fps&&a.warnOnce(\"Matter.Runner: runner.fps was replaced by runner.delta, see docs.\"))},n.stop=function(t){n._cancelNextFrame(t)},n._onNextFrame=function(t,e){if(\"undefined\"==typeof window||!window.requestAnimationFrame)throw new Error(\"Matter.Runner: missing required global window.requestAnimationFrame.\");return t.frameRequestId=window.requestAnimationFrame(e),t.frameRequestId},n._cancelNextFrame=function(t){if(\"undefined\"==typeof window||!window.cancelAnimationFrame)throw new Error(\"Matter.Runner: missing required global window.cancelAnimationFrame.\");window.cancelAnimationFrame(t.frameRequestId)};var t=function(t){for(var e=0,i=t.length,n=0;n{var n={};t.exports=n;var r=i(22562),s=i(35810),a=i(53402);n._motionWakeThreshold=.18,n._motionSleepThreshold=.08,n._minBias=.9,n.update=function(t,e){for(var i=e/a._baseDelta,s=n._motionSleepThreshold,o=0;o0&&l.motion=l.sleepThreshold/i&&n.set(l,!0)):l.sleepCounter>0&&(l.sleepCounter-=1)}else n.set(l,!1)}},n.afterCollisions=function(t){for(var e=n._motionSleepThreshold,i=0;ie&&n.set(l,!1)}}}},n.set=function(t,e){var i=t.isSleeping;e?(t.isSleeping=!0,t.sleepCounter=t.sleepThreshold,t.positionImpulse.x=0,t.positionImpulse.y=0,t.positionPrev.x=t.position.x,t.positionPrev.y=t.position.y,t.anglePrev=t.angle,t.speed=0,t.angularSpeed=0,t.motion=0,i||s.trigger(t,\"sleepStart\")):(t.isSleeping=!1,t.sleepCounter=0,i&&s.trigger(t,\"sleepEnd\"))}},66280:(t,e,i)=>{var n={};t.exports=n;var r=i(41598),s=i(53402),a=i(22562),o=i(15647),l=i(31725);n.rectangle=function(t,e,i,n,o){o=o||{};var l={label:\"Rectangle Body\",position:{x:t,y:e},vertices:r.fromPath(\"L 0 0 L \"+i+\" 0 L \"+i+\" \"+n+\" L 0 \"+n)};if(o.chamfer){var h=o.chamfer;l.vertices=r.chamfer(l.vertices,h.radius,h.quality,h.qualityMin,h.qualityMax),delete o.chamfer}return a.create(s.extend({},l,o))},n.trapezoid=function(t,e,i,n,o,l){l=l||{},o>=1&&s.warn(\"Bodies.trapezoid: slope parameter must be < 1.\");var h,u=i*(o*=.5),c=u+(1-2*o)*i,d=c+u;h=o<.5?\"L 0 0 L \"+u+\" \"+-n+\" L \"+c+\" \"+-n+\" L \"+d+\" 0\":\"L 0 0 L \"+c+\" \"+-n+\" L \"+d+\" 0\";var f={label:\"Trapezoid Body\",position:{x:t,y:e},vertices:r.fromPath(h)};if(l.chamfer){var p=l.chamfer;f.vertices=r.chamfer(f.vertices,p.radius,p.quality,p.qualityMin,p.qualityMax),delete l.chamfer}return a.create(s.extend({},f,l))},n.circle=function(t,e,i,r,a){r=r||{};var o={label:\"Circle Body\",circleRadius:i};a=a||25;var l=Math.ceil(Math.max(10,Math.min(a,i)));return l%2==1&&(l+=1),n.polygon(t,e,l,i,s.extend({},o,r))},n.polygon=function(t,e,i,o,l){if(l=l||{},i<3)return n.circle(t,e,o,l);for(var h=2*Math.PI/i,u=\"\",c=.5*h,d=0;d0&&r.area(A)1?(p=a.create(s.extend({parts:m.slice(0)},n)),a.setPosition(p,{x:t,y:e}),p):m[0]},n.flagCoincidentParts=function(t,e){void 0===e&&(e=5);for(var i=0;i{var n={};t.exports=n;var r=i(69351),s=i(48140),a=i(53402),o=i(22562),l=i(66280);n.stack=function(t,e,i,n,s,a,l){for(var h,u=r.create({label:\"Stack\"}),c=t,d=e,f=0,p=0;pm&&(m=y),o.translate(v,{x:.5*b,y:.5*y}),c=v.bounds.max.x+s,r.addBody(u,v),h=v,f+=1}else c+=s}d+=m+a,c=t}return u},n.chain=function(t,e,i,n,o,l){for(var h=t.bodies,u=1;u0)for(h=0;h0&&(d=f[h-1+(l-1)*e],r.addConstraint(t,s.create(a.extend({bodyA:d,bodyB:c},o)))),n&&hd||a<(h=d-h)||a>i-1-h))return 1===c&&o.translate(u,{x:(a+(i%2==1?1:-1))*f,y:0}),l(t+(u?a*f:0)+a*s,n,a,h,u,c)}))},n.newtonsCradle=function(t,e,i,n,a){for(var o=r.create({label:\"Newtons Cradle\"}),h=0;h{var n={};t.exports=n;var r=i(31725),s=i(53402);n.fromVertices=function(t){for(var e={},i=0;i{var e={};t.exports=e,e.create=function(t){var i={min:{x:0,y:0},max:{x:0,y:0}};return t&&e.update(i,t),i},e.update=function(t,e,i){t.min.x=1/0,t.max.x=-1/0,t.min.y=1/0,t.max.y=-1/0;for(var n=0;nt.max.x&&(t.max.x=r.x),r.xt.max.y&&(t.max.y=r.y),r.y0?t.max.x+=i.x:t.min.x+=i.x,i.y>0?t.max.y+=i.y:t.min.y+=i.y)},e.contains=function(t,e){return e.x>=t.min.x&&e.x<=t.max.x&&e.y>=t.min.y&&e.y<=t.max.y},e.overlaps=function(t,e){return t.min.x<=e.max.x&&t.max.x>=e.min.x&&t.max.y>=e.min.y&&t.min.y<=e.max.y},e.translate=function(t,e){t.min.x+=e.x,t.max.x+=e.x,t.min.y+=e.y,t.max.y+=e.y},e.shift=function(t,e){var i=t.max.x-t.min.x,n=t.max.y-t.min.y;t.min.x=e.x,t.max.x=e.x+i,t.min.y=e.y,t.max.y=e.y+n},e.wrap=function(t,e,i){var n=null,r=null;if(void 0!==e.min.x&&void 0!==e.max.x&&(t.min.x>e.max.x?n=e.min.x-t.max.x:t.max.xe.max.y?r=e.min.y-t.max.y:t.max.y{var n={};t.exports=n,i(15647);var r=i(53402);n.pathToVertices=function(t,e){\"undefined\"==typeof window||\"SVGPathSeg\"in window||r.warn(\"Svg.pathToVertices: SVGPathSeg not defined, a polyfill is required.\");var i,s,a,o,l,h,u,c,d,f,p,m=[],g=0,v=0,y=0;e=e||15;var b=function(t,e,i){var n=i%2==1&&i>1;if(!d||t!=d.x||e!=d.y){d&&n?(f=d.x,p=d.y):(f=0,p=0);var r={x:f+t,y:p+e};!n&&d||(d=r),m.push(r),v=f+t,y=p+e}},x=function(t){var e=t.pathSegTypeAsLetter.toUpperCase();if(\"Z\"!==e){switch(e){case\"M\":case\"L\":case\"T\":case\"C\":case\"S\":case\"Q\":v=t.x,y=t.y;break;case\"H\":v=t.x;break;case\"V\":y=t.y}b(v,y,t.pathSegType)}};for(n._svgPathToAbsolute(t),a=t.getTotalLength(),h=[],i=0;i{var e={};t.exports=e,e.create=function(t,e){return{x:t||0,y:e||0}},e.clone=function(t){return{x:t.x,y:t.y}},e.magnitude=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},e.magnitudeSquared=function(t){return t.x*t.x+t.y*t.y},e.rotate=function(t,e,i){var n=Math.cos(e),r=Math.sin(e);i||(i={});var s=t.x*n-t.y*r;return i.y=t.x*r+t.y*n,i.x=s,i},e.rotateAbout=function(t,e,i,n){var r=Math.cos(e),s=Math.sin(e);n||(n={});var a=i.x+((t.x-i.x)*r-(t.y-i.y)*s);return n.y=i.y+((t.x-i.x)*s+(t.y-i.y)*r),n.x=a,n},e.normalise=function(t){var i=e.magnitude(t);return 0===i?{x:0,y:0}:{x:t.x/i,y:t.y/i}},e.dot=function(t,e){return t.x*e.x+t.y*e.y},e.cross=function(t,e){return t.x*e.y-t.y*e.x},e.cross3=function(t,e,i){return(e.x-t.x)*(i.y-t.y)-(e.y-t.y)*(i.x-t.x)},e.add=function(t,e,i){return i||(i={}),i.x=t.x+e.x,i.y=t.y+e.y,i},e.sub=function(t,e,i){return i||(i={}),i.x=t.x-e.x,i.y=t.y-e.y,i},e.mult=function(t,e){return{x:t.x*e,y:t.y*e}},e.div=function(t,e){return{x:t.x/e,y:t.y/e}},e.perp=function(t,e){return{x:(e=!0===e?-1:1)*-t.y,y:e*t.x}},e.neg=function(t){return{x:-t.x,y:-t.y}},e.angle=function(t,e){return Math.atan2(e.y-t.y,e.x-t.x)},e._temp=[e.create(),e.create(),e.create(),e.create(),e.create(),e.create()]},41598:(t,e,i)=>{var n={};t.exports=n;var r=i(31725),s=i(53402);n.create=function(t,e){for(var i=[],n=0;n0)return!1;a=i}return!0},n.scale=function(t,e,i,s){if(1===e&&1===i)return t;var a,o;s=s||n.centre(t);for(var l=0;l=0?l-1:t.length-1],u=t[l],c=t[(l+1)%t.length],d=e[l0&&(s|=2),3===s)return!1;return 0!==s||null},n.hull=function(t){var e,i,n=[],s=[];for((t=t.slice(0)).sort((function(t,e){var i=t.x-e.x;return 0!==i?i:t.y-e.y})),i=0;i=2&&r.cross3(s[s.length-2],s[s.length-1],e)<=0;)s.pop();s.push(e)}for(i=t.length-1;i>=0;i-=1){for(e=t[i];n.length>=2&&r.cross3(n[n.length-2],n[n.length-1],e)<=0;)n.pop();n.push(e)}return n.pop(),s.pop(),n.concat(s)}},55973:t=>{function e(t,e,i){i=i||0;var n,r,s,a,o,l,h,u=[0,0];return n=t[1][1]-t[0][1],r=t[0][0]-t[1][0],s=n*t[0][0]+r*t[0][1],a=e[1][1]-e[0][1],o=e[0][0]-e[1][0],l=a*e[0][0]+o*e[0][1],w(h=n*o-a*r,0,i)||(u[0]=(o*s-r*l)/h,u[1]=(n*l-a*s)/h),u}function i(t,e,i,n){var r=e[0]-t[0],s=e[1]-t[1],a=n[0]-i[0],o=n[1]-i[1];if(a*s-o*r==0)return!1;var l=(r*(i[1]-t[1])+s*(t[0]-i[0]))/(a*s-o*r),h=(a*(t[1]-i[1])+o*(i[0]-t[0]))/(o*r-a*s);return l>=0&&l<=1&&h>=0&&h<=1}function n(t,e,i){return(e[0]-t[0])*(i[1]-t[1])-(i[0]-t[0])*(e[1]-t[1])}function r(t,e,i){return n(t,e,i)>0}function s(t,e,i){return n(t,e,i)>=0}function a(t,e,i){return n(t,e,i)<0}function o(t,e,i){return n(t,e,i)<=0}\n/**\n * @author Stefan Hedman (http://steffe.se)\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports={decomp:function(t){var e=function t(e){for(var i=[],n=[],r=[],s=[],a=Number.MAX_VALUE,o=0;o0?function t(e,i){if(0===i.length)return[e];if(i instanceof Array&&i.length&&i[0]instanceof Array&&2===i[0].length&&i[0][0]instanceof Array){for(var n=[e],r=0;ru)return console.warn(\"quickDecomp: max level (\"+u+\") reached.\"),i;for(var O=0;OC&&(C+=e.length),E=Number.MAX_VALUE,C3&&n>=0;--n)u(d(t,n-1),d(t,n),d(t,n+1),e)&&(t.splice(n%t.length,1),i++);return i},removeDuplicatePoints:function(t,e){for(var i=t.length-1;i>=1;--i)for(var n=t[i],r=i-1;r>=0;--r)T(n,t[r],e)&&t.splice(i,1)},makeCCW:function(t){for(var e=0,i=t,n=1;ni[e][0])&&(e=n);return!r(d(t,e-1),d(t,e),d(t,e+1))&&(function(t){for(var e=[],i=t.length,n=0;n!==i;n++)e.push(t.pop());for(n=0;n!==i;n++)t[n]=e[n]}(t),!0)}};var l=[],h=[];function u(t,e,i,r){if(r){var s=l,a=h;s[0]=e[0]-t[0],s[1]=e[1]-t[1],a[0]=i[0]-e[0],a[1]=i[1]-e[1];var o=s[0]*a[0]+s[1]*a[1],u=Math.sqrt(s[0]*s[0]+s[1]*s[1]),c=Math.sqrt(a[0]*a[0]+a[1]*a[1]);return Math.acos(o/(u*c)){\n/**\n* @author Richard Davey \n* @copyright 2013-2025 Phaser Studio Inc.\n* @license {@link https://github.com/photonstorm/phaser3-plugin-template/blob/master/LICENSE|MIT License}\n*/\nvar n=new(i(83419))({initialize:function(t){this.pluginManager=t,this.game=t.game},init:function(){},start:function(){},stop:function(){},destroy:function(){this.pluginManager=null,this.game=null,this.scene=null,this.systems=null}});t.exports=n},42363:t=>{t.exports={Global:[\"game\",\"anims\",\"cache\",\"plugins\",\"registry\",\"scale\",\"sound\",\"textures\",\"renderer\"],CoreScene:[\"EventEmitter\",\"CameraManager\",\"GameObjectCreator\",\"GameObjectFactory\",\"ScenePlugin\",\"DisplayList\",\"UpdateList\"],DefaultScene:[\"Clock\",\"DataManagerPlugin\",\"InputPlugin\",\"Loader\",\"TweenManager\",\"LightsPlugin\"]}},37277:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar e={},i={},n={register:function(t,i,n,r){void 0===r&&(r=!1),e[t]={plugin:i,mapping:n,custom:r}},registerCustom:function(t,e,n,r){i[t]={plugin:e,mapping:n,data:r}},hasCore:function(t){return e.hasOwnProperty(t)},hasCustom:function(t){return i.hasOwnProperty(t)},getCore:function(t){return e[t]},getCustom:function(t){return i[t]},getCustomClass:function(t){return i.hasOwnProperty(t)?i[t].plugin:null},remove:function(t){e.hasOwnProperty(t)&&delete e[t]},removeCustom:function(t){i.hasOwnProperty(t)&&delete i[t]},destroyCorePlugins:function(){for(var t in e)e.hasOwnProperty(t)&&delete e[t]},destroyCustomPlugins:function(){for(var t in i)i.hasOwnProperty(t)&&delete i[t]}};t.exports=n},77332:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(83419),r=i(8443),s=i(50792),a=i(74099),o=i(44603),l=i(39429),h=i(95540),u=i(37277),c=i(72905),d=i(8054),f=new n({Extends:s,initialize:function(t){s.call(this),this.game=t,this.plugins=[],this.scenePlugins=[],this._pendingGlobal=[],this._pendingScene=[],t.isBooted||t.config.renderType===d.HEADLESS?this.boot():t.events.once(r.BOOT,this.boot,this)},boot:function(){var t,e,i,n,s,a,o,l=this.game.config,u=l.installGlobalPlugins;for(u=u.concat(this._pendingGlobal),t=0;t{\n/**\n* @author Richard Davey \n* @copyright 2013-2025 Phaser Studio Inc.\n* @license {@link https://github.com/photonstorm/phaser3-plugin-template/blob/master/LICENSE|MIT License}\n*/\nvar n=i(52018),r=i(83419),s=i(44594),a=new r({Extends:n,initialize:function(t,e,i){n.call(this,e),this.scene=t,this.systems=t.sys,this.pluginKey=i,t.sys.events.once(s.BOOT,this.boot,this)},boot:function(){},destroy:function(){this.pluginManager=null,this.game=null,this.scene=null,this.systems=null}});t.exports=a},18922:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports={BasePlugin:i(52018),DefaultPlugins:i(42363),PluginCache:i(37277),PluginManager:i(77332),ScenePlugin:i(45145)}},63595:()=>{\"undefined\"!=typeof HTMLVideoElement&&!(\"requestVideoFrameCallback\"in HTMLVideoElement.prototype)&&\"getVideoPlaybackQuality\"in HTMLVideoElement.prototype&&(HTMLVideoElement.prototype._rvfcpolyfillmap={},HTMLVideoElement.prototype.requestVideoFrameCallback=function(t){const e=performance.now(),i=this.getVideoPlaybackQuality(),n=this.mozPresentedFrames||this.mozPaintedFrames||i.totalVideoFrames-i.droppedVideoFrames,r=(s,a)=>{const o=this.getVideoPlaybackQuality(),l=this.mozPresentedFrames||this.mozPaintedFrames||o.totalVideoFrames-o.droppedVideoFrames;if(l>n){const n=this.mozFrameDelay||o.totalFrameDelay-i.totalFrameDelay||0,r=a-s;t(a,{presentationTime:a+1e3*n,expectedDisplayTime:a+r,width:this.videoWidth,height:this.videoHeight,mediaTime:Math.max(0,this.currentTime||0)+r/1e3,presentedFrames:l,processingDuration:n}),delete this._rvfcpolyfillmap[e]}else this._rvfcpolyfillmap[e]=requestAnimationFrame(t=>r(a,t))};return this._rvfcpolyfillmap[e]=requestAnimationFrame(t=>r(e,t)),e},HTMLVideoElement.prototype.cancelVideoFrameCallback=function(t){cancelAnimationFrame(this._rvfcpolyfillmap[t]),delete this._rvfcpolyfillmap[t]})},10312:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports={SKIP_CHECK:-1,NORMAL:0,ADD:1,MULTIPLY:2,SCREEN:3,OVERLAY:4,DARKEN:5,LIGHTEN:6,COLOR_DODGE:7,COLOR_BURN:8,HARD_LIGHT:9,SOFT_LIGHT:10,DIFFERENCE:11,EXCLUSION:12,HUE:13,SATURATION:14,COLOR:15,LUMINOSITY:16,ERASE:17,SOURCE_IN:18,SOURCE_OUT:19,SOURCE_ATOP:20,DESTINATION_OVER:21,DESTINATION_IN:22,DESTINATION_OUT:23,DESTINATION_ATOP:24,LIGHTER:25,COPY:26,XOR:27}},29795:t=>{t.exports={DEFAULT:0,LINEAR:0,NEAREST:1}},68627:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @author Felipe Alfonso <@bitnenfer>\n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(19715),r=i(32880),s=i(83419),a=i(8054),o=i(50792),l=i(92503),h=i(56373),u=i(97480),c=i(69442),d=i(8443),f=i(61340),p=new s({Extends:o,initialize:function(t){o.call(this);var e=t.config;this.config={clearBeforeRender:e.clearBeforeRender,backgroundColor:e.backgroundColor,antialias:e.antialias,roundPixels:e.roundPixels,transparent:e.transparent},this.game=t,this.type=a.CANVAS,this.drawCount=0,this.width=0,this.height=0,this.gameCanvas=t.canvas;var i={alpha:e.transparent,desynchronized:e.desynchronized,willReadFrequently:!1};this.gameContext=e.context?e.context:this.gameCanvas.getContext(\"2d\",i),this.currentContext=this.gameContext,this.antialias=e.antialias,this.blendModes=h(),this.snapshotState={x:0,y:0,width:1,height:1,getPixel:!1,callback:null,type:\"image/png\",encoder:.92},this._tempMatrix1=new f,this._tempMatrix2=new f,this._tempMatrix3=new f,this.isBooted=!1,this.init()},init:function(){var t=this.game;t.events.once(d.BOOT,(function(){var t=this.config;if(!t.transparent){var e=this.gameContext,i=this.gameCanvas;e.fillStyle=t.backgroundColor.rgba,e.fillRect(0,0,i.width,i.height)}}),this),t.textures.once(c.READY,this.boot,this)},boot:function(){var t=this.game,e=t.scale.baseSize;this.width=e.width,this.height=e.height,this.isBooted=!0,t.scale.on(u.RESIZE,this.onResize,this),this.resize(e.width,e.height)},onResize:function(t,e){e.width===this.width&&e.height===this.height||this.resize(e.width,e.height)},resize:function(t,e){this.width=t,this.height=e,this.emit(l.RESIZE,t,e)},resetTransform:function(){this.currentContext.setTransform(1,0,0,1,0,0)},setBlendMode:function(t){return this.currentContext.globalCompositeOperation=t,this},setContext:function(t){return this.currentContext=t||this.gameContext,this},setAlpha:function(t){return this.currentContext.globalAlpha=t,this},preRender:function(){var t=this.gameContext,e=this.config,i=this.width,n=this.height;t.globalAlpha=1,t.globalCompositeOperation=\"source-over\",t.setTransform(1,0,0,1,0,0),this.emit(l.PRE_RENDER_CLEAR),e.clearBeforeRender&&(t.clearRect(0,0,i,n),e.transparent||(t.fillStyle=e.backgroundColor.rgba,t.fillRect(0,0,i,n))),t.save(),this.drawCount=0,this.emit(l.PRE_RENDER)},render:function(t,e,i){var r=e.length;this.emit(l.RENDER,t,i);var s=i.x,a=i.y,o=i.width,h=i.height,u=i.renderToTexture?i.context:t.sys.context;u.save(),this.game.scene.customViewports&&(u.beginPath(),u.rect(s,a,o,h),u.clip()),i.emit(n.PRE_RENDER,i),this.currentContext=u;var c=i.mask;c&&c.preRenderCanvas(this,null,i._maskCamera),i.transparent||(u.fillStyle=i.backgroundColor.rgba,u.fillRect(s,a,o,h)),u.globalAlpha=i.alpha,u.globalCompositeOperation=\"source-over\",this.drawCount+=r,i.renderToTexture&&i.emit(n.PRE_RENDER,i),i.matrix.copyToContext(u);for(var d=0;d=0?v=-(v+c):v<0&&(v=Math.abs(v)-c)),t.flipY&&(y>=0?y=-(y+d):y<0&&(y=Math.abs(y)-d))}var x=1,w=1;t.flipX&&(f||(v+=-e.realWidth+2*m),x=-1),t.flipY&&(f||(y+=-e.realHeight+2*g),w=-1);var T=t.x,S=t.y;if(i.roundPixels&&(T=Math.floor(T),S=Math.floor(S)),o.applyITRS(T,S,t.rotation,t.scaleX*x,t.scaleY*w),a.copyFrom(i.matrix),n?(a.multiplyWithOffset(n,-i.scrollX*t.scrollFactorX,-i.scrollY*t.scrollFactorY),o.e=T,o.f=S):(o.e-=i.scrollX*t.scrollFactorX,o.f-=i.scrollY*t.scrollFactorY),a.multiply(o),i.renderRoundPixels&&(a.e=Math.floor(a.e+.5),a.f=Math.floor(a.f+.5)),s.save(),a.setToContext(s),s.globalCompositeOperation=this.blendModes[t.blendMode],s.globalAlpha=r,s.imageSmoothingEnabled=!e.source.scaleMode,t.mask&&t.mask.preRenderCanvas(this,t,i),c>0&&d>0){var E=c/p,C=d/p;i.roundPixels&&(v=Math.floor(v+.5),y=Math.floor(y+.5),E+=.5,C+=.5),s.drawImage(e.source.image,h,u,c,d,v,y,E,C)}t.mask&&t.mask.postRenderCanvas(this,t,i),s.restore()}},destroy:function(){this.removeAllListeners(),this.game=null,this.gameCanvas=null,this.gameContext=null}});t.exports=p},55830:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports={CanvasRenderer:i(68627),GetBlendModes:i(56373),SetTransform:i(20926)}},56373:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(10312),r=i(89289);t.exports=function(){var t=[],e=r.supportNewBlendModes,i=\"source-over\";return t[n.NORMAL]=i,t[n.ADD]=\"lighter\",t[n.MULTIPLY]=e?\"multiply\":i,t[n.SCREEN]=e?\"screen\":i,t[n.OVERLAY]=e?\"overlay\":i,t[n.DARKEN]=e?\"darken\":i,t[n.LIGHTEN]=e?\"lighten\":i,t[n.COLOR_DODGE]=e?\"color-dodge\":i,t[n.COLOR_BURN]=e?\"color-burn\":i,t[n.HARD_LIGHT]=e?\"hard-light\":i,t[n.SOFT_LIGHT]=e?\"soft-light\":i,t[n.DIFFERENCE]=e?\"difference\":i,t[n.EXCLUSION]=e?\"exclusion\":i,t[n.HUE]=e?\"hue\":i,t[n.SATURATION]=e?\"saturation\":i,t[n.COLOR]=e?\"color\":i,t[n.LUMINOSITY]=e?\"luminosity\":i,t[n.ERASE]=\"destination-out\",t[n.SOURCE_IN]=\"source-in\",t[n.SOURCE_OUT]=\"source-out\",t[n.SOURCE_ATOP]=\"source-atop\",t[n.DESTINATION_OVER]=\"destination-over\",t[n.DESTINATION_IN]=\"destination-in\",t[n.DESTINATION_OUT]=\"destination-out\",t[n.DESTINATION_ATOP]=\"destination-atop\",t[n.LIGHTER]=\"lighter\",t[n.COPY]=\"copy\",t[n.XOR]=\"xor\",t}},20926:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(91296);t.exports=function(t,e,i,r,s){var a=r.alpha*i.alpha;if(a<=0)return!1;var o=n(i,r,s).calc;return e.globalCompositeOperation=t.blendModes[i.blendMode],e.globalAlpha=a,e.save(),o.setToContext(e),e.imageSmoothingEnabled=i.frame?!i.frame.source.scaleMode:t.antialias,!0}},63899:t=>{\n/**\n * @author Benjamin D. Richards \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports=\"losewebgl\"},6119:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports=\"postrender\"},48070:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports=\"prerender\"},15640:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports=\"render\"},8912:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports=\"resize\"},87124:t=>{\n/**\n * @author Benjamin D. Richards \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports=\"restorewebgl\"},92503:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports={LOSE_WEBGL:i(63899),POST_RENDER:i(6119),PRE_RENDER:i(48070),RENDER:i(15640),RESIZE:i(8912),RESTORE_WEBGL:i(87124)}},36909:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports={Events:i(92503),Snapshot:i(89966)},t.exports.Canvas=i(55830),t.exports.WebGL=i(4159)},32880:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(27919),r=i(40987),s=i(95540);t.exports=function(t,e){var i=s(e,\"callback\"),a=s(e,\"type\",\"image/png\"),o=s(e,\"encoder\",.92),l=Math.abs(Math.round(s(e,\"x\",0))),h=Math.abs(Math.round(s(e,\"y\",0))),u=Math.floor(s(e,\"width\",t.width)),c=Math.floor(s(e,\"height\",t.height));if(s(e,\"getPixel\",!1)){var d=t.getContext(\"2d\",{willReadFrequently:!1}).getImageData(l,h,1,1).data;i.call(null,new r(d[0],d[1],d[2],d[3]))}else if(0!==l||0!==h||u!==t.width||c!==t.height){var f=n.createWebGL(this,u,c),p=f.getContext(\"2d\",{willReadFrequently:!0});u>0&&c>0&&p.drawImage(t,l,h,u,c,0,0,u,c);var m=new Image;m.onerror=function(){i.call(null),n.remove(f)},m.onload=function(){i.call(null,m),n.remove(f)},m.src=f.toDataURL(a,o)}else{var g=new Image;g.onerror=function(){i.call(null)},g.onload=function(){i.call(null,g)},g.src=t.toDataURL(a,o)}}},88815:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(27919),r=i(40987),s=i(95540);t.exports=function(t,e){var i=t,a=s(e,\"callback\"),o=s(e,\"type\",\"image/png\"),l=s(e,\"encoder\",.92),h=Math.abs(Math.round(s(e,\"x\",0))),u=Math.abs(Math.round(s(e,\"y\",0))),c=s(e,\"getPixel\",!1),d=s(e,\"isFramebuffer\",!1),f=d?s(e,\"bufferWidth\",1):i.drawingBufferWidth,p=d?s(e,\"bufferHeight\",1):i.drawingBufferHeight;if(c){var m=new Uint8Array(4),g=d?u:p-u;i.readPixels(h,g,1,1,i.RGBA,i.UNSIGNED_BYTE,m),a.call(null,new r(m[0],m[1],m[2],m[3]))}else{var v=Math.floor(s(e,\"width\",f)),y=Math.floor(s(e,\"height\",p)),b=v*y*4,x=new Uint8Array(b);i.readPixels(h,p-u-y,v,y,i.RGBA,i.UNSIGNED_BYTE,x);for(var w=n.createWebGL(this,v,y),T=w.getContext(\"2d\",{willReadFrequently:!0}),S=T.getImageData(0,0,v,y),E=S.data,C=0;C{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports={Canvas:i(32880),WebGL:i(88815)}},7530:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(83419),r=i(36060),s=i(90330),a=i(82264),o=i(95540),l=i(32302),h=i(63448),u=i(31302),c=i(58918),d=i(14811),f=i(92651),p=i(96569),m=i(56527),g=i(57516),v=i(43439),y=i(81041),b=i(12385),x=i(7589),w=i(95428),T=i(72905),S=new n({initialize:function(t){this.game=t.game,this.renderer=t,this.classes=new s([[r.UTILITY_PIPELINE,x],[r.MULTI_PIPELINE,g],[r.BITMAPMASK_PIPELINE,u],[r.SINGLE_PIPELINE,b],[r.ROPE_PIPELINE,y],[r.LIGHT_PIPELINE,p],[r.POINTLIGHT_PIPELINE,v],[r.MOBILE_PIPELINE,m]]),this.postPipelineClasses=new s,this.pipelines=new s,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(t,e,i){var n=this.renderer,s=this.renderTargets;this.frameInc=Math.floor(o(t,\"frameInc\",32));var h,u,p=n.width,m=n.height,g=this.game.config.disablePreFX;if(this.game.config.disablePostFX||this.postPipelineClasses.setAll([[String(d.BARREL),c.Barrel],[String(d.BLOOM),c.Bloom],[String(d.BLUR),c.Blur],[String(d.BOKEH),c.Bokeh],[String(d.CIRCLE),c.Circle],[String(d.COLOR_MATRIX),c.ColorMatrix],[String(d.DISPLACEMENT),c.Displacement],[String(d.GLOW),c.Glow],[String(d.GRADIENT),c.Gradient],[String(d.PIXELATE),c.Pixelate],[String(d.SHADOW),c.Shadow],[String(d.SHINE),c.Shine],[String(d.VIGNETTE),c.Vignette],[String(d.WIPE),c.Wipe]]),!g){this.classes.set(r.FX_PIPELINE,f);for(var v=Math.min(p,m),y=Math.ceil(v/this.frameInc),b=1;b=0;i--){var n=e[i];n.active&&n.preBatch(t)}}},postBatch:function(t){if(t.hasPostPipeline){this.flush();for(var e=t.postPipelines,i=0;i=0;i--){var n=e[i];n.active&&n.preBatch(t)}}},postBatchCamera:function(t){if(t.hasPostPipeline){this.flush();for(var e=t.postPipelines,i=0;ithis.maxDimension)return this.targetIndex=e.length-3,e[this.targetIndex];var i=3*(h(t,this.frameInc,0,!0)-1);return this.targetIndex=i,e[i]},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}});t.exports=S},32302:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(83419),r=i(92503),s=new n({initialize:function(t,e,i,n,s,a,o,l,h){void 0===n&&(n=1),void 0===s&&(s=0),void 0===a&&(a=!0),void 0===o&&(o=!1),void 0===l&&(l=!0),void 0===h&&(h=!0),this.renderer=t,this.framebuffer=null,this.texture=null,this.width=0,this.height=0,this.scale=n,this.minFilter=s,this.autoClear=a,this.autoResize=!0,this.hasDepthBuffer=l,this.forceClamp=h,this.init(e,i),o?this.renderer.on(r.RESIZE,this.resize,this):this.autoResize=!1},init:function(t,e){var i=this.renderer;this.texture=i.createTextureFromSource(null,t,e,this.minFilter,this.forceClamp),this.framebuffer=i.createFramebuffer(t,e,this.texture,this.hasDepthBuffer),this.width=t,this.height=e},setAutoResize:function(t){return t&&!this.autoResize?(this.renderer.on(r.RESIZE,this.resize,this),this.autoResize=!0):!t&&this.autoResize&&(this.renderer.off(r.RESIZE,this.resize,this),this.autoResize=!1),this},resize:function(t,e){if(this.autoResize&&this.willResize(t,e)){var i=this.renderer;i.deleteFramebuffer(this.framebuffer),i.deleteTexture(this.texture),this.texture=i.createTextureFromSource(null,t,e,this.minFilter,this.forceClamp),this.framebuffer=i.createFramebuffer(t,e,this.texture,this.hasDepthBuffer),this.width=t,this.height=e}return this},willResize:function(t,e){return\"number\"==typeof t&&\"number\"==typeof e&&(t=Math.round(t*this.scale),e=Math.round(e*this.scale),t=Math.max(t,1),e=Math.max(e,1),t!==this.width||e!==this.height)},bind:function(t,e,i){void 0===t&&(t=!1);var n=this.renderer;if(t&&n.flush(),e&&i&&this.resize(e,i),n.pushFramebuffer(this.framebuffer,!1,!1),t&&this.adjustViewport(),this.autoClear){var r=this.renderer.gl;r.clearColor(0,0,0,0),r.clear(r.COLOR_BUFFER_BIT)}n.clearStencilMask()},adjustViewport:function(){var t=this.renderer.gl;t.viewport(0,0,this.width,this.height),t.disable(t.SCISSOR_TEST)},clear:function(t,e,i,n){var r=this.renderer,s=r.gl;r.pushFramebuffer(this.framebuffer),void 0!==t&&void 0!==e&&void 0!==i&&void 0!==n?(s.enable(s.SCISSOR_TEST),s.scissor(t,e,i,n)):s.disable(s.SCISSOR_TEST),s.clearColor(0,0,0,0),s.clear(s.COLOR_BUFFER_BIT),r.popFramebuffer(),r.resetScissor()},unbind:function(t){void 0===t&&(t=!1);var e=this.renderer;return t&&e.flush(),e.popFramebuffer()},destroy:function(){var t=this.renderer;t.off(r.RESIZE,this.resize,this),t.deleteFramebuffer(this.framebuffer),t.deleteTexture(this.texture),this.renderer=null,this.framebuffer=null,this.texture=null}});t.exports=s},70554:t=>{\n/**\n * @author Richard Davey \n * @author Felipe Alfonso <@bitnenfer>\n * @author Matthew Groves <@doormat>\n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports={getTintFromFloats:function(t,e,i,n){return((255&(255*n|0))<<24|(255&(255*t|0))<<16|(255&(255*e|0))<<8|255&(255*i|0))>>>0},getTintAppendFloatAlpha:function(t,e){return((255&(255*e|0))<<24|t)>>>0},getTintAppendFloatAlphaAndSwap:function(t,e){return((255&(255*e|0))<<24|(255&(0|t))<<16|(255&(t>>8|0))<<8|255&(t>>16|0))>>>0},getFloatsFromUintRGB:function(t){return[(255&(t>>16|0))/255,(255&(t>>8|0))/255,(255&(0|t))/255]},checkShaderMax:function(t,e){var i=Math.min(16,t.getParameter(t.MAX_TEXTURE_IMAGE_UNITS));return e&&-1!==e?Math.min(i,e):i},parseFragmentShaderMaxTextures:function(t,e){if(!t)return\"\";for(var i=\"\",n=0;n0&&(i+=\"\\n\\telse \"),n{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(83419),r=i(62644),s=i(50792),a=i(77085),o=i(95540),l=i(37867),h=i(92503),u=i(32302),c=i(70554),d=i(38683),f=new n({Extends:s,initialize:function(t){s.call(this);var e=t.game,i=e.renderer,n=i.gl;this.name=o(t,\"name\",\"WebGLPipeline\"),this.game=e,this.renderer=i,this.manager,this.gl=n,this.view=e.canvas,this.width=0,this.height=0,this.vertexCount=0,this.vertexCapacity=0,this.vertexData,this.vertexBuffer,this.activeBuffer,this.topology=o(t,\"topology\",n.TRIANGLES),this.bytes,this.vertexViewF32,this.vertexViewU32,this.active=!0,this.forceZero=o(t,\"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=t,this.glReset=!1,this.batch=[],this.currentBatch=null,this.currentTexture=null,this.currentUnit=0,this.activeTextures=[],this.resizeUniform=o(t,\"resizeUniform\",\"\")},boot:function(){var t,e=this.gl,i=this.config,n=this.renderer;this.isPostFX||(this.projectionMatrix=(new l).identity());var r=this.renderTargets,s=o(i,\"renderTarget\",!1);\"boolean\"==typeof s&&s&&(s=1);var c=n.width,d=n.height;if(\"number\"==typeof s)for(t=0;tx&&(x=b[t].vertexSize);var w=o(i,\"batchSize\",n.config.batchSize);this.vertexCapacity=6*w;var T=new ArrayBuffer(this.vertexCapacity*x);this.vertexData=T,this.bytes=new Uint8Array(T),this.vertexViewF32=new Float32Array(T),this.vertexViewU32=new Uint32Array(T);var S=o(i,\"vertices\",null);for(S?(this.vertexViewF32.set(S),this.vertexBuffer=n.createVertexBuffer(T,e.STATIC_DRAW)):this.vertexBuffer=n.createVertexBuffer(T.byteLength,e.DYNAMIC_DRAW),this.setVertexBuffer(),t=b.length-1;t>=0;t--)b[t].rebind();this.hasBooted=!0,n.on(h.RESIZE,this.resize,this),n.on(h.PRE_RENDER,this.onPreRender,this),n.on(h.RENDER,this.onRender,this),n.on(h.POST_RENDER,this.onPostRender,this),this.emit(a.BOOT,this),this.onBoot()},onBoot:function(){},onResize:function(){},setShader:function(t,e,i){var n=this.renderer;return t===this.currentShader&&n.currentProgram===this.currentShader.program||(this.flush(),this.setVertexBuffer(i)&&!e&&(e=!0),t.bind(e,!1),this.currentShader=t),this},getShaderByName:function(t){for(var e=this.shaders,i=0;i-1&&(p=b.substring(20))}m&&g&&f.push(new d(this,p,m,g,r(v)))}this.shaders=f}return 0===this.shaders.length?console.warn(\"Pipeline: \"+this.name+\" - Invalid shader config\"):this.currentShader=this.shaders[0],this},createBatch:function(t){return this.currentBatch={start:this.vertexCount,count:0,texture:[t],unit:0,maxUnit:0},this.currentUnit=0,this.currentTexture=t,this.batch.push(this.currentBatch),0},addTextureToBatch:function(t){var e=this.currentBatch;e&&(e.texture.push(t),e.unit++,e.maxUnit++)},pushBatch:function(t){if(!this.currentBatch||this.forceZero&&t!==this.currentTexture)return this.createBatch(t);if(t===this.currentTexture)return this.currentUnit;var e=this.currentBatch,i=e.texture.indexOf(t);return-1===i?e.texture.length===this.renderer.maxTextures?this.createBatch(t):(e.unit++,e.maxUnit++,e.texture.push(t),this.currentUnit=e.unit,this.currentTexture=t,e.unit):(this.currentUnit=i,this.currentTexture=t,i)},setGameObject:function(t,e){return void 0===e&&(e=t.frame),this.pushBatch(e.source.glTexture)},shouldFlush:function(t){return void 0===t&&(t=0),this.vertexCount+t>this.vertexCapacity},vertexAvailable:function(){return this.vertexCapacity-this.vertexCount},resize:function(t,e){t===this.width&&e===this.height||this.flush(),this.width=t,this.height=e;for(var i=this.renderTargets,n=0;n=0;i--){var n=e[i].rebind();t&&n!==t||(this.currentShader=n)}return this.activeTextures.length=0,this.emit(a.REBIND,this.currentShader),this.onActive(this.currentShader),this.onRebind(),this.glReset=!1,this},restoreContext:function(){var t=this.shaders,e=!!this.vertexBuffer;this.activeBuffer=null,this.activeTextures.length=0,this.batch.length=0,this.currentBatch=null,this.currentTexture=null,this.currentUnit=0,e&&this.setVertexBuffer();for(var i=0;i0){this.emit(a.BEFORE_FLUSH,this,t),this.onBeforeFlush(t);var e=this.gl,i=this.vertexCount,n=this.currentShader.vertexSize,r=this.topology;if(this.active){var s,o,l;this.setVertexBuffer(),i===this.vertexCapacity?e.bufferData(e.ARRAY_BUFFER,this.vertexData,e.DYNAMIC_DRAW):e.bufferSubData(e.ARRAY_BUFFER,0,this.bytes.subarray(0,i*n));var h=this.batch,u=this.activeTextures;if(this.forceZero)for(u[0]||e.activeTexture(e.TEXTURE0),s=0;s{\n/**\n * @author Richard Davey \n * @author Felipe Alfonso <@bitnenfer>\n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(95428),r=i(72905),s=i(19715),a=i(83419),o=i(8054),l=i(50792),h=i(92503),u=i(50030),c=i(37867),d=i(29747),f=i(7530),p=i(32302),m=i(97480),g=i(69442),v=i(70554),y=i(88815),b=i(26128),x=i(1482),w=i(82751),T=i(84387),S=i(93567),E=i(57183),C=new a({Extends:l,initialize:function(t){l.call(this);var e=t.config,i={alpha:e.transparent,desynchronized:e.desynchronized,depth:!0,antialias:e.antialiasGL,premultipliedAlpha:e.premultipliedAlpha,stencil:!0,failIfMajorPerformanceCaveat:e.failIfMajorPerformanceCaveat,powerPreference:e.powerPreference,preserveDrawingBuffer:e.preserveDrawingBuffer,willReadFrequently:!1};this.config={clearBeforeRender:e.clearBeforeRender,antialias:e.antialias,backgroundColor:e.backgroundColor,contextCreation:i,roundPixels:e.roundPixels,maxTextures:e.maxTextures,maxTextureSize:e.maxTextureSize,batchSize:e.batchSize,maxLights:e.maxLights,mipmapFilter:e.mipmapFilter},this.game=t,this.type=o.WEBGL,this.pipelines=null,this.width=0,this.height=0,this.canvas=t.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=d,this.contextRestoredHandler=d,this.previousContextLostHandler=d,this.previousContextRestoredHandler=d,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(t){var e,i=this.game,n=this.canvas,r=t.backgroundColor;if(!(e=i.config.context?i.config.context:n.getContext(\"webgl\",t.contextCreation)||n.getContext(\"experimental-webgl\",t.contextCreation))||e.isContextLost())throw this.contextLost=!0,new Error(\"WebGL unsupported\");this.gl=e,this.setExtensions(),this.setContextHandlers(),i.context=e;for(var s=0;s<=27;s++)this.blendModes.push({func:[e.ONE,e.ONE_MINUS_SRC_ALPHA],equation:e.FUNC_ADD});return this.blendModes[1].func=[e.ONE,e.DST_ALPHA],this.blendModes[2].func=[e.DST_COLOR,e.ONE_MINUS_SRC_ALPHA],this.blendModes[3].func=[e.ONE,e.ONE_MINUS_SRC_COLOR],this.blendModes[17]={func:[e.ZERO,e.ONE_MINUS_SRC_ALPHA],equation:e.FUNC_REVERSE_SUBTRACT},this.glFormats=[e.BYTE,e.SHORT,e.UNSIGNED_BYTE,e.UNSIGNED_SHORT,e.FLOAT],this.glFuncMap={mat2:{func:e.uniformMatrix2fv,length:1,matrix:!0},mat3:{func:e.uniformMatrix3fv,length:1,matrix:!0},mat4:{func:e.uniformMatrix4fv,length:1,matrix:!0},\"1f\":{func:e.uniform1f,length:1},\"1fv\":{func:e.uniform1fv,length:1},\"1i\":{func:e.uniform1i,length:1},\"1iv\":{func:e.uniform1iv,length:1},\"2f\":{func:e.uniform2f,length:2},\"2fv\":{func:e.uniform2fv,length:1},\"2i\":{func:e.uniform2i,length:2},\"2iv\":{func:e.uniform2iv,length:1},\"3f\":{func:e.uniform3f,length:3},\"3fv\":{func:e.uniform3fv,length:1},\"3i\":{func:e.uniform3i,length:3},\"3iv\":{func:e.uniform3iv,length:1},\"4f\":{func:e.uniform4f,length:4},\"4fv\":{func:e.uniform4fv,length:1},\"4i\":{func:e.uniform4i,length:4},\"4iv\":{func:e.uniform4iv,length:1}},t.maxTextures&&-1!==t.maxTextures||(t.maxTextures=e.getParameter(e.MAX_TEXTURE_IMAGE_UNITS)),t.maxTextureSize||(t.maxTextureSize=e.getParameter(e.MAX_TEXTURE_SIZE)),this.compression=this.getCompressedTextures(),e.disable(e.DEPTH_TEST),e.disable(e.CULL_FACE),e.enable(e.BLEND),e.clearColor(r.redGL,r.greenGL,r.blueGL,r.alphaGL),e.clear(e.COLOR_BUFFER_BIT),-1!==[\"NEAREST\",\"LINEAR\",\"NEAREST_MIPMAP_NEAREST\",\"LINEAR_MIPMAP_NEAREST\",\"NEAREST_MIPMAP_LINEAR\",\"LINEAR_MIPMAP_LINEAR\"].indexOf(t.mipmapFilter)&&(this.mipmapFilter=e[t.mipmapFilter]),this.maxTextures=v.checkShaderMax(e,t.maxTextures),this.textureIndexes=[],this.createTemporaryTextures(),this.pipelines=new f(this),this.setBlendMode(o.BlendModes.NORMAL),this.projectionMatrix=(new c).identity(),i.textures.once(g.READY,this.boot,this),this},boot:function(){var t=this.game,e=this.pipelines,i=t.scale.baseSize,n=i.width,r=i.height;this.width=n,this.height=r,this.isBooted=!0,this.renderTarget=new p(this,n,r,1,0,!0,!0),this.maskTarget=new p(this,n,r,1,0,!0,!0),this.maskSource=new p(this,n,r,1,0,!0,!0);var s=t.config;e.boot(s.pipeline,s.defaultPipeline,s.autoMobilePipeline),this.blankTexture=t.textures.getFrame(\"__DEFAULT\").glTexture,this.normalTexture=t.textures.getFrame(\"__NORMAL\").glTexture,this.whiteTexture=t.textures.getFrame(\"__WHITE\").glTexture;var a=this.gl;a.bindFramebuffer(a.FRAMEBUFFER,null),a.enable(a.SCISSOR_TEST),t.scale.on(m.RESIZE,this.onResize,this),this.resize(n,r)},setExtensions:function(){var t=this.gl,e=t.getSupportedExtensions();this.supportedExtensions=e,this.instancedArraysExtension=e.indexOf(\"ANGLE_instanced_arrays\")>-1?t.getExtension(\"ANGLE_instanced_arrays\"):null,this.vaoExtension=e.indexOf(\"OES_vertex_array_object\")>-1?t.getExtension(\"OES_vertex_array_object\"):null},setContextHandlers:function(t,e){this.previousContextLostHandler&&this.canvas.removeEventListener(\"webglcontextlost\",this.previousContextLostHandler,!1),this.previousContextRestoredHandler&&this.canvas.removeEventListener(\"webglcontextlost\",this.previousContextRestoredHandler,!1),this.contextLostHandler=\"function\"==typeof t?t.bind(this):this.dispatchContextLost.bind(this),this.contextRestoredHandler=\"function\"==typeof e?e.bind(this):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(t){this.contextLost=!0,console&&console.warn(\"WebGL Context lost. Renderer disabled\"),this.emit(h.LOSE_WEBGL,this),t.preventDefault()},dispatchContextRestored:function(t){var e=this.gl;if(e.isContextLost())console&&console.log(\"WebGL Context restored, but context is still lost\");else{this.currentProgram=null,this.currentFramebuffer=null,this.setBlendMode(o.BlendModes.NORMAL),e.disable(e.BLEND),e.disable(e.DEPTH_TEST),e.enable(e.CULL_FACE),this.compression=this.getCompressedTextures();var i=function(t){t.createResource()};n(this.glTextureWrappers,i),n(this.glBufferWrappers,i),n(this.glFramebufferWrappers,i),n(this.glProgramWrappers,i),n(this.glAttribLocationWrappers,i),n(this.glUniformLocationWrappers,i),this.createTemporaryTextures(),this.pipelines.restoreContext(),this.resize(this.game.scale.baseSize.width,this.game.scale.baseSize.height),this.setExtensions(),this.contextLost=!1,console&&console.warn(\"WebGL Context restored. Renderer running again.\"),this.emit(h.RESTORE_WEBGL,this),t.preventDefault()}},createTemporaryTextures:function(){for(var t=this.gl,e=0;e0&&n>0;if(a&&o){var l=a[0],h=a[1],u=a[2],c=a[3];o=l!==t||h!==e||u!==i||c!==n}o&&(this.flush(),s.scissor(t,r-e-n,i,n))},resetScissor:function(){var t=this.gl;t.enable(t.SCISSOR_TEST);var e=this.currentScissor;if(e){var i=e[0],n=e[1],r=e[2],s=e[3];r>0&&s>0&&t.scissor(i,this.drawingBufferHeight-n-s,r,s)}},popScissor:function(){var t=this.scissorStack;t.pop();var e=t[t.length-1];e&&this.setScissor(e[0],e[1],e[2],e[3]),this.currentScissor=e},hasActiveStencilMask:function(){var t=this.currentMask.mask,e=this.currentCameraMask.mask;return t&&t.isStencil||e&&e.isStencil},resetViewport:function(){var t=this.gl;t.viewport(0,0,this.width,this.height),this.drawingBufferHeight=t.drawingBufferHeight},setBlendMode:function(t,e){void 0===e&&(e=!1);var i=this.gl,n=this.blendModes[t];return!!(e||t!==o.BlendModes.SKIP_CHECK&&this.currentBlendMode!==t)&&(this.flush(),i.enable(i.BLEND),i.blendEquation(n.equation),n.func.length>2?i.blendFuncSeparate(n.func[0],n.func[1],n.func[2],n.func[3]):i.blendFunc(n.func[0],n.func[1]),this.currentBlendMode=t,!0)},addBlendMode:function(t,e){return this.blendModes.push({func:t,equation:e})-1},updateBlendMode:function(t,e,i){return this.blendModes[t]&&(this.blendModes[t].func=e,i&&(this.blendModes[t].equation=i)),this},removeBlendMode:function(t){return t>17&&this.blendModes[t]&&this.blendModes.splice(t,1),this},pushFramebuffer:function(t,e,i,n,r){return t===this.currentFramebuffer?this:(this.fboStack.push(t),this.setFramebuffer(t,e,i,n,r))},setFramebuffer:function(t,e,i,n,r){if(void 0===e&&(e=!1),void 0===i&&(i=!0),void 0===n&&(n=null),void 0===r&&(r=!1),t===this.currentFramebuffer)return this;var s=this.gl,a=this.width,o=this.height;return t&&t.renderTexture&&i?(a=t.renderTexture.width,o=t.renderTexture.height):this.flush(),t?s.bindFramebuffer(s.FRAMEBUFFER,t.webGLFramebuffer):s.bindFramebuffer(s.FRAMEBUFFER,null),i&&s.viewport(0,0,a,o),n&&s.framebufferTexture2D(s.FRAMEBUFFER,s.COLOR_ATTACHMENT0,s.TEXTURE_2D,n.webGLTexture,0),r&&(s.clearColor(0,0,0,0),s.clear(s.COLOR_BUFFER_BIT)),e&&(t?(this.drawingBufferHeight=o,this.pushScissor(0,0,a,o)):(this.drawingBufferHeight=this.height,this.popScissor())),this.currentFramebuffer=t,this},popFramebuffer:function(t,e){void 0===t&&(t=!1),void 0===e&&(e=!0);var i=this.fboStack;i.pop();var n=i[i.length-1];return n||(n=null),this.setFramebuffer(n,t,e),n},restoreFramebuffer:function(t,e){void 0===t&&(t=!1),void 0===e&&(e=!0);var i=this.fboStack,n=i[i.length-1];n||(n=null),this.currentFramebuffer=null,this.setFramebuffer(n,t,e)},setProgram:function(t){return t!==this.currentProgram&&(this.flush(),this.gl.useProgram(t.webGLProgram),this.currentProgram=t,!0)},resetProgram:function(){return this.gl.useProgram(this.currentProgram.webGLProgramWrapper),this},createTextureFromSource:function(t,e,i,n,r){void 0===r&&(r=!1);var s=this.gl,a=s.NEAREST,l=s.NEAREST,h=s.CLAMP_TO_EDGE;e=t?t.width:e,i=t?t.height:i;var c=u(e,i);if(c&&!r&&(h=s.REPEAT),n===o.ScaleModes.LINEAR&&this.config.antialias){var d=t&&t.compressed,f=!d&&c||d&&t.mipmaps.length>1;a=this.mipmapFilter&&f?this.mipmapFilter:s.LINEAR,l=s.LINEAR}return t||\"number\"!=typeof e||\"number\"!=typeof i?this.createTexture2D(0,a,l,h,h,s.RGBA,t):this.createTexture2D(0,a,l,h,h,s.RGBA,null,e,i)},createTexture2D:function(t,e,i,n,r,s,a,o,l,h,u,c){\"number\"!=typeof o&&(o=a?a.width:1),\"number\"!=typeof l&&(l=a?a.height:1);var d=new w(this.gl,t,e,i,n,r,s,a,o,l,h,u,c);return this.glTextureWrappers.push(d),d},createFramebuffer:function(t,e,i,n){this.currentFramebuffer=null;var r=new T(this.gl,t,e,i,n);return this.glFramebufferWrappers.push(r),r},beginBitmapMask:function(t,e){this.gl&&(this.flush(),this.maskTarget.bind(!0),this.currentCameraMask.mask!==t&&(this.currentMask.mask=t,this.currentMask.camera=e))},drawBitmapMask:function(t,e,i){this.flush(),this.maskSource.bind(),this.setBlendMode(0,!0),t.renderWebGL(this,t,e),this.maskSource.unbind(!0),this.maskTarget.unbind();var n=this.gl,r=this.getCurrentStencilMask();r?(n.enable(n.STENCIL_TEST),r.mask.applyStencil(this,r.camera,!0)):this.currentMask.mask=null,this.pipelines.set(i),n.activeTexture(n.TEXTURE0),n.bindTexture(n.TEXTURE_2D,this.maskTarget.texture.webGLTexture),n.activeTexture(n.TEXTURE1),n.bindTexture(n.TEXTURE_2D,this.maskSource.texture.webGLTexture)},createProgram:function(t,e){var i=new x(this.gl,t,e);return this.glProgramWrappers.push(i),i},createVertexBuffer:function(t,e){var i=this.gl,n=new b(i,t,i.ARRAY_BUFFER,e);return this.glBufferWrappers.push(n),n},createAttribLocation:function(t,e){var i=new S(this.gl,t,e);return this.glAttribLocationWrappers.push(i),i},createUniformLocation:function(t,e){var i=new E(this.gl,t,e);return this.glUniformLocationWrappers.push(i),i},createIndexBuffer:function(t,e){var i=this.gl,n=new b(i,t,i.ELEMENT_ARRAY_BUFFER,e);return this.glBufferWrappers.push(n),n},deleteTexture:function(t){if(t)return r(this.glTextureWrappers,t),t.destroy(),this},deleteFramebuffer:function(t){return t?(r(this.fboStack,t),r(this.glFramebufferWrappers,t),t.destroy(),this):this},deleteProgram:function(t){return t&&(r(this.glProgramWrappers,t),t.destroy()),this},deleteAttribLocation:function(t){return t&&(r(this.glAttribLocationWrappers,t),t.destroy()),this},deleteUniformLocation:function(t){return t&&(r(this.glUniformLocationWrappers,t),t.destroy()),this},deleteBuffer:function(t){return t?(r(this.glBufferWrappers,t),t.destroy(),this):this},preRenderCamera:function(t){var e=t.x,i=t.y,n=t.width,r=t.height,a=t.backgroundColor;t.emit(s.PRE_RENDER,t),this.pipelines.preBatchCamera(t),this.pushScissor(e,i,n,r),t.mask&&(this.currentCameraMask.mask=t.mask,this.currentCameraMask.camera=t._maskCamera,t.mask.preRenderWebGL(this,t,t._maskCamera)),a.alphaGL>0&&this.pipelines.setMulti().drawFillRect(e,i,n,r,v.getTintFromFloats(a.blueGL,a.greenGL,a.redGL,1),a.alphaGL)},getCurrentStencilMask:function(){var t=null,e=this.maskStack,i=this.currentCameraMask;return e.length>0?t=e[e.length-1]:i.mask&&i.mask.isStencil&&(t=i),t},postRenderCamera:function(t){var e=t.flashEffect,i=t.fadeEffect;if(e.isRunning||i.isRunning||i.isComplete){var n=this.pipelines.setMulti();e.postRenderWebGL(n,v.getTintFromFloats),i.postRenderWebGL(n,v.getTintFromFloats)}t.dirty=!1,this.popScissor(),t.mask&&(this.currentCameraMask.mask=null,t.mask.postRenderWebGL(this,t._maskCamera)),this.pipelines.postBatchCamera(t),t.emit(s.POST_RENDER,t)},preRender:function(){if(!this.contextLost){var t=this.gl;if(t.bindFramebuffer(t.FRAMEBUFFER,null),this.emit(h.PRE_RENDER_CLEAR),this.config.clearBeforeRender){var e=this.config.backgroundColor;t.clearColor(e.redGL,e.greenGL,e.blueGL,e.alphaGL),t.clear(t.COLOR_BUFFER_BIT|t.DEPTH_BUFFER_BIT|t.STENCIL_BUFFER_BIT)}t.enable(t.SCISSOR_TEST),this.currentScissor=this.defaultScissor,this.scissorStack.length=0,this.scissorStack.push(this.currentScissor),this.game.scene.customViewports&&t.scissor(0,this.drawingBufferHeight-this.height,this.width,this.height),this.currentMask.mask=null,this.currentCameraMask.mask=null,this.maskStack.length=0,this.emit(h.PRE_RENDER)}},render:function(t,e,i){if(!this.contextLost){var n=e.length;if(this.emit(h.RENDER,t,i),this.preRenderCamera(i),0===n)return this.setBlendMode(o.BlendModes.NORMAL),void this.postRenderCamera(i);this.currentType=\"\";for(var r=this.currentMask,s=0;s{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(83419),r=i(95428),s=i(95540),a=i(14500),o=new n({initialize:function(t,e,i,n,r){this.pipeline=t,this.name=e,this.renderer=t.renderer,this.gl=this.renderer.gl,this.fragSrc=n,this.vertSrc=i,this.program=this.renderer.createProgram(i,n),this.attributes,this.vertexComponentCount=0,this.vertexSize=0,this.uniforms={},this.createAttributes(r),this.createUniforms()},createAttributes:function(t){var e=0,i=0,n=[];this.vertexComponentCount=0;for(var r=0;r=0?(e.enableVertexAttribArray(p.webGLAttribLocation),e.vertexAttribPointer(p.webGLAttribLocation,l,h,f,n,u),o.enabled=!0,o.location=p):-1!==p.webGLAttribLocation&&e.disableVertexAttribArray(p.webGLAttribLocation)}else c?e.vertexAttribPointer(d.webGLAttribLocation,l,h,f,n,u):!c&&-1!==d&&d.webGLAttribLocation>-1&&(e.disableVertexAttribArray(d.webGLAttribLocation),o.location=-1)}return this},createUniforms:function(){var t,e,i,n=this.gl,r=this.program,s=this.uniforms,a=n.getProgramParameter(r.webGLProgram,n.ACTIVE_UNIFORMS);for(t=0;t0&&(e=e.substr(0,l),s.hasOwnProperty(e)||null!==(i=this.renderer.createUniformLocation(r,e))&&(s[e]={name:e,location:i,setter:null,value1:null,value2:null,value3:null,value4:null}))}}return this},syncUniforms:function(){var t=this.gl;for(var e in this.renderer.setProgram(this.program),this.uniforms){var i=this.uniforms[e];i.setter&&i.setter.call(t,i.location.webGLUniformLocation,i.value1,i.value2,i.value3,i.value4)}},hasUniform:function(t){return this.uniforms.hasOwnProperty(t)},resetUniform:function(t){var e=this.uniforms[t];return e&&(e.value1=null,e.value2=null,e.value3=null,e.value4=null),this},setUniform1:function(t,e,i,n){var r=this.uniforms[e];return r?((n||r.value1!==i)&&(r.setter||(r.setter=t),r.value1=i,this.renderer.setProgram(this.program),t.call(this.gl,r.location.webGLUniformLocation,i),this.pipeline.currentShader=this),this):this},setUniform2:function(t,e,i,n,r){var s=this.uniforms[e];return s?((r||s.value1!==i||s.value2!==n)&&(s.setter||(s.setter=t),s.value1=i,s.value2=n,this.renderer.setProgram(this.program),t.call(this.gl,s.location.webGLUniformLocation,i,n),this.pipeline.currentShader=this),this):this},setUniform3:function(t,e,i,n,r,s){var a=this.uniforms[e];return a?((s||a.value1!==i||a.value2!==n||a.value3!==r)&&(a.setter||(a.setter=t),a.value1=i,a.value2=n,a.value3=r,this.renderer.setProgram(this.program),t.call(this.gl,a.location.webGLUniformLocation,i,n,r),this.pipeline.currentShader=this),this):this},setUniform4:function(t,e,i,n,r,s,a){var o=this.uniforms[e];return o?((a||o.value1!==i||o.value2!==n||o.value3!==r||o.value4!==s)&&(o.setter||(o.setter=t),o.value1=i,o.value2=n,o.value3=r,o.value4=s,this.renderer.setProgram(this.program),t.call(this.gl,o.location.webGLUniformLocation,i,n,r,s),this.pipeline.currentShader=this),this):this},setBoolean:function(t,e){return this.setUniform1(this.gl.uniform1i,t,Number(e))},set1f:function(t,e){return this.setUniform1(this.gl.uniform1f,t,e)},set2f:function(t,e,i){return this.setUniform2(this.gl.uniform2f,t,e,i)},set3f:function(t,e,i,n){return this.setUniform3(this.gl.uniform3f,t,e,i,n)},set4f:function(t,e,i,n,r){return this.setUniform4(this.gl.uniform4f,t,e,i,n,r)},set1fv:function(t,e){return this.setUniform1(this.gl.uniform1fv,t,e,!0)},set2fv:function(t,e){return this.setUniform1(this.gl.uniform2fv,t,e,!0)},set3fv:function(t,e){return this.setUniform1(this.gl.uniform3fv,t,e,!0)},set4fv:function(t,e){return this.setUniform1(this.gl.uniform4fv,t,e,!0)},set1iv:function(t,e){return this.setUniform1(this.gl.uniform1iv,t,e,!0)},set2iv:function(t,e){return this.setUniform1(this.gl.uniform2iv,t,e,!0)},set3iv:function(t,e){return this.setUniform1(this.gl.uniform3iv,t,e,!0)},set4iv:function(t,e){return this.setUniform1(this.gl.uniform4iv,t,e,!0)},set1i:function(t,e){return this.setUniform1(this.gl.uniform1i,t,e)},set2i:function(t,e,i){return this.setUniform2(this.gl.uniform2i,t,e,i)},set3i:function(t,e,i,n){return this.setUniform3(this.gl.uniform3i,t,e,i,n)},set4i:function(t,e,i,n,r){return this.setUniform4(this.gl.uniform4i,t,e,i,n,r)},setMatrix2fv:function(t,e,i){return this.setUniform2(this.gl.uniformMatrix2fv,t,e,i,!0)},setMatrix3fv:function(t,e,i){return this.setUniform2(this.gl.uniformMatrix3fv,t,e,i,!0)},setMatrix4fv:function(t,e,i){return this.setUniform2(this.gl.uniformMatrix4fv,t,e,i,!0)},createProgram:function(t,e){return void 0===t&&(t=this.vertSrc),void 0===e&&(e=this.fragSrc),this.program&&this.renderer.deleteProgram(this.program),this.vertSrc=t,this.fragSrc=e,this.program=this.renderer.createProgram(t,e),this.createUniforms(),this.rebind()},destroy:function(){var t=this.renderer;r(this.uniforms,(function(e){t.deleteUniformLocation(e.location)})),this.uniforms=null,r(this.attributes,(function(e){t.deleteAttribLocation(e.location)})),this.attributes=null,t.deleteProgram(this.program),this.pipeline=null,this.renderer=null,this.gl=null,this.program=null}});t.exports=o},14500:t=>{t.exports={BYTE:{enum:5120,size:1},UNSIGNED_BYTE:{enum:5121,size:1},SHORT:{enum:5122,size:2},UNSIGNED_SHORT:{enum:5123,size:2},INT:{enum:5124,size:4},UNSIGNED_INT:{enum:5125,size:4},FLOAT:{enum:5126,size:4}}},4159:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(14500),r=i(79291),s={PipelineManager:i(7530),Pipelines:i(96615),RenderTarget:i(32302),Utils:i(70554),WebGLPipeline:i(29100),WebGLRenderer:i(74797),WebGLShader:i(38683),Wrappers:i(9503)};s=r(!1,s,n),t.exports=s},31302:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @author Felipe Alfonso <@bitnenfer>\n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(83419),r=i(95540),s=i(78908),a=i(85191),o=i(14500),l=i(29100),h=new n({Extends:l,initialize:function(t){t.fragShader=r(t,\"fragShader\",s),t.vertShader=r(t,\"vertShader\",a),t.batchSize=r(t,\"batchSize\",1),t.vertices=r(t,\"vertices\",[-1,1,-1,-7,7,1]),t.attributes=r(t,\"attributes\",[{name:\"inPosition\",size:2,type:o.FLOAT}]),l.call(this,t)},boot:function(){l.prototype.boot.call(this),this.set1i(\"uMainSampler\",0),this.set1i(\"uMaskSampler\",1)},resize:function(t,e){l.prototype.resize.call(this,t,e),this.set2f(\"uResolution\",t,e)},beginMask:function(t,e,i){this.renderer.beginBitmapMask(t,i)},endMask:function(t,e,i){var n=this.gl,r=this.renderer,s=t.bitmapMask;s&&n&&(r.drawBitmapMask(s,e,this),i&&this.set2f(\"uResolution\",i.width,i.height),this.set1i(\"uInvertMaskAlpha\",t.invertAlpha),n.drawArrays(this.topology,0,3),i&&this.set2f(\"uResolution\",this.width,this.height),n.bindTexture(n.TEXTURE_2D,null))}});t.exports=h},92651:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(83419),r=i(58918),s=i(14811),a=i(95540),o=i(43558),l=i(89350),h=i(70554),u=new n({Extends:o,initialize:function(t){t.shaders=[h.setGlowQuality(l.FXGlowFrag,t.game),l.FXShadowFrag,l.FXPixelateFrag,l.FXVignetteFrag,l.FXShineFrag,l.FXBlurLowFrag,l.FXBlurMedFrag,l.FXBlurHighFrag,l.FXGradientFrag,l.FXBloomFrag,l.ColorMatrixFrag,l.FXCircleFrag,l.FXBarrelFrag,l.FXDisplacementFrag,l.FXWipeFrag,l.FXBokehFrag],o.call(this,t);var e=this.game;this.glow=new r.Glow(e),this.shadow=new r.Shadow(e),this.pixelate=new r.Pixelate(e),this.vignette=new r.Vignette(e),this.shine=new r.Shine(e),this.gradient=new r.Gradient(e),this.circle=new r.Circle(e),this.barrel=new r.Barrel(e),this.wipe=new r.Wipe(e),this.bokeh=new r.Bokeh(e);var i=[];i[s.GLOW]=this.onGlow,i[s.SHADOW]=this.onShadow,i[s.PIXELATE]=this.onPixelate,i[s.VIGNETTE]=this.onVignette,i[s.SHINE]=this.onShine,i[s.BLUR]=this.onBlur,i[s.GRADIENT]=this.onGradient,i[s.BLOOM]=this.onBloom,i[s.COLOR_MATRIX]=this.onColorMatrix,i[s.CIRCLE]=this.onCircle,i[s.BARREL]=this.onBarrel,i[s.DISPLACEMENT]=this.onDisplacement,i[s.WIPE]=this.onWipe,i[s.BOKEH]=this.onBokeh,this.fxHandlers=i,this.source,this.target,this.swap},onDraw:function(t,e,i){this.source=t,this.target=e,this.swap=i;var n=t.width,r=t.height,s=this.tempSprite,a=this.fxHandlers;if(s&&s.preFX)for(var o=s.preFX.list,l=0;l{\n/**\n * @author Richard Davey \n * @author Felipe Alfonso <@bitnenfer>\n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(83419),r=i(95540),s=i(31063),a=i(57516),o=i(61340),l=i(26099),h=i(29100),u=new n({Extends:a,initialize:function(t){var e=r(t,\"fragShader\",s);t.fragShader=e.replace(\"%LIGHT_COUNT%\",t.game.renderer.config.maxLights),a.call(this,t),this.inverseRotationMatrix=new Float32Array([1,0,0,0,1,0,0,0,1]),this.currentNormalMap,this.lightsActive=!0,this.tempVec2=new l,this._tempMatrix=new o,this._tempMatrix2=new o},boot:function(){h.prototype.boot.call(this)},onRender:function(t,e){var i=t.sys.lights;if(this.lightsActive=!1,i&&i.active){var n,r=i.getLights(e),s=r.length;this.lightsActive=!0;var a=this.renderer.height,o=e.matrix,l=this.tempVec2;for(this.set1i(\"uMainSampler\",0),this.set1i(\"uNormSampler\",1),this.set2f(\"uResolution\",this.width/2,this.height/2),this.set4f(\"uCamera\",e.x,e.y,e.rotation,e.zoom),this.set3f(\"uAmbientLightColor\",i.ambientColor.r,i.ambientColor.g,i.ambientColor.b),this.set1i(\"uLightCount\",s),n=0;n0&&this.flush();var e=this.inverseRotationMatrix;if(t){var i=-t,n=Math.cos(i),r=Math.sin(i);e[1]=r,e[3]=-r,e[0]=e[4]=n}else e[0]=e[4]=1,e[1]=e[3]=0;this.setMatrix3fv(\"uInverseRotationMatrix\",!1,e),this.currentNormalMapRotation=t}},setTexture2D:function(t,e){var i=this.renderer;void 0===t&&(t=i.whiteTexture);var n=this.getNormalMap(e);this.isNewNormalMap(t,n)&&(this.flush(),this.createBatch(t),this.addTextureToBatch(n),this.currentNormalMap=n);var r=0;return e&&e.parentContainer?r=e.getWorldTransformMatrix(this._tempMatrix,this._tempMatrix2).rotationNormalized:e&&(r=e.rotation),null===this.currentBatch&&(this.createBatch(t),this.addTextureToBatch(n)),this.setNormalMapRotation(r),0},setGameObject:function(t,e){void 0===e&&(e=t.frame);var i=e.glTexture,n=this.getNormalMap(t);if(this.isNewNormalMap(i,n)&&(this.flush(),this.createBatch(i),this.addTextureToBatch(n),this.currentNormalMap=n),t.parentContainer){var r=t.getWorldTransformMatrix(this._tempMatrix,this._tempMatrix2);this.setNormalMapRotation(r.rotationNormalized)}else this.setNormalMapRotation(t.rotation);return null===this.currentBatch&&(this.createBatch(i),this.addTextureToBatch(n)),0},isNewNormalMap:function(t,e){return this.currentTexture!==t||this.currentNormalMap!==e},getNormalMap:function(t){var e;return t?(t.displayTexture?e=t.displayTexture.dataSource[t.displayFrame.sourceIndex]:t.texture?e=t.texture.dataSource[t.frame.sourceIndex]:t.tileset&&(e=Array.isArray(t.tileset)?t.tileset[0].image.dataSource[0]:t.tileset.image.dataSource[0]),e?e.glTexture:this.renderer.normalTexture):this.renderer.normalTexture},batchSprite:function(t,e,i){this.lightsActive&&a.prototype.batchSprite.call(this,t,e,i)},batchTexture:function(t,e,i,n,r,s,o,l,h,u,c,d,f,p,m,g,v,y,b,x,w,T,S,E,C,A,_,k,P,M,D,O){this.lightsActive&&a.prototype.batchTexture.call(this,t,e,i,n,r,s,o,l,h,u,c,d,f,p,m,g,v,y,b,x,w,T,S,E,C,A,_,k,P,M,D,O)},batchTextureFrame:function(t,e,i,n,r,s,o){this.lightsActive&&a.prototype.batchTextureFrame.call(this,t,e,i,n,r,s,o)}});t.exports=u},56527:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(83419),r=i(95540),s=i(57516),a=i(45561),o=i(60722),l=i(14500),h=i(29100),u=new n({Extends:s,initialize:function(t){t.fragShader=r(t,\"fragShader\",a),t.vertShader=r(t,\"vertShader\",o),t.attributes=r(t,\"attributes\",[{name:\"inPosition\",size:2},{name:\"inTexCoord\",size:2},{name:\"inTexId\"},{name:\"inTintEffect\"},{name:\"inTint\",size:4,type:l.UNSIGNED_BYTE,normalized:!0}]),t.forceZero=!0,t.resizeUniform=\"uResolution\",s.call(this,t)},boot:function(){h.prototype.boot.call(this);var t=this.renderer;this.set1i(\"uMainSampler\",0),this.set2f(\"uResolution\",t.width,t.height)}});t.exports=u},57516:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @author Felipe Alfonso <@bitnenfer>\n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(83419),r=i(94811),s=i(95540),a=i(98840),o=i(44667),l=i(61340),h=i(70554),u=i(14500),c=i(29100),d=new n({Extends:c,initialize:function(t){var e=t.game.renderer,i=s(t,\"fragShader\",a);t.fragShader=h.parseFragmentShaderMaxTextures(i,e.maxTextures),t.vertShader=s(t,\"vertShader\",o),t.attributes=s(t,\"attributes\",[{name:\"inPosition\",size:2},{name:\"inTexCoord\",size:2},{name:\"inTexId\"},{name:\"inTintEffect\"},{name:\"inTint\",size:4,type:u.UNSIGNED_BYTE,normalized:!0}]),t.resizeUniform=\"uResolution\",c.call(this,t),this._tempMatrix1=new l,this._tempMatrix2=new l,this._tempMatrix3=new l,this.calcMatrix=new l,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(){c.prototype.boot.call(this);var t=this.renderer;this.set1iv(\"uMainSampler\",t.textureIndexes),this.set2f(\"uResolution\",t.width,t.height)},batchSprite:function(t,e,i){this.manager.set(this,t);var n=this._tempMatrix1,r=this._tempMatrix2,s=this._tempMatrix3,a=t.frame,o=a.glTexture,l=a.u0,u=a.v0,c=a.u1,d=a.v1,f=a.x,p=a.y,m=a.cutWidth,g=a.cutHeight,v=a.customPivot,y=t.displayOriginX,b=t.displayOriginY,x=-y+f,w=-b+p;if(t.isCropped){var T=t._crop;T.flipX===t.flipX&&T.flipY===t.flipY||a.updateCropUVs(T,t.flipX,t.flipY),l=T.u0,u=T.v0,c=T.u1,d=T.v1,m=T.width,g=T.height,x=-y+(f=T.x),w=-b+(p=T.y)}var S=1,E=1;t.flipX&&(v||(x+=-a.realWidth+2*y),S=-1),t.flipY&&(v||(w+=-a.realHeight+2*b),E=-1);var C=t.x,A=t.y;e.roundPixels&&(C=Math.floor(C),A=Math.floor(A)),r.applyITRS(C,A,t.rotation,t.scaleX*S,t.scaleY*E),n.copyFrom(e.matrix),i?(n.multiplyWithOffset(i,-e.scrollX*t.scrollFactorX,-e.scrollY*t.scrollFactorY),r.e=C,r.f=A):(r.e-=e.scrollX*t.scrollFactorX,r.f-=e.scrollY*t.scrollFactorY),n.multiply(r,s);var _=s.setQuad(x,w,x+m,w+g,e.renderRoundPixels),k=h.getTintAppendFloatAlpha,P=e.alpha,M=k(t.tintTopLeft,P*t._alphaTL),D=k(t.tintTopRight,P*t._alphaTR),O=k(t.tintBottomLeft,P*t._alphaBL),R=k(t.tintBottomRight,P*t._alphaBR);this.shouldFlush(6)&&this.flush();var I=this.setGameObject(t,a);this.manager.preBatch(t),this.batchQuad(t,_[0],_[1],_[2],_[3],_[4],_[5],_[6],_[7],l,u,c,d,M,D,O,R,t.tintFill,o,I),this.manager.postBatch(t)},batchTexture:function(t,e,i,n,r,s,a,o,l,h,u,c,d,f,p,m,g,v,y,b,x,w,T,S,E,C,A,_,k,P,M,D,O){void 0===O&&(O=!1),this.manager.set(this,t);var R=this._tempMatrix1,I=this._tempMatrix2,F=this._tempMatrix3,L=v/i+A,N=y/n+_,B=(v+b)/i+A,z=(y+x)/n+_,j=a,U=o,V=-m,G=-g;if(t.isCropped){var H=t._crop,Y=H.width,X=H.height;j=Y,U=X,a=Y,o=X;var W=v=H.x,q=y=H.y;c&&(W=b-H.x-Y),d&&(q=x-H.y-X),L=W/i+A,N=q/n+_,B=(W+Y)/i+A,z=(q+X)/n+_,V=-m+v,G=-g+y}c&&(j*=-1,V+=a),(d^=!M&&e.isRenderTexture?1:0)&&(U*=-1,G+=o),k.roundPixels&&(r=Math.floor(r),s=Math.floor(s)),I.applyITRS(r,s,u,l,h),R.copyFrom(k.matrix),P?(R.multiplyWithOffset(P,-k.scrollX*f,-k.scrollY*p),I.e=r,I.f=s):(I.e-=k.scrollX*f,I.f-=k.scrollY*p),R.multiply(I,F);var $=F.setQuad(V,G,V+j,G+U,k.renderRoundPixels);null==D&&(D=this.setTexture2D(e)),t&&!O&&this.manager.preBatch(t),this.batchQuad(t,$[0],$[1],$[2],$[3],$[4],$[5],$[6],$[7],L,N,B,z,w,T,S,E,C,e,D),t&&!O&&this.manager.postBatch(t)},batchTextureFrame:function(t,e,i,n,r,s,a){this.manager.set(this);var o=this._tempMatrix1.copyFrom(s),l=this._tempMatrix2;a?o.multiply(a,l):l=o;var u=l.setQuad(e,i,e+t.width,i+t.height),c=this.setTexture2D(t.source.glTexture);n=h.getTintAppendFloatAlpha(n,r),this.batchQuad(null,u[0],u[1],u[2],u[3],u[4],u[5],u[6],u[7],t.u0,t.v0,t.u1,t.v1,n,n,n,n,0,t.glTexture,c)},batchFillRect:function(t,e,i,n,r,s){this.renderer.pipelines.set(this);var a=this.calcMatrix;s&&s.multiply(r,a);var o=a.setQuad(t,e,t+i,e+n),l=this.fillTint;this.batchQuad(null,o[0],o[1],o[2],o[3],o[4],o[5],o[6],o[7],0,0,1,1,l.TL,l.TR,l.BL,l.BR,2)},batchFillTriangle:function(t,e,i,n,r,s,a,o){this.renderer.pipelines.set(this);var l=this.calcMatrix;o&&o.multiply(a,l);var h=l.getX(t,e),u=l.getY(t,e),c=l.getX(i,n),d=l.getY(i,n),f=l.getX(r,s),p=l.getY(r,s),m=this.fillTint;this.batchTri(null,h,u,c,d,f,p,0,0,1,1,m.TL,m.TR,m.BL,2)},batchStrokeTriangle:function(t,e,i,n,r,s,a,o,l){var h=this.tempTriangle;h[0].x=t,h[0].y=e,h[0].width=a,h[1].x=i,h[1].y=n,h[1].width=a,h[2].x=r,h[2].y=s,h[2].width=a,h[3].x=t,h[3].y=e,h[3].width=a,this.batchStrokePath(h,a,!1,o,l)},batchFillPath:function(t,e,i){this.renderer.pipelines.set(this);var n=this.calcMatrix;i&&i.multiply(e,n);for(var s,a,o=t.length,l=this.polygonCache,h=this.fillTint.TL,u=this.fillTint.TR,c=this.fillTint.BL,d=0;d0&&j[4]?this.batchQuad(null,R,I,P,M,j[0],j[1],j[2],j[3],0,0,1,1,L,N,B,z,2):(U[0]=R,U[1]=I,U[2]=P,U[3]=M,U[4]=1),l&&U[4]?this.batchQuad(null,_,k,D,O,U[0],U[1],U[2],U[3],0,0,1,1,L,N,B,z,2):(j[0]=_,j[1]=k,j[2]=D,j[3]=O,j[4]=1)}}},destroy:function(){return this._tempMatrix1.destroy(),this._tempMatrix2.destroy(),this._tempMatrix3.destroy(),this._tempMatrix1=null,this._tempMatrix1=null,this._tempMatrix1=null,c.prototype.destroy.call(this),this}});t.exports=d},43439:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(83419),r=i(95540),s=i(4127),a=i(89924),o=i(29100),l=new n({Extends:o,initialize:function(t){t.vertShader=r(t,\"vertShader\",a),t.fragShader=r(t,\"fragShader\",s),t.attributes=r(t,\"attributes\",[{name:\"inPosition\",size:2},{name:\"inLightPosition\",size:2},{name:\"inLightRadius\"},{name:\"inLightAttenuation\"},{name:\"inLightColor\",size:4}]),o.call(this,t)},onRender:function(t,e){this.set2f(\"uResolution\",this.width,this.height),this.set1f(\"uCameraZoom\",e.zoom)},batchPointLight:function(t,e,i,n,r,s,a,o,l,h,u,c){var d=t.color,f=t.intensity,p=t.radius,m=t.attenuation,g=d.r*f,v=d.g*f,y=d.b*f,b=e.alpha*t.alpha;this.shouldFlush(6)&&this.flush(),this.currentBatch||this.setTexture2D(),this.batchLightVert(i,n,u,c,p,m,g,v,y,b),this.batchLightVert(r,s,u,c,p,m,g,v,y,b),this.batchLightVert(a,o,u,c,p,m,g,v,y,b),this.batchLightVert(i,n,u,c,p,m,g,v,y,b),this.batchLightVert(a,o,u,c,p,m,g,v,y,b),this.batchLightVert(l,h,u,c,p,m,g,v,y,b),this.currentBatch.count=this.vertexCount-this.currentBatch.start},batchLightVert:function(t,e,i,n,r,s,a,o,l,h){var u=this.vertexViewF32,c=this.vertexCount*this.currentShader.vertexComponentCount-1;u[++c]=t,u[++c]=e,u[++c]=i,u[++c]=n,u[++c]=r,u[++c]=s,u[++c]=a,u[++c]=o,u[++c]=l,u[++c]=h,this.vertexCount++}});t.exports=l},84057:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(83419),r=i(89422),s=i(95540),a=i(27681),o=i(49627),l=i(29100),h=new n({Extends:l,initialize:function(t){t.renderTarget=s(t,\"renderTarget\",1),t.fragShader=s(t,\"fragShader\",a),t.vertShader=s(t,\"vertShader\",o),t.attributes=s(t,\"attributes\",[{name:\"inPosition\",size:2},{name:\"inTexCoord\",size:2}]),t.batchSize=1,t.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],l.call(this,t),this.isPostFX=!0,this.gameObject,this.controller,this.colorMatrix=new r,this.fullFrame1,this.fullFrame2,this.halfFrame1,this.halfFrame2,this.renderer.isBooted&&(this.manager=this.renderer.pipelines)},bootFX:function(){l.prototype.boot.call(this);var t=this.manager.UTILITY_PIPELINE;this.fullFrame1=t.fullFrame1,this.fullFrame2=t.fullFrame2,this.halfFrame1=t.halfFrame1,this.halfFrame2=t.halfFrame2;var e=this.renderer;this.set1i(\"uMainSampler\",0),this.set2f(\"uResolution\",e.width,e.height);for(var i=this.renderTargets,n=0;n{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(10312),r=i(67502),s=i(83419),a=i(96293),o=i(95540),l=i(57516),h=i(27681),u=i(87841),c=i(32302),d=i(45561),f=i(60722),p=i(29100),m=new s({Extends:l,initialize:function(t){var e=o(t,\"fragShader\",h),i=o(t,\"vertShader\",f),n=o(t,\"drawShader\",h),r=[{name:\"DrawSprite\",fragShader:d,vertShader:f},{name:\"CopySprite\",fragShader:e,vertShader:i},{name:\"DrawGame\",fragShader:n,vertShader:f},{name:\"ColorMatrix\",fragShader:a}],s=o(t,\"shaders\",[]);t.shaders=r.concat(s),t.vertShader||(t.vertShader=i),t.batchSize=1,l.call(this,t),this.isPreFX=!0,this.customMainSampler=null,this.drawSpriteShader,this.copyShader,this.gameShader,this.colorMatrixShader,this.quadVertexData,this.quadVertexBuffer,this.quadVertexViewF32,this.spriteBounds=new u,this.targetBounds=new u,this.fsTarget,this.tempSprite,this.renderer.isBooted&&(this.manager=this.renderer.pipelines,this.boot())},boot:function(){p.prototype.boot.call(this);var t=this.shaders,e=this.renderer;this.drawSpriteShader=t[0],this.copyShader=t[1],this.gameShader=t[2],this.colorMatrixShader=t[3],this.fsTarget=new c(e,e.width,e.height,1,0,!0,!0),this.renderTargets=this.manager.renderTargets.concat(this.fsTarget);var i=new ArrayBuffer(168);this.quadVertexData=i,this.quadVertexViewF32=new Float32Array(i),this.quadVertexBuffer=e.createVertexBuffer(i,this.gl.STATIC_DRAW),this.onResize(e.width,e.height),this.currentShader=this.copyShader,this.set2f(\"uResolution\",e.width,e.height)},onResize:function(t,e){var i=this.quadVertexViewF32;i[1]=e,i[22]=e,i[14]=t,i[28]=t,i[35]=t,i[36]=e},batchQuad:function(t,e,i,n,s,a,o,l,h,u,c,d,f,p,m,g,v,y,b){var x=Math.min(e,n,a,l),w=Math.min(i,s,o,h),T=Math.max(e,n,a,l)-x,S=Math.max(i,s,o,h)-w,E=this.spriteBounds.setTo(x,w,T,S),C=t?t.preFX.padding:0,A=T+2*C,_=S+2*C,k=Math.abs(Math.max(A,_)),P=this.manager.getRenderTarget(k),M=this.targetBounds.setTo(0,0,P.width,P.height);r(M,Math.round(E.centerX),Math.round(E.centerY)),this.tempSprite=t;var D=this.gl,O=this.renderer;O.clearStencilMask(),this.setShader(this.drawSpriteShader),this.set1i(\"uMainSampler\",0),this.set2f(\"uResolution\",O.width,O.height),this.flipProjectionMatrix(!0),t&&(this.onDrawSprite(t,P),t.preFX.onFX(this));var R=this.fsTarget;return this.flush(),D.viewport(0,0,O.width,O.height),D.bindFramebuffer(D.FRAMEBUFFER,R.framebuffer.webGLFramebuffer),D.framebufferTexture2D(D.FRAMEBUFFER,D.COLOR_ATTACHMENT0,D.TEXTURE_2D,R.texture.webGLTexture,0),D.clearColor(0,0,0,0),D.clear(D.COLOR_BUFFER_BIT),this.setTexture2D(b),this.batchVert(e,i,u,c,0,y,p),this.batchVert(n,s,u,f,0,y,g),this.batchVert(a,o,d,f,0,y,v),this.batchVert(e,i,u,c,0,y,p),this.batchVert(a,o,d,f,0,y,v),this.batchVert(l,h,d,c,0,y,m),this.flush(),this.flipProjectionMatrix(!1),D.activeTexture(D.TEXTURE0),D.bindTexture(D.TEXTURE_2D,P.texture.webGLTexture),D.copyTexSubImage2D(D.TEXTURE_2D,0,0,0,M.x,M.y,M.width,M.height),D.bindFramebuffer(D.FRAMEBUFFER,null),D.bindTexture(D.TEXTURE_2D,null),this.onBatch(t),this.currentShader=this.copyShader,this.onDraw(P,this.manager.getSwapRenderTarget(),this.manager.getAltSwapRenderTarget()),!0},onDrawSprite:function(){},onCopySprite:function(){},copySprite:function(t,e,i,r,s,a,o){void 0===i&&(i=!0),void 0===r&&(r=!0),void 0===s&&(s=!1),void 0===o&&(o=this.copyShader);var l=this.gl,h=this.tempSprite;a&&(o=this.colorMatrixShader),this.currentShader=o;var u=this.setVertexBuffer(this.quadVertexBuffer);o.bind(u,!1);var c=this.renderer;if(this.set1i(\"uMainSampler\",0),this.set2f(\"uResolution\",c.width,c.height),h.preFX.onFXCopy(this),this.onCopySprite(t,e,h),a&&(this.set1fv(\"uColorMatrix\",a.getData()),this.set1f(\"uAlpha\",a.alpha)),l.activeTexture(l.TEXTURE0),l.bindTexture(l.TEXTURE_2D,t.texture.webGLTexture),t.height>e.height)l.viewport(0,0,t.width,t.height),this.setTargetUVs(t,e);else{var d=e.height-t.height;l.viewport(0,d,t.width,t.height),this.resetUVs()}if(l.bindFramebuffer(l.FRAMEBUFFER,e.framebuffer.webGLFramebuffer),l.framebufferTexture2D(l.FRAMEBUFFER,l.COLOR_ATTACHMENT0,l.TEXTURE_2D,e.texture.webGLTexture,0),i&&(l.clearColor(0,0,0,Number(!r)),l.clear(l.COLOR_BUFFER_BIT)),s){var f=this.renderer.currentBlendMode;this.renderer.setBlendMode(n.ERASE)}l.bufferData(l.ARRAY_BUFFER,this.quadVertexData,l.STATIC_DRAW),l.drawArrays(l.TRIANGLES,0,6),s&&this.renderer.setBlendMode(f),l.bindFramebuffer(l.FRAMEBUFFER,null)},copy:function(t,e){var i=this.gl;this.set1i(\"uMainSampler\",0),i.activeTexture(i.TEXTURE0),i.bindTexture(i.TEXTURE_2D,t.texture.webGLTexture),i.viewport(0,0,t.width,t.height),this.setUVs(0,0,0,1,1,1,1,0),i.bindFramebuffer(i.FRAMEBUFFER,e.framebuffer.webGLFramebuffer),i.framebufferTexture2D(i.FRAMEBUFFER,i.COLOR_ATTACHMENT0,i.TEXTURE_2D,e.texture.webGLTexture,0),i.clearColor(0,0,0,0),i.clear(i.COLOR_BUFFER_BIT),i.bufferData(i.ARRAY_BUFFER,this.quadVertexData,i.STATIC_DRAW),i.drawArrays(i.TRIANGLES,0,6),i.bindFramebuffer(i.FRAMEBUFFER,null)},blendFrames:function(t,e,i,n,r){this.manager.blendFrames(t,e,i,n,r)},blendFramesAdditive:function(t,e,i,n,r){this.manager.blendFramesAdditive(t,e,i,n,r)},drawToGame:function(t){this.currentShader=null,this.setShader(this.copyShader),this.bindAndDraw(t)},copyToGame:function(t){this.currentShader=null,this.setShader(this.gameShader),this.bindAndDraw(t)},bindAndDraw:function(t){var e=this.gl,i=this.renderer;this.set1i(\"uMainSampler\",0),this.customMainSampler?this.setTexture2D(this.customMainSampler):this.setTexture2D(t.texture);var n=this._tempMatrix1.loadIdentity(),r=this.targetBounds.x,s=this.targetBounds.y,a=r+t.width,o=s+t.height,l=n.getX(r,s),h=n.getX(r,o),u=n.getX(a,o),c=n.getX(a,s),d=n.getY(r,s),f=n.getY(r,o),p=n.getY(a,o),m=n.getY(a,s),g=16777215;this.batchVert(l,d,0,0,0,0,g),this.batchVert(h,f,0,1,0,0,g),this.batchVert(u,p,1,1,0,0,g),this.batchVert(l,d,0,0,0,0,g),this.batchVert(u,p,1,1,0,0,g),this.batchVert(c,m,1,0,0,0,g),i.restoreFramebuffer(!1,!0),i.currentFramebuffer||e.viewport(0,0,i.width,i.height),i.restoreStencilMask(),this.flush(),this.tempSprite=null},onDraw:function(t){this.drawToGame(t)},setUVs:function(t,e,i,n,r,s,a,o){var l=this.quadVertexViewF32;l[2]=t,l[3]=e,l[9]=i,l[10]=n,l[16]=r,l[17]=s,l[23]=t,l[24]=e,l[30]=r,l[31]=s,l[37]=a,l[38]=o},setTargetUVs:function(t,e){var i=e.height/t.height;i=i>.5?.5-(i-.5):.5-i+.5,this.setUVs(0,i,0,1+i,1,1+i,1,i)},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,l.prototype.destroy.call(this),this}});t.exports=m},81041:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(83419),r=i(95540),s=i(57516),a=new n({Extends:s,initialize:function(t){t.topology=5,t.batchSize=r(t,\"batchSize\",256),s.call(this,t)}});t.exports=a},12385:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(83419),r=i(95540),s=i(57516),a=i(45561),o=i(60722),l=i(29100),h=new n({Extends:s,initialize:function(t){t.fragShader=r(t,\"fragShader\",a),t.vertShader=r(t,\"vertShader\",o),t.forceZero=!0,s.call(this,t)},boot:function(){l.prototype.boot.call(this);var t=this.renderer;this.set1i(\"uMainSampler\",0),this.set2f(\"uResolution\",t.width,t.height)}});t.exports=h},7589:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(35407),r=i(10312),s=i(83419),a=i(89422),o=i(96293),l=i(36682),h=i(95540),u=i(48247),c=i(49627),d=i(29100),f=new s({Extends:d,initialize:function(t){t.renderTarget=h(t,\"renderTarget\",[{scale:1,autoResize:!0},{scale:1,autoResize:!0},{scale:.5,autoResize:!0},{scale:.5,autoResize:!0}]),t.vertShader=h(t,\"vertShader\",c),t.shaders=h(t,\"shaders\",[{name:\"Copy\",fragShader:l},{name:\"AddBlend\",fragShader:n},{name:\"LinearBlend\",fragShader:u},{name:\"ColorMatrix\",fragShader:o}]),t.attributes=h(t,\"attributes\",[{name:\"inPosition\",size:2},{name:\"inTexCoord\",size:2}]),t.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],t.batchSize=1,d.call(this,t),this.colorMatrix=new a,this.copyShader,this.addShader,this.linearShader,this.colorMatrixShader,this.fullFrame1,this.fullFrame2,this.halfFrame1,this.halfFrame2},boot:function(){d.prototype.boot.call(this);var t=this.shaders,e=this.renderTargets;this.copyShader=t[0],this.addShader=t[1],this.linearShader=t[2],this.colorMatrixShader=t[3],this.fullFrame1=e[0],this.fullFrame2=e[1],this.halfFrame1=e[2],this.halfFrame2=e[3]},copyFrame:function(t,e,i,n,r){void 0===i&&(i=1),void 0===n&&(n=!0),void 0===r&&(r=!0);var s=this.gl;this.setShader(this.copyShader),this.set1i(\"uMainSampler\",0),this.set1f(\"uBrightness\",i),s.activeTexture(s.TEXTURE0),s.bindTexture(s.TEXTURE_2D,t.texture.webGLTexture),e?(s.viewport(0,0,e.width,e.height),s.bindFramebuffer(s.FRAMEBUFFER,e.framebuffer.webGLFramebuffer),s.framebufferTexture2D(s.FRAMEBUFFER,s.COLOR_ATTACHMENT0,s.TEXTURE_2D,e.texture.webGLTexture,0)):s.viewport(0,0,t.width,t.height),n&&(r?s.clearColor(0,0,0,0):s.clearColor(0,0,0,1),s.clear(s.COLOR_BUFFER_BIT)),s.bufferData(s.ARRAY_BUFFER,this.vertexData,s.STATIC_DRAW),s.drawArrays(s.TRIANGLES,0,6),s.bindFramebuffer(s.FRAMEBUFFER,null),s.bindTexture(s.TEXTURE_2D,null)},blitFrame:function(t,e,i,n,s,a,o){void 0===i&&(i=1),void 0===n&&(n=!0),void 0===s&&(s=!0),void 0===a&&(a=!1),void 0===o&&(o=!1);var l=this.gl;if(this.setShader(this.copyShader),this.set1i(\"uMainSampler\",0),this.set1f(\"uBrightness\",i),l.activeTexture(l.TEXTURE0),l.bindTexture(l.TEXTURE_2D,t.texture.webGLTexture),t.height>e.height)l.viewport(0,0,t.width,t.height),this.setTargetUVs(t,e);else{var h=e.height-t.height;l.viewport(0,h,t.width,t.height)}if(l.bindFramebuffer(l.FRAMEBUFFER,e.framebuffer.webGLFramebuffer),l.framebufferTexture2D(l.FRAMEBUFFER,l.COLOR_ATTACHMENT0,l.TEXTURE_2D,e.texture.webGLTexture,0),n&&(s?l.clearColor(0,0,0,0):l.clearColor(0,0,0,1),l.clear(l.COLOR_BUFFER_BIT)),a){var u=this.renderer.currentBlendMode;this.renderer.setBlendMode(r.ERASE)}o&&this.flipY(),l.bufferData(l.ARRAY_BUFFER,this.vertexData,l.STATIC_DRAW),l.drawArrays(l.TRIANGLES,0,6),a&&this.renderer.setBlendMode(u),l.bindFramebuffer(l.FRAMEBUFFER,null),l.bindTexture(l.TEXTURE_2D,null),this.resetUVs()},copyFrameRect:function(t,e,i,n,r,s,a,o){void 0===a&&(a=!0),void 0===o&&(o=!0);var l=this.gl;l.bindFramebuffer(l.FRAMEBUFFER,t.framebuffer.webGLFramebuffer),l.framebufferTexture2D(l.FRAMEBUFFER,l.COLOR_ATTACHMENT0,l.TEXTURE_2D,t.texture.webGLTexture,0),a&&(o?l.clearColor(0,0,0,0):l.clearColor(0,0,0,1),l.clear(l.COLOR_BUFFER_BIT)),l.activeTexture(l.TEXTURE0),l.bindTexture(l.TEXTURE_2D,e.texture.webGLTexture),l.copyTexSubImage2D(l.TEXTURE_2D,0,0,0,i,n,r,s),l.bindFramebuffer(l.FRAMEBUFFER,null),l.bindTexture(l.TEXTURE_2D,null)},copyToGame:function(t){var e=this.gl;this.setShader(this.copyShader),this.set1i(\"uMainSampler\",0),this.set1f(\"uBrightness\",1),this.renderer.popFramebuffer(),e.activeTexture(e.TEXTURE0),e.bindTexture(e.TEXTURE_2D,t.texture.webGLTexture),e.bufferData(e.ARRAY_BUFFER,this.vertexData,e.STATIC_DRAW),e.drawArrays(e.TRIANGLES,0,6)},drawFrame:function(t,e,i,n){void 0===i&&(i=!0),void 0===n&&(n=this.colorMatrix);var r=this.gl;this.setShader(this.colorMatrixShader),this.set1i(\"uMainSampler\",0),this.set1fv(\"uColorMatrix\",n.getData()),this.set1f(\"uAlpha\",n.alpha),r.activeTexture(r.TEXTURE0),r.bindTexture(r.TEXTURE_2D,t.texture.webGLTexture),e?(r.viewport(0,0,e.width,e.height),r.bindFramebuffer(r.FRAMEBUFFER,e.framebuffer.webGLFramebuffer),r.framebufferTexture2D(r.FRAMEBUFFER,r.COLOR_ATTACHMENT0,r.TEXTURE_2D,e.texture.webGLTexture,0)):r.viewport(0,0,t.width,t.height),i?r.clearColor(0,0,0,0):r.clearColor(0,0,0,1),r.clear(r.COLOR_BUFFER_BIT),r.bufferData(r.ARRAY_BUFFER,this.vertexData,r.STATIC_DRAW),r.drawArrays(r.TRIANGLES,0,6),r.bindFramebuffer(r.FRAMEBUFFER,null),r.bindTexture(r.TEXTURE_2D,null)},blendFrames:function(t,e,i,n,r,s){void 0===n&&(n=1),void 0===r&&(r=!0),void 0===s&&(s=this.linearShader);var a=this.gl;this.setShader(s),this.set1i(\"uMainSampler1\",0),this.set1i(\"uMainSampler2\",1),this.set1f(\"uStrength\",n),a.activeTexture(a.TEXTURE0),a.bindTexture(a.TEXTURE_2D,t.texture.webGLTexture),a.activeTexture(a.TEXTURE1),a.bindTexture(a.TEXTURE_2D,e.texture.webGLTexture),i?(a.bindFramebuffer(a.FRAMEBUFFER,i.framebuffer.webGLFramebuffer),a.framebufferTexture2D(a.FRAMEBUFFER,a.COLOR_ATTACHMENT0,a.TEXTURE_2D,i.texture.webGLTexture,0),a.viewport(0,0,i.width,i.height)):a.viewport(0,0,t.width,t.height),r?a.clearColor(0,0,0,0):a.clearColor(0,0,0,1),a.clear(a.COLOR_BUFFER_BIT),a.bufferData(a.ARRAY_BUFFER,this.vertexData,a.STATIC_DRAW),a.drawArrays(a.TRIANGLES,0,6),a.bindFramebuffer(a.FRAMEBUFFER,null),a.bindTexture(a.TEXTURE_2D,null)},blendFramesAdditive:function(t,e,i,n,r){this.blendFrames(t,e,i,n,r,this.addShader)},clearFrame:function(t,e){void 0===e&&(e=!0);var i=this.gl;i.viewport(0,0,t.width,t.height),i.bindFramebuffer(i.FRAMEBUFFER,t.framebuffer.webGLFramebuffer),e?i.clearColor(0,0,0,0):i.clearColor(0,0,0,1),i.clear(i.COLOR_BUFFER_BIT);var n=this.renderer.currentFramebuffer;i.bindFramebuffer(i.FRAMEBUFFER,n.webGLFramebuffer)},setUVs:function(t,e,i,n,r,s,a,o){var l=this.vertexViewF32;l[2]=t,l[3]=e,l[6]=i,l[7]=n,l[10]=r,l[11]=s,l[14]=t,l[15]=e,l[18]=r,l[19]=s,l[22]=a,l[23]=o},setTargetUVs:function(t,e){var i=e.height/t.height;i=i>.5?.5-(i-.5):.5-i+.5,this.setUVs(0,i,0,1+i,1,1+i,1,i)},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)}});t.exports=f},36060:t=>{t.exports={BITMAPMASK_PIPELINE:\"BitmapMaskPipeline\",LIGHT_PIPELINE:\"Light2D\",POINTLIGHT_PIPELINE:\"PointLightPipeline\",SINGLE_PIPELINE:\"SinglePipeline\",MULTI_PIPELINE:\"MultiPipeline\",ROPE_PIPELINE:\"RopePipeline\",GRAPHICS_PIPELINE:\"GraphicsPipeline\",POSTFX_PIPELINE:\"PostFXPipeline\",UTILITY_PIPELINE:\"UtilityPipeline\",MOBILE_PIPELINE:\"MobilePipeline\",FX_PIPELINE:\"FxPipeline\"}},84817:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports=\"pipelineafterflush\"},36712:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports=\"pipelinebeforeflush\"},40285:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports=\"pipelinebind\"},65918:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports=\"pipelineboot\"},92852:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports=\"pipelinedestroy\"},56072:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports=\"pipelinerebind\"},57566:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports=\"pipelineresize\"},77085:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports={AFTER_FLUSH:i(84817),BEFORE_FLUSH:i(36712),BIND:i(40285),BOOT:i(65918),DESTROY:i(92852),REBIND:i(56072),RESIZE:i(57566)}},54812:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(83419),r=i(99155),s=i(84057),a=new n({Extends:s,initialize:function(t){s.call(this,{game:t,fragShader:r}),this.amount=1},onPreRender:function(t,e){t=this.getController(t),this.set1f(\"amount\",t.amount,e)}});t.exports=a},67329:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(83419),r=i(24400),s=i(84057),a=new n({Extends:s,initialize:function(t){s.call(this,{game:t,fragShader:r}),this.steps=4,this.offsetX=1,this.offsetY=1,this.blurStrength=1,this.strength=1,this.glcolor=[1,1,1]},onPreRender:function(t){t=this.getController(t),this.set1f(\"strength\",t.blurStrength),this.set3fv(\"color\",t.glcolor)},onDraw:function(t){var e=this.getController(),i=this.fullFrame1,n=this.fullFrame2;this.copyFrame(t,n);for(var r=2/t.width*e.offsetX,s=2/t.height*e.offsetY,a=0;a{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(83419),r=i(41514),s=i(51078),a=i(94328),o=i(84057),l=new n({Extends:o,initialize:function(t){o.call(this,{game:t,shaders:[{name:\"Gaussian5\",fragShader:r},{name:\"Gaussian9\",fragShader:s},{name:\"Gaussian13\",fragShader:a}]}),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(t){var e=this.getController(),i=this.gl,n=this.fullFrame1,r=i.getParameter(i.FRAMEBUFFER_BINDING);this.bind(this.shaders[e.quality]),i.activeTexture(i.TEXTURE0),i.viewport(0,0,t.width,t.height),this.set1i(\"uMainSampler\",0),this.set2f(\"resolution\",t.width,t.height),this.set1f(\"strength\",e.strength),this.set3fv(\"color\",e.glcolor);for(var s=0;s{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(83419),r=i(90610),s=i(84057),a=new n({Extends:s,initialize:function(t){s.call(this,{game:t,fragShader:r}),this.isTiltShift=!1,this.strength=1,this.blurX=1,this.blurY=1,this.radius=.5,this.amount=1,this.contrast=.2},onPreRender:function(t,e,i,n){t=this.getController(t),this.set1f(\"radius\",t.radius,e),this.set1f(\"amount\",t.amount,e),this.set1f(\"contrast\",t.contrast,e),this.set1f(\"strength\",t.strength,e),this.set2f(\"blur\",t.blurX,t.blurY,e),this.setBoolean(\"isTiltShift\",t.isTiltShift,e),i&&n&&this.set2f(\"resolution\",i,n,e)},onDraw:function(t){this.set2f(\"resolution\",t.width,t.height),this.bindAndDraw(t)}});t.exports=a},89428:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(83419),r=i(91899),s=i(84057),a=new n({Extends:s,initialize:function(t){s.call(this,{game:t,fragShader:r}),this.scale=1,this.feather=.005,this.thickness=8,this.glcolor=[1,.2,.7],this.glcolor2=[1,0,0,.4]},onPreRender:function(t,e,i,n){t=this.getController(t),this.set1f(\"scale\",t.scale,e),this.set1f(\"feather\",t.feather,e),this.set1f(\"thickness\",t.thickness,e),this.set3fv(\"color\",t.glcolor,e),this.set4fv(\"backgroundColor\",t.glcolor2,e),i&&n&&this.set2f(\"resolution\",i,n,e)},onDraw:function(t){this.set2f(\"resolution\",t.width,t.height),this.bindAndDraw(t)}});t.exports=a},88904:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(83419),r=i(84057),s=new n({Extends:r,initialize:function(t){r.call(this,{game:t})},onDraw:function(t){var e=this.fullFrame1;this.controller?this.manager.drawFrame(t,e,!0,this.controller):this.drawFrame(t,e),this.copyToGame(e)}});t.exports=s},63563:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(83419),r=i(47838),s=i(84057),a=new n({Extends:s,initialize:function(t){s.call(this,{game:t,fragShader:r}),this.x=.005,this.y=.005,this.glTexture},onBoot:function(){this.setTexture(\"__WHITE\")},setTexture:function(t){var e=this.game.textures.getFrame(t);e&&(this.glTexture=e.glTexture)},onDraw:function(t){var e=this.getController(),i=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(t,i),this.copyToGame(i)}});t.exports=a},94045:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(83419),r=i(95540),s=i(98656),a=i(84057),o=i(70554),l=new n({Extends:a,initialize:function(t,e){var i=r(e,\"quality\",.1),n=r(e,\"distance\",10);a.call(this,{game:t,fragShader:o.setGlowQuality(s,t,i,n)}),this.outerStrength=4,this.innerStrength=0,this.knockout=!1,this.glcolor=[1,1,1,1]},onPreRender:function(t,e,i,n){t=this.getController(t),this.set1f(\"outerStrength\",t.outerStrength,e),this.set1f(\"innerStrength\",t.innerStrength,e),this.set4fv(\"glowColor\",t.glcolor,e),this.setBoolean(\"knockout\",t.knockout,e),i&&n&&this.set2f(\"resolution\",i,n,e)},onDraw:function(t){this.set2f(\"resolution\",t.width,t.height),this.bindAndDraw(t)}});t.exports=l},74088:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(83419),r=i(70463),s=i(84057),a=new n({Extends:s,initialize:function(t){s.call(this,{game:t,fragShader:r}),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(t,e){t=this.getController(t),this.set1f(\"alpha\",t.alpha,e),this.set1i(\"size\",t.size,e),this.set3fv(\"color1\",t.glcolor1,e),this.set3fv(\"color2\",t.glcolor2,e),this.set2f(\"positionFrom\",t.fromX,t.fromY,e),this.set2f(\"positionTo\",t.toX,t.toY,e)}});t.exports=a},99636:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(83419),r=i(50831),s=i(84057),a=new n({Extends:s,initialize:function(t){s.call(this,{game:t,fragShader:r}),this.amount=1},onPreRender:function(t,e,i,n){t=this.getController(t),this.set1f(\"amount\",t.amount,e),i&&n&&this.set2f(\"resolution\",i,n,e)},onDraw:function(t){this.set2f(\"resolution\",t.width,t.height),this.bindAndDraw(t)}});t.exports=a},34700:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(83419),r=i(92595),s=i(84057),a=new n({Extends:s,initialize:function(t){s.call(this,{game:t,fragShader:r}),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(t,e){var i=(t=this.getController(t)).samples;this.set1i(\"samples\",i,e),this.set1f(\"intensity\",t.intensity,e),this.set1f(\"decay\",t.decay,e),this.set1f(\"power\",t.power/i,e),this.set2f(\"lightPosition\",t.x,t.y,e),this.set4fv(\"color\",t.glcolor,e)}});t.exports=a},91157:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(83419),r=i(72464),s=i(84057),a=new n({Extends:s,initialize:function(t){s.call(this,{game:t,fragShader:r}),this.speed=.5,this.lineWidth=.5,this.gradient=3,this.reveal=!1},onPreRender:function(t,e,i,n){t=this.getController(t),this.setTime(\"time\",e),this.set1f(\"speed\",t.speed,e),this.set1f(\"lineWidth\",t.lineWidth,e),this.set1f(\"gradient\",t.gradient,e),this.setBoolean(\"reveal\",t.reveal,e),i&&n&&this.set2f(\"resolution\",i,n,e)},onDraw:function(t){this.set2f(\"resolution\",t.width,t.height),this.bindAndDraw(t)}});t.exports=a},27797:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(83419),r=i(39249),s=i(84057),a=new n({Extends:s,initialize:function(t){s.call(this,{game:t,fragShader:r}),this.x=.5,this.y=.5,this.radius=.5,this.strength=.5},onPreRender:function(t,e){t=this.getController(t),this.set1f(\"radius\",t.radius,e),this.set1f(\"strength\",t.strength,e),this.set2f(\"position\",t.x,t.y,e)}});t.exports=a},67603:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(83419),r=i(2878),s=i(84057),a=new n({Extends:s,initialize:function(t){s.call(this,{game:t,fragShader:r}),this.progress=0,this.wipeWidth=.1,this.direction=0,this.axis=0,this.reveal=!1},onPreRender:function(t,e){var i=(t=this.getController(t)).progress,n=t.wipeWidth,r=t.direction,s=t.axis;this.set4f(\"config\",i,n,r,s,e),this.setBoolean(\"reveal\",t.reveal,e)}});t.exports=a},58918:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n={Barrel:i(54812),Bloom:i(67329),Blur:i(8861),Bokeh:i(51051),Circle:i(89428),ColorMatrix:i(88904),Displacement:i(63563),Glow:i(94045),Gradient:i(74088),Pixelate:i(99636),Shadow:i(34700),Shine:i(91157),Vignette:i(27797),Wipe:i(67603)};t.exports=n},96615:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(36060),r=i(79291),s={FX:i(58918),BitmapMaskPipeline:i(31302),Events:i(77085),FXPipeline:i(92651),LightPipeline:i(96569),MobilePipeline:i(56527),MultiPipeline:i(57516),PointLightPipeline:i(43439),PostFXPipeline:i(84057),PreFXPipeline:i(43558),RopePipeline:i(81041),SinglePipeline:i(12385),UtilityPipeline:i(7589)};s=r(!1,s,n),t.exports=s},35407:t=>{t.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(\"\\n\")},78908:t=>{t.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(\"\\n\")},85191:t=>{t.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(\"\\n\")},96293:t=>{t.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(\"\\n\")},36682:t=>{t.exports=[\"#define SHADER_NAME PHASER_COPY_FS\",\"precision mediump float;\",\"uniform sampler2D uMainSampler;\",\"uniform float uBrightness;\",\"varying vec2 outTexCoord;\",\"void main ()\",\"{\",\" gl_FragColor = texture2D(uMainSampler, outTexCoord) * uBrightness;\",\"}\"].join(\"\\n\")},99155:t=>{t.exports=[\"#define SHADER_NAME BARREL_FS\",\"precision mediump float;\",\"uniform sampler2D uMainSampler;\",\"uniform float amount;\",\"varying vec2 outTexCoord;\",\"vec2 Distort(vec2 p)\",\"{\",\" float theta = atan(p.y, p.x);\",\" float radius = length(p);\",\" radius = pow(radius, amount);\",\" p.x = radius * cos(theta);\",\" p.y = radius * sin(theta);\",\" return 0.5 * (p + 1.0);\",\"}\",\"void main()\",\"{\",\" vec2 xy = 2.0 * outTexCoord - 1.0;\",\" vec2 texCoord = outTexCoord;\",\" if (length(xy) < 1.0)\",\" {\",\" texCoord = Distort(xy);\",\" }\",\" gl_FragColor = texture2D(uMainSampler, texCoord);\",\"}\"].join(\"\\n\")},24400:t=>{t.exports=[\"#define SHADER_NAME BLOOM_FS\",\"precision mediump float;\",\"uniform sampler2D uMainSampler;\",\"uniform vec2 offset;\",\"uniform float strength;\",\"uniform vec3 color;\",\"varying vec2 outTexCoord;\",\"void main ()\",\"{\",\" vec4 sum = texture2D(uMainSampler, outTexCoord) * 0.204164 * strength;\",\" sum = sum + texture2D(uMainSampler, outTexCoord + offset * 1.407333) * 0.304005;\",\" sum = sum + texture2D(uMainSampler, outTexCoord - offset * 1.407333) * 0.304005;\",\" sum = sum + texture2D(uMainSampler, outTexCoord + offset * 3.294215) * 0.093913;\",\" gl_FragColor = (sum + texture2D(uMainSampler, outTexCoord - offset * 3.294215) * 0.093913) * vec4(color, 1);\",\"}\"].join(\"\\n\")},94328:t=>{t.exports=[\"#define SHADER_NAME BLUR_HIGH_FS\",\"precision mediump float;\",\"uniform sampler2D uMainSampler;\",\"uniform vec2 resolution;\",\"uniform vec2 offset;\",\"uniform float strength;\",\"uniform vec3 color;\",\"varying vec2 outTexCoord;\",\"void main ()\",\"{\",\" vec2 uv = outTexCoord;\",\" vec4 col = vec4(0.0);\",\" vec2 off1 = vec2(1.411764705882353) * offset * strength;\",\" vec2 off2 = vec2(3.2941176470588234) * offset * strength;\",\" vec2 off3 = vec2(5.176470588235294) * offset * strength;\",\" col += texture2D(uMainSampler, uv) * 0.1964825501511404;\",\" col += texture2D(uMainSampler, uv + (off1 / resolution)) * 0.2969069646728344;\",\" col += texture2D(uMainSampler, uv - (off1 / resolution)) * 0.2969069646728344;\",\" col += texture2D(uMainSampler, uv + (off2 / resolution)) * 0.09447039785044732;\",\" col += texture2D(uMainSampler, uv - (off2 / resolution)) * 0.09447039785044732;\",\" col += texture2D(uMainSampler, uv + (off3 / resolution)) * 0.010381362401148057;\",\" col += texture2D(uMainSampler, uv - (off3 / resolution)) * 0.010381362401148057;\",\" gl_FragColor = col * vec4(color, 1.0);\",\"}\"].join(\"\\n\")},41514:t=>{t.exports=[\"#define SHADER_NAME BLUR_LOW_FS\",\"precision mediump float;\",\"uniform sampler2D uMainSampler;\",\"uniform vec2 resolution;\",\"uniform vec2 offset;\",\"uniform float strength;\",\"uniform vec3 color;\",\"varying vec2 outTexCoord;\",\"void main ()\",\"{\",\" vec2 uv = outTexCoord;\",\" vec4 col = vec4(0.0);\",\" vec2 offset = vec2(1.333) * offset * strength;\",\" col += texture2D(uMainSampler, uv) * 0.29411764705882354;\",\" col += texture2D(uMainSampler, uv + (offset / resolution)) * 0.35294117647058826;\",\" col += texture2D(uMainSampler, uv - (offset / resolution)) * 0.35294117647058826;\",\" gl_FragColor = col * vec4(color, 1.0);\",\"}\"].join(\"\\n\")},51078:t=>{t.exports=[\"#define SHADER_NAME BLUR_MED_FS\",\"precision mediump float;\",\"uniform sampler2D uMainSampler;\",\"uniform vec2 resolution;\",\"uniform vec2 offset;\",\"uniform float strength;\",\"uniform vec3 color;\",\"varying vec2 outTexCoord;\",\"void main ()\",\"{\",\" vec2 uv = outTexCoord;\",\" vec4 col = vec4(0.0);\",\" vec2 off1 = vec2(1.3846153846) * offset * strength;\",\" vec2 off2 = vec2(3.2307692308) * offset * strength;\",\" col += texture2D(uMainSampler, uv) * 0.2270270270;\",\" col += texture2D(uMainSampler, uv + (off1 / resolution)) * 0.3162162162;\",\" col += texture2D(uMainSampler, uv - (off1 / resolution)) * 0.3162162162;\",\" col += texture2D(uMainSampler, uv + (off2 / resolution)) * 0.0702702703;\",\" col += texture2D(uMainSampler, uv - (off2 / resolution)) * 0.0702702703;\",\" gl_FragColor = col * vec4(color, 1.0);\",\"}\"].join(\"\\n\")},90610:t=>{t.exports=[\"#define SHADER_NAME BOKEH_FS\",\"precision mediump float;\",\"#define ITERATIONS 100.0\",\"#define ONEOVER_ITR 1.0 / ITERATIONS\",\"#define PI 3.141596\",\"#define GOLDEN_ANGLE 2.39996323\",\"uniform sampler2D uMainSampler;\",\"uniform vec2 resolution;\",\"uniform float radius;\",\"uniform float amount;\",\"uniform float contrast;\",\"uniform bool isTiltShift;\",\"uniform float strength;\",\"uniform vec2 blur;\",\"varying vec2 outTexCoord;\",\"vec2 Sample (in float theta, inout float r)\",\"{\",\" r += 1.0 / r;\",\" return (r - 1.0) * vec2(cos(theta), sin(theta)) * 0.06;\",\"}\",\"vec3 Bokeh (sampler2D tex, vec2 uv, float radius)\",\"{\",\" vec3 acc = vec3(0.0);\",\" vec3 div = vec3(0.0);\",\" vec2 pixel = vec2(resolution.y / resolution.x, 1.0) * radius * .025;\",\" float r = 1.0;\",\" for (float j = 0.0; j < GOLDEN_ANGLE * ITERATIONS; j += GOLDEN_ANGLE)\",\" {\",\" vec3 col = texture2D(tex, uv + pixel * Sample(j, r)).xyz;\",\" col = contrast > 0.0 ? col * col * (1.0 + contrast) : col;\",\" vec3 bokeh = vec3(0.5) + pow(col, vec3(10.0)) * amount;\",\" acc += col * bokeh;\",\" div += bokeh;\",\" }\",\" return acc / div;\",\"}\",\"void main ()\",\"{\",\" float shift = 1.0;\",\" if (isTiltShift)\",\" {\",\" vec2 uv = vec2(gl_FragCoord.xy / resolution + vec2(-0.5, -0.5)) * 2.0;\",\" float centerStrength = 1.0;\",\" shift = length(uv * blur * strength) * centerStrength;\",\" }\",\" gl_FragColor = vec4(Bokeh(uMainSampler, outTexCoord * vec2(1.0, 1.0), radius * shift), 0.0);\",\"}\"].join(\"\\n\")},91899:t=>{t.exports=[\"#define SHADER_NAME CIRCLE_FS\",\"precision mediump float;\",\"uniform sampler2D uMainSampler;\",\"uniform vec2 resolution;\",\"uniform vec3 color;\",\"uniform vec4 backgroundColor;\",\"uniform float thickness;\",\"uniform float scale;\",\"uniform float feather;\",\"varying vec2 outTexCoord;\",\"void main ()\",\"{\",\" vec4 texture = texture2D(uMainSampler, outTexCoord);\",\" vec2 position = (gl_FragCoord.xy / resolution.xy) * 2.0 - 1.0;\",\" float aspectRatio = resolution.x / resolution.y;\",\" position.x *= aspectRatio;\",\" float grad = length(position);\",\" float outer = aspectRatio;\",\" float inner = outer - (thickness * 2.0 / resolution.y);\",\" if (aspectRatio >= 1.0)\",\" {\",\" float f = 2.0 + (resolution.y / resolution.x);\",\" outer = 1.0;\",\" inner = 1.0 - (thickness * f / resolution.x);\",\" }\",\" outer *= scale;\",\" inner *= scale;\",\" float circle = smoothstep(outer, outer - 0.01, grad);\",\" float ring = circle - smoothstep(inner, inner - feather, grad);\",\" texture = mix(backgroundColor * backgroundColor.a, texture, texture.a);\",\" texture = (texture * (circle - ring));\",\" gl_FragColor = vec4(texture.rgb + (ring * color), texture.a);\",\"}\"].join(\"\\n\")},47838:t=>{t.exports=[\"#define SHADER_NAME DISPLACEMENT_FS\",\"precision mediump float;\",\"uniform sampler2D uMainSampler;\",\"uniform sampler2D uDisplacementSampler;\",\"uniform vec2 amount;\",\"varying vec2 outTexCoord;\",\"void main ()\",\"{\",\" vec2 disp = (-vec2(0.5, 0.5) + texture2D(uDisplacementSampler, outTexCoord).rr) * amount;\",\" gl_FragColor = texture2D(uMainSampler, outTexCoord + disp).rgba;\",\"}\"].join(\"\\n\")},98656:t=>{t.exports=[\"#define SHADER_NAME GLOW_FS\",\"precision mediump float;\",\"uniform sampler2D uMainSampler;\",\"varying vec2 outTexCoord;\",\"uniform float outerStrength;\",\"uniform float innerStrength;\",\"uniform vec2 resolution;\",\"uniform vec4 glowColor;\",\"uniform bool knockout;\",\"const float PI = 3.14159265358979323846264;\",\"const float DIST = __DIST__;\",\"const float SIZE = min(__SIZE__, PI * 2.0);\",\"const float STEP = ceil(PI * 2.0 / SIZE);\",\"const float MAX_ALPHA = STEP * DIST * (DIST + 1.0) / 2.0;\",\"void main ()\",\"{\",\" vec2 px = vec2(1.0 / resolution.x, 1.0 / resolution.y);\",\" float totalAlpha = 0.0;\",\" vec2 direction;\",\" vec2 displaced;\",\" vec4 color;\",\" for (float angle = 0.0; angle < PI * 2.0; angle += SIZE)\",\" {\",\" direction = vec2(cos(angle), sin(angle)) * px;\",\" for (float curDistance = 0.0; curDistance < DIST; curDistance++)\",\" {\",\" displaced = outTexCoord + direction * (curDistance + 1.0);\",\" color = texture2D(uMainSampler, displaced);\",\" totalAlpha += (DIST - curDistance) * color.a;\",\" }\",\" }\",\" color = texture2D(uMainSampler, outTexCoord);\",\" float alphaRatio = (totalAlpha / MAX_ALPHA);\",\" float innerGlowAlpha = (1.0 - alphaRatio) * innerStrength * color.a;\",\" float innerGlowStrength = min(1.0, innerGlowAlpha);\",\" vec4 innerColor = mix(color, glowColor, innerGlowStrength);\",\" float outerGlowAlpha = alphaRatio * outerStrength * (1.0 - color.a);\",\" float outerGlowStrength = min(1.0 - innerColor.a, outerGlowAlpha);\",\" vec4 outerGlowColor = outerGlowStrength * glowColor.rgba;\",\" if (knockout)\",\" {\",\" float resultAlpha = outerGlowAlpha + innerGlowAlpha;\",\" gl_FragColor = vec4(glowColor.rgb * resultAlpha, resultAlpha);\",\" }\",\" else\",\" {\",\" gl_FragColor = innerColor + outerGlowColor;\",\" }\",\"}\"].join(\"\\n\")},70463:t=>{t.exports=[\"#define SHADER_NAME GRADIENT_FS\",\"#define SRGB_TO_LINEAR(c) pow((c), vec3(2.2))\",\"#define LINEAR_TO_SRGB(c) pow((c), vec3(1.0 / 2.2))\",\"#define SRGB(r, g, b) SRGB_TO_LINEAR(vec3(float(r), float(g), float(b)) / 255.0)\",\"precision mediump float;\",\"uniform sampler2D uMainSampler;\",\"uniform vec2 positionFrom;\",\"uniform vec2 positionTo;\",\"uniform vec3 color1;\",\"uniform vec3 color2;\",\"uniform float alpha;\",\"uniform int size;\",\"varying vec2 outTexCoord;\",\"float gradientNoise(in vec2 uv)\",\"{\",\" const vec3 magic = vec3(0.06711056, 0.00583715, 52.9829189);\",\" return fract(magic.z * fract(dot(uv, magic.xy)));\",\"}\",\"float stepped (in float s, in float scale, in int steps)\",\"{\",\" return steps > 0 ? floor( s / ((1.0 * scale) / float(steps))) * 1.0 / float(steps - 1) : s;\",\"}\",\"void main ()\",\"{\",\" vec2 a = positionFrom;\",\" vec2 b = positionTo;\",\" vec2 ba = b - a;\",\" float d = dot(outTexCoord - a, ba) / dot(ba, ba);\",\" float t = size > 0 ? stepped(d, 1.0, size) : d;\",\" t = smoothstep(0.0, 1.0, clamp(t, 0.0, 1.0));\",\" vec3 color = mix(SRGB(color1.r, color1.g, color1.b), SRGB(color2.r, color2.g, color2.b), t);\",\" color = LINEAR_TO_SRGB(color);\",\" color += (1.0 / 255.0) * gradientNoise(outTexCoord) - (0.5 / 255.0);\",\" vec4 texture = texture2D(uMainSampler, outTexCoord);\",\" gl_FragColor = vec4(mix(color.rgb, texture.rgb, alpha), 1.0) * texture.a;\",\"}\"].join(\"\\n\")},50831:t=>{t.exports=[\"#define SHADER_NAME PIXELATE_FS\",\"precision mediump float;\",\"uniform sampler2D uMainSampler;\",\"uniform vec2 resolution;\",\"uniform float amount;\",\"varying vec2 outTexCoord;\",\"void main ()\",\"{\",\" float pixelSize = floor(2.0 + amount);\",\" vec2 center = pixelSize * floor(outTexCoord * resolution / pixelSize) + pixelSize * vec2(0.5, 0.5);\",\" vec2 corner1 = center + pixelSize * vec2(-0.5, -0.5);\",\" vec2 corner2 = center + pixelSize * vec2(+0.5, -0.5);\",\" vec2 corner3 = center + pixelSize * vec2(+0.5, +0.5);\",\" vec2 corner4 = center + pixelSize * vec2(-0.5, +0.5);\",\" vec4 pixel = 0.4 * texture2D(uMainSampler, center / resolution);\",\" pixel += 0.15 * texture2D(uMainSampler, corner1 / resolution);\",\" pixel += 0.15 * texture2D(uMainSampler, corner2 / resolution);\",\" pixel += 0.15 * texture2D(uMainSampler, corner3 / resolution);\",\" pixel += 0.15 * texture2D(uMainSampler, corner4 / resolution);\",\" gl_FragColor = pixel;\",\"}\"].join(\"\\n\")},92595:t=>{t.exports=[\"#define SHADER_NAME SHADOW_FS\",\"precision mediump float;\",\"uniform sampler2D uMainSampler;\",\"varying vec2 outTexCoord;\",\"uniform vec2 lightPosition;\",\"uniform vec4 color;\",\"uniform float decay;\",\"uniform float power;\",\"uniform float intensity;\",\"uniform int samples;\",\"const int MAX = 12;\",\"void main ()\",\"{\",\" vec4 texture = texture2D(uMainSampler, outTexCoord);\",\" vec2 pc = (lightPosition - outTexCoord) * intensity;\",\" float shadow = 0.0;\",\" float limit = max(float(MAX), float(samples));\",\" for (int i = 0; i < MAX; ++i)\",\" {\",\" if (i >= samples)\",\" {\",\" break;\",\" }\",\" shadow += texture2D(uMainSampler, outTexCoord + float(i) * decay / limit * pc).a * power;\",\" }\",\" float mask = 1.0 - texture.a;\",\" gl_FragColor = mix(texture, color, shadow * mask);\",\"}\"].join(\"\\n\")},72464:t=>{t.exports=[\"#define SHADER_NAME SHINE_FS\",\"precision mediump float;\",\"uniform sampler2D uMainSampler;\",\"uniform vec2 resolution;\",\"uniform bool reveal;\",\"uniform float speed;\",\"uniform float time;\",\"uniform float lineWidth;\",\"uniform float gradient;\",\"varying vec2 outTexCoord;\",\"void main ()\",\"{\",\"\\tvec2 uv = gl_FragCoord.xy / resolution.xy;\",\" vec4 tex = texture2D(uMainSampler, outTexCoord);\",\" vec4 col1 = vec4(0.3, 0.0, 0.0, 1.0);\",\" vec4 col2 = vec4(0.85, 0.85, 0.85, 1.0);\",\" uv.x = uv.x - mod(time * speed, 2.0) + 0.5;\",\" float y = uv.x * gradient;\",\" float s = smoothstep(y - lineWidth, y, uv.y) - smoothstep(y, y + lineWidth, uv.y);\",\" gl_FragColor = (((s * col1) + (s * col2)) * tex);\",\" if (!reveal)\",\" {\",\" gl_FragColor += tex;\",\" }\",\"}\"].join(\"\\n\")},39249:t=>{t.exports=[\"#define SHADER_NAME VIGNETTE_FS\",\"precision mediump float;\",\"uniform sampler2D uMainSampler;\",\"uniform float radius;\",\"uniform float strength;\",\"uniform vec2 position;\",\"varying vec2 outTexCoord;\",\"void main ()\",\"{\",\" vec4 col = vec4(1.0);\",\" float d = length(outTexCoord - position);\",\" if (d <= radius)\",\" {\",\" float g = d / radius;\",\" g = sin(g * 3.14 * strength);\",\" \\tcol = vec4(g * g * g);\",\" }\",\" vec4 texture = texture2D(uMainSampler, outTexCoord);\",\" gl_FragColor = texture * (1.0 - col);\",\"}\"].join(\"\\n\")},2878:t=>{t.exports=[\"#define SHADER_NAME WIPE_FS\",\"precision mediump float;\",\"uniform sampler2D uMainSampler;\",\"uniform vec4 config;\",\"uniform bool reveal;\",\"varying vec2 outTexCoord;\",\"void main ()\",\"{\",\" vec2 uv = outTexCoord;\",\" vec4 color0;\",\" vec4 color1;\",\" if (reveal)\",\" {\",\" color0 = vec4(0);\",\" color1 = texture2D(uMainSampler, uv);\",\" }\",\" else\",\" {\",\" color0 = texture2D(uMainSampler, uv);\",\" color1 = vec4(0);\",\" }\",\" float distance = config.x;\",\" float width = config.y;\",\" float direction = config.z;\",\" float axis = uv.x;\",\" if (config.w == 1.0)\",\" {\",\" axis = uv.y;\",\" }\",\" float adjust = mix(width, -width, distance);\",\" float value = smoothstep(distance - width, distance + width, abs(direction - axis) + adjust);\",\" gl_FragColor = mix(color1, color0, value);\",\"}\"].join(\"\\n\")},31063:t=>{t.exports=[\"#define SHADER_NAME PHASER_LIGHT_FS\",\"precision mediump float;\",\"struct Light\",\"{\",\" vec2 position;\",\" vec3 color;\",\" float intensity;\",\" float radius;\",\"};\",\"const int kMaxLights = %LIGHT_COUNT%;\",\"uniform vec4 uCamera; /* x, y, rotation, zoom */\",\"uniform vec2 uResolution;\",\"uniform sampler2D uMainSampler;\",\"uniform sampler2D uNormSampler;\",\"uniform vec3 uAmbientLightColor;\",\"uniform Light uLights[kMaxLights];\",\"uniform mat3 uInverseRotationMatrix;\",\"uniform int uLightCount;\",\"varying vec2 outTexCoord;\",\"varying float outTexId;\",\"varying float outTintEffect;\",\"varying vec4 outTint;\",\"void main ()\",\"{\",\" vec3 finalColor = vec3(0.0, 0.0, 0.0);\",\" vec4 texel = vec4(outTint.bgr * outTint.a, outTint.a);\",\" vec4 texture = texture2D(uMainSampler, outTexCoord);\",\" vec4 color = texture * texel;\",\" if (outTintEffect == 1.0)\",\" {\",\" color.rgb = mix(texture.rgb, outTint.bgr * outTint.a, texture.a);\",\" }\",\" else if (outTintEffect == 2.0)\",\" {\",\" color = texel;\",\" }\",\" vec3 normalMap = texture2D(uNormSampler, outTexCoord).rgb;\",\" vec3 normal = normalize(uInverseRotationMatrix * vec3(normalMap * 2.0 - 1.0));\",\" vec2 res = vec2(min(uResolution.x, uResolution.y)) * uCamera.w;\",\" for (int index = 0; index < kMaxLights; ++index)\",\" {\",\" if (index < uLightCount)\",\" {\",\" Light light = uLights[index];\",\" vec3 lightDir = vec3((light.position.xy / res) - (gl_FragCoord.xy / res), 0.1);\",\" vec3 lightNormal = normalize(lightDir);\",\" float distToSurf = length(lightDir) * uCamera.w;\",\" float diffuseFactor = max(dot(normal, lightNormal), 0.0);\",\" float radius = (light.radius / res.x * uCamera.w) * uCamera.w;\",\" float attenuation = clamp(1.0 - distToSurf * distToSurf / (radius * radius), 0.0, 1.0);\",\" vec3 diffuse = light.color * diffuseFactor;\",\" finalColor += (attenuation * diffuse) * light.intensity;\",\" }\",\" }\",\" vec4 colorOutput = vec4(uAmbientLightColor + finalColor, 1.0);\",\" gl_FragColor = color * vec4(colorOutput.rgb * colorOutput.a, colorOutput.a);\",\"}\"].join(\"\\n\")},48247:t=>{t.exports=[\"#define SHADER_NAME PHASER_LINEAR_BLEND_FS\",\"precision mediump float;\",\"uniform sampler2D uMainSampler1;\",\"uniform sampler2D uMainSampler2;\",\"uniform float uStrength;\",\"varying vec2 outTexCoord;\",\"void main ()\",\"{\",\" vec4 frame1 = texture2D(uMainSampler1, outTexCoord);\",\" vec4 frame2 = texture2D(uMainSampler2, outTexCoord);\",\" gl_FragColor = mix(frame1, frame2 * uStrength, 0.5);\",\"}\"].join(\"\\n\")},41214:t=>{t.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(\"\\n\")},39653:t=>{t.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(\"\\n\")},62143:t=>{t.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(\"\\n\")},47940:t=>{t.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(\"\\n\")},98840:t=>{t.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(\"\\n\")},44667:t=>{t.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(\"\\n\")},4127:t=>{t.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(\"\\n\")},89924:t=>{t.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(\"\\n\")},27681:t=>{t.exports=[\"#define SHADER_NAME PHASER_POSTFX_FS\",\"precision mediump float;\",\"uniform sampler2D uMainSampler;\",\"varying vec2 outTexCoord;\",\"void main ()\",\"{\",\" gl_FragColor = texture2D(uMainSampler, outTexCoord);\",\"}\"].join(\"\\n\")},49627:t=>{t.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(\"\\n\")},45561:t=>{t.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(\"\\n\")},60722:t=>{t.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(\"\\n\")},89350:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2023 Photon Storm Ltd.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports={AddBlendFrag:i(35407),BitmapMaskFrag:i(78908),BitmapMaskVert:i(85191),ColorMatrixFrag:i(96293),CopyFrag:i(36682),FXBarrelFrag:i(99155),FXBloomFrag:i(24400),FXBlurHighFrag:i(94328),FXBlurLowFrag:i(41514),FXBlurMedFrag:i(51078),FXBokehFrag:i(90610),FXCircleFrag:i(91899),FXDisplacementFrag:i(47838),FXGlowFrag:i(98656),FXGradientFrag:i(70463),FXPixelateFrag:i(50831),FXShadowFrag:i(92595),FXShineFrag:i(72464),FXVignetteFrag:i(39249),FXWipeFrag:i(2878),LightFrag:i(31063),LinearBlendFrag:i(48247),MeshFrag:i(41214),MeshVert:i(39653),MobileFrag:i(62143),MobileVert:i(47940),MultiFrag:i(98840),MultiVert:i(44667),PointLightFrag:i(4127),PointLightVert:i(89924),PostFXFrag:i(27681),QuadVert:i(49627),SingleFrag:i(45561),SingleVert:i(60722)}},93567:(t,e,i)=>{\n/**\n * @author Benjamin D. Richards \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=new(i(83419))({initialize:function(t,e,i){this.webGLAttribLocation=-1,this.gl=t,this.program=e,this.name=i,this.createResource()},createResource:function(){if(null!==this.program.webGLProgram){var t=this.gl;t.isContextLost()||(this.webGLAttribLocation=t.getAttribLocation(this.program.webGLProgram,this.name))}else this.webGLAttribLocation=-1},destroy:function(){this.gl=null,this.program=null,this.name=null,this.webGLAttribLocation=-1}});t.exports=n},26128:(t,e,i)=>{\n/**\n * @author Benjamin D. Richards \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=new(i(83419))({initialize:function(t,e,i,n){this.webGLBuffer=null,this.gl=t,this.initialDataOrSize=e,this.bufferType=i,this.bufferUsage=n,this.createResource()},createResource:function(){if(null!==this.initialDataOrSize){var t=this.gl;if(!t.isContextLost()){var e=this.bufferType,i=t.createBuffer();this.webGLBuffer=i,t.bindBuffer(e,this.webGLBuffer),t.bufferData(e,this.initialDataOrSize,this.bufferUsage),t.bindBuffer(e,null)}}},destroy:function(){var t=this.gl;t.isContextLost()||t.deleteBuffer(this.webGLBuffer),this.webGLBuffer=null,this.initialDataOrSize=null,this.gl=null}});t.exports=n},84387:(t,e,i)=>{\n/**\n * @author Benjamin D. Richards \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(83419),r={36054:\"Incomplete Attachment\",36055:\"Missing Attachment\",36057:\"Incomplete Dimensions\",36061:\"Framebuffer Unsupported\"},s=new n({initialize:function(t,e,i,n,r){this.webGLFramebuffer=null,this.gl=t,this.width=e,this.height=i,this.renderTexture=n,this.addDepthStencilBuffer=!!r,this.createResource()},createResource:function(){var t=this.gl;if(!t.isContextLost()){var e,i=this.renderTexture,n=t.createFramebuffer();if(this.webGLFramebuffer=n,t.bindFramebuffer(t.FRAMEBUFFER,n),i.isRenderTexture=!0,i.isAlphaPremultiplied=!1,t.framebufferTexture2D(t.FRAMEBUFFER,t.COLOR_ATTACHMENT0,t.TEXTURE_2D,i.webGLTexture,0),(e=t.checkFramebufferStatus(t.FRAMEBUFFER))!==t.FRAMEBUFFER_COMPLETE)throw new Error(\"Framebuffer status: \"+(r[e]||e));if(this.addDepthStencilBuffer){var s=t.createRenderbuffer();t.bindRenderbuffer(t.RENDERBUFFER,s),t.renderbufferStorage(t.RENDERBUFFER,t.DEPTH_STENCIL,this.width,this.height),t.framebufferRenderbuffer(t.FRAMEBUFFER,t.DEPTH_STENCIL_ATTACHMENT,t.RENDERBUFFER,s)}t.bindFramebuffer(t.FRAMEBUFFER,null)}},destroy:function(){if(null!==this.webGLFramebuffer){var t=this.gl;if(!t.isContextLost()){t.bindFramebuffer(t.FRAMEBUFFER,this.webGLFramebuffer);var e=t.getFramebufferAttachmentParameter(t.FRAMEBUFFER,t.COLOR_ATTACHMENT0,t.FRAMEBUFFER_ATTACHMENT_OBJECT_NAME);null!==e&&(t.framebufferTexture2D(t.FRAMEBUFFER,t.COLOR_ATTACHMENT0,t.TEXTURE_2D,null,0),t.deleteTexture(e));var i=t.getFramebufferAttachmentParameter(t.FRAMEBUFFER,t.DEPTH_STENCIL_ATTACHMENT,t.FRAMEBUFFER_ATTACHMENT_OBJECT_NAME);null!==i&&t.deleteRenderbuffer(i),t.bindFramebuffer(t.FRAMEBUFFER,null),t.deleteFramebuffer(this.webGLFramebuffer)}this.renderTexture=null,this.webGLFramebuffer=null,this.gl=null}}});t.exports=s},1482:(t,e,i)=>{\n/**\n * @author Benjamin D. Richards \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=new(i(83419))({initialize:function(t,e,i){this.webGLProgram=null,this.gl=t,this.vertexSource=e,this.fragmentSource=i,this.createResource()},createResource:function(){var t=this.gl;if(!t.isContextLost()){var e=t.createProgram(),i=t.createShader(t.VERTEX_SHADER),n=t.createShader(t.FRAGMENT_SHADER);t.shaderSource(i,this.vertexSource),t.shaderSource(n,this.fragmentSource),t.compileShader(i),t.compileShader(n);var r=\"Shader failed:\\n\";if(!t.getShaderParameter(i,t.COMPILE_STATUS))throw new Error(\"Vertex \"+r+t.getShaderInfoLog(i));if(!t.getShaderParameter(n,t.COMPILE_STATUS))throw new Error(\"Fragment \"+r+t.getShaderInfoLog(n));if(t.attachShader(e,i),t.attachShader(e,n),t.linkProgram(e),!t.getProgramParameter(e,t.LINK_STATUS))throw new Error(\"Link \"+r+t.getProgramInfoLog(e));t.useProgram(e),this.webGLProgram=e}},destroy:function(){this.webGLProgram&&(this.gl.isContextLost()||this.gl.deleteProgram(this.webGLProgram),this.webGLProgram=null,this.gl=null)}});t.exports=n},82751:(t,e,i)=>{\n/**\n * @author Benjamin D. Richards \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(83419),r=i(50030),s=new n({initialize:function(t,e,i,n,r,s,a,o,l,h,u,c,d){this.webGLTexture=null,this.isRenderTexture=!1,this.gl=t,this.mipLevel=e,this.minFilter=i,this.magFilter=n,this.wrapT=r,this.wrapS=s,this.format=a,this.pixels=o,this.width=l,this.height=h,this.pma=null==u||u,this.forceSize=!!c,this.flipY=!!d,this.__SPECTOR_Metadata={},this.createResource()},createResource:function(){var t=this.gl;if(!t.isContextLost())if(this.pixels instanceof s)this.webGLTexture=this.pixels.webGLTexture;else{var e=t.createTexture();e.__SPECTOR_Metadata=this.__SPECTOR_Metadata,this.webGLTexture=e,this._processTexture()}},update:function(t,e,i,n,r,s,a,o,l){0!==e&&0!==i&&(this.pixels=t,this.width=e,this.height=i,this.flipY=n,this.wrapS=r,this.wrapT=s,this.minFilter=a,this.magFilter=o,this.format=l,this.gl.isContextLost()||this._processTexture())},_processTexture:function(){var t=this.gl;t.activeTexture(t.TEXTURE0);var e=t.getParameter(t.TEXTURE_BINDING_2D);t.bindTexture(t.TEXTURE_2D,this.webGLTexture),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MIN_FILTER,this.minFilter),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MAG_FILTER,this.magFilter),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_S,this.wrapS),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_T,this.wrapT),t.pixelStorei(t.UNPACK_PREMULTIPLY_ALPHA_WEBGL,this.pma),t.pixelStorei(t.UNPACK_FLIP_Y_WEBGL,this.flipY);var i=this.pixels,n=this.mipLevel,s=this.width,a=this.height,o=this.format,l=!1;if(null==i)t.texImage2D(t.TEXTURE_2D,n,o,s,a,0,o,t.UNSIGNED_BYTE,null),l=r(s,a);else if(i.compressed){s=i.width,a=i.height,l=i.generateMipmap;for(var h=0;h{\n/**\n * @author Benjamin D. Richards \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=new(i(83419))({initialize:function(t,e,i){this.webGLUniformLocation=null,this.gl=t,this.program=e,this.name=i,this.createResource()},createResource:function(){if(null!==this.program.webGLProgram){var t=this.gl;t.isContextLost()||(this.webGLUniformLocation=t.getUniformLocation(this.program.webGLProgram,this.name))}else this.webGLUniformLocation=null},destroy:function(){this.gl=null,this.program=null,this.name=null,this.webGLUniformLocation=null}});t.exports=n},9503:(t,e,i)=>{\n/**\n * @author Benjamin D. Richards \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n={WebGLAttribLocationWrapper:i(93567),WebGLBufferWrapper:i(26128),WebGLProgramWrapper:i(1482),WebGLTextureWrapper:i(82751),WebGLFramebufferWrapper:i(84387),WebGLUniformLocationWrapper:i(57183)};t.exports=n},76531:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(13560),r=i(83419),s=i(50792),a=i(97480),o=i(8443),l=i(57811),h=i(74403),u=i(45818),c=i(29747),d=i(87841),f=i(86555),p=i(56583),m=i(26099),g=i(38058),v=new r({Extends:s,initialize:function(t){s.call(this),this.game=t,this.canvas,this.canvasBounds=new d,this.parent=null,this.parentIsWindow=!1,this.parentSize=new f,this.gameSize=new f,this.baseSize=new f,this.displaySize=new f,this.scaleMode=n.SCALE_MODE.NONE,this.zoom=1,this._resetZoom=!1,this.displayScale=new m(1,1),this.autoRound=!1,this.autoCenter=n.CENTER.NO_CENTER,this.orientation=n.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:c,windowResize:c,fullScreenChange:c,fullScreenError:c}},preBoot:function(){this.parseConfig(this.game.config),this.game.events.once(o.BOOT,this.boot,this)},boot:function(){var t=this.game;this.canvas=t.canvas,this.fullscreen=t.device.fullscreen;var e=this.scaleMode;e!==n.SCALE_MODE.RESIZE&&e!==n.SCALE_MODE.EXPAND&&this.displaySize.setAspectMode(e),e===n.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()),t.events.on(o.PRE_STEP,this.step,this),t.events.once(o.READY,this.refresh,this),t.events.once(o.DESTROY,this.destroy,this),this.startListeners()},parseConfig:function(t){this.getParent(t),this.getParentBounds();var e=t.width,i=t.height,r=t.scaleMode,s=t.zoom,a=t.autoRound;if(\"string\"==typeof e)if(\"%\"!==e.substr(-1))e=parseInt(e,10);else{var o=this.parentSize.width;0===o&&(o=window.innerWidth);var l=parseInt(e,10)/100;e=Math.floor(o*l)}if(\"string\"==typeof i)if(\"%\"!==i.substr(-1))i=parseInt(i,10);else{var h=this.parentSize.height;0===h&&(h=window.innerHeight);var c=parseInt(i,10)/100;i=Math.floor(h*c)}this.scaleMode=r,this.autoRound=a,this.autoCenter=t.autoCenter,this.resizeInterval=t.resizeInterval,a&&(e=Math.floor(e),i=Math.floor(i)),this.gameSize.setSize(e,i),s===n.ZOOM.MAX_ZOOM&&(s=this.getMaxZoom()),this.zoom=s,1!==s&&(this._resetZoom=!0),this.baseSize.setSize(e,i),a&&(this.baseSize.width=Math.floor(this.baseSize.width),this.baseSize.height=Math.floor(this.baseSize.height)),t.minWidth>0&&this.displaySize.setMin(t.minWidth*s,t.minHeight*s),t.maxWidth>0&&this.displaySize.setMax(t.maxWidth*s,t.maxHeight*s),this.displaySize.setSize(e,i),(t.snapWidth>0||t.snapHeight>0)&&this.displaySize.setSnap(t.snapWidth,t.snapHeight),this.orientation=u(e,i)},getParent:function(t){var e=t.parent;if(null!==e){if(this.parent=h(e),this.parentIsWindow=this.parent===document.body,t.expandParent&&t.scaleMode!==n.SCALE_MODE.NONE){var i=this.parent.getBoundingClientRect();(this.parentIsWindow||0===i.height)&&(document.documentElement.style.height=\"100%\",document.body.style.height=\"100%\",i=this.parent.getBoundingClientRect(),this.parentIsWindow||0!==i.height||(this.parent.style.overflow=\"hidden\",this.parent.style.width=\"100%\",this.parent.style.height=\"100%\"))}t.fullscreenTarget&&!this.fullscreenTarget&&(this.fullscreenTarget=h(t.fullscreenTarget))}},getParentBounds:function(){if(!this.parent)return!1;var t=this.parentSize,e=this.parent.getBoundingClientRect();this.parentIsWindow&&this.game.device.os.iOS&&(e.height=l(!0));var i=e.width,n=e.height;if(t.width!==i||t.height!==n)return t.setSize(i,n),!0;if(this.canvas){var r=this.canvasBounds,s=this.canvas.getBoundingClientRect();if(s.x!==r.x||s.y!==r.y)return!0}return!1},lockOrientation:function(t){var e=screen.lockOrientation||screen.mozLockOrientation||screen.msLockOrientation;return!!e&&e.call(screen,t)},setParentSize:function(t,e){return this.parentSize.setSize(t,e),this.refresh()},setGameSize:function(t,e){var i=this.autoRound;i&&(t=Math.floor(t),e=Math.floor(e));var n=this.width,r=this.height;return this.gameSize.resize(t,e),this.baseSize.resize(t,e),i&&(this.baseSize.width=Math.floor(this.baseSize.width),this.baseSize.height=Math.floor(this.baseSize.height)),this.displaySize.setAspectRatio(t/e),this.canvas.width=this.baseSize.width,this.canvas.height=this.baseSize.height,this.refresh(n,r)},resize:function(t,e){var i=this.zoom,n=this.autoRound;n&&(t=Math.floor(t),e=Math.floor(e));var r=this.width,s=this.height;this.gameSize.resize(t,e),this.baseSize.resize(t,e),n&&(this.baseSize.width=Math.floor(this.baseSize.width),this.baseSize.height=Math.floor(this.baseSize.height)),this.displaySize.setSize(t*i,e*i),this.canvas.width=this.baseSize.width,this.canvas.height=this.baseSize.height;var a=this.canvas.style,o=t*i,l=e*i;return n&&(o=Math.floor(o),l=Math.floor(l)),o===t&&l===e||(a.width=o+\"px\",a.height=l+\"px\"),this.refresh(r,s)},setZoom:function(t){return this.zoom=t,this._resetZoom=!0,this.refresh()},setMaxZoom:function(){return this.zoom=this.getMaxZoom(),this._resetZoom=!0,this.refresh()},setSnap:function(t,e){return void 0===t&&(t=0),void 0===e&&(e=t),this.displaySize.setSnap(t,e),this.refresh()},refresh:function(t,e){void 0===t&&(t=this.width),void 0===e&&(e=this.height),this.updateScale(),this.updateBounds(),this.updateOrientation(),this.displayScale.set(this.baseSize.width/this.canvasBounds.width,this.baseSize.height/this.canvasBounds.height);var i=this.game.domContainer;if(i){this.baseSize.setCSS(i);var n=this.canvas.style,r=i.style;r.transform=\"scale(\"+this.displaySize.width/this.baseSize.width+\",\"+this.displaySize.height/this.baseSize.height+\")\",r.marginLeft=n.marginLeft,r.marginTop=n.marginTop}return this.emit(a.RESIZE,this.gameSize,this.baseSize,this.displaySize,t,e),this},updateOrientation:function(){if(this._checkOrientation){this._checkOrientation=!1;var t=u(this.width,this.height);t!==this.orientation&&(this.orientation=t,this.emit(a.ORIENTATION_CHANGE,t))}},updateScale:function(){var t,e,i=this.canvas.style,r=this.gameSize.width,s=this.gameSize.height,a=this.zoom,o=this.autoRound;if(this.scaleMode===n.SCALE_MODE.NONE)this.displaySize.setSize(r*a,s*a),t=this.displaySize.width,e=this.displaySize.height,o&&(t=Math.floor(t),e=Math.floor(e)),this._resetZoom&&(i.width=t+\"px\",i.height=e+\"px\",this._resetZoom=!1);else if(this.scaleMode===n.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),t=this.displaySize.width,e=this.displaySize.height,o&&(t=Math.floor(t),e=Math.floor(e)),this.canvas.width=t,this.canvas.height=e;else if(this.scaleMode===n.SCALE_MODE.EXPAND){var l=this.game.config.width,h=this.game.config.height;this.displaySize.setSize(this.parentSize.width,this.parentSize.height),t=this.displaySize.width,e=this.displaySize.height,o&&(t=Math.floor(t),e=Math.floor(e)),i.width=t+\"px\",i.height=e+\"px\";var u=this.parentSize.width/l,c=this.parentSize.height/h;u=0?0:-a.x*o.x,h=a.y>=0?0:-a.y*o.y;return i=s.width>=a.width?r.width:r.width-(a.width-s.width)*o.x,n=s.height>=a.height?r.height:r.height-(a.height-s.height)*o.y,e.setTo(l,h,i,n),t&&(e.width/=t.zoomX,e.height/=t.zoomY,e.centerX=t.centerX+t.scrollX,e.centerY=t.centerY+t.scrollY),e},step:function(t,e){this.parent&&(this._lastCheck+=e,(this.dirty||this._lastCheck>this.resizeInterval)&&(this.getParentBounds()&&this.refresh(),this.dirty=!1,this._lastCheck=0))},stopListeners:function(){var t=this.domlisteners;screen.orientation&&screen.orientation.addEventListener?screen.orientation.removeEventListener(\"change\",t.orientationChange,!1):window.removeEventListener(\"orientationchange\",t.orientationChange,!1),window.removeEventListener(\"resize\",t.windowResize,!1),[\"webkit\",\"moz\",\"\"].forEach((function(e){document.removeEventListener(e+\"fullscreenchange\",t.fullScreenChange,!1),document.removeEventListener(e+\"fullscreenerror\",t.fullScreenError,!1)})),document.removeEventListener(\"MSFullscreenChange\",t.fullScreenChange,!1),document.removeEventListener(\"MSFullscreenError\",t.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===n.ORIENTATION.PORTRAIT}},isLandscape:{get:function(){return this.orientation===n.ORIENTATION.LANDSCAPE}},isGamePortrait:{get:function(){return this.height>this.width}},isGameLandscape:{get:function(){return this.width>this.height}}});t.exports=v},64743:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports={NO_CENTER:0,CENTER_BOTH:1,CENTER_HORIZONTALLY:2,CENTER_VERTICALLY:3}},39218:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports={LANDSCAPE:\"landscape-primary\",LANDSCAPE_SECONDARY:\"landscape-secondary\",PORTRAIT:\"portrait-primary\",PORTRAIT_SECONDARY:\"portrait-secondary\"}},81050:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports={NONE:0,WIDTH_CONTROLS_HEIGHT:1,HEIGHT_CONTROLS_WIDTH:2,FIT:3,ENVELOP:4,RESIZE:5,EXPAND:6}},80805:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports={NO_ZOOM:1,ZOOM_2X:2,ZOOM_4X:4,MAX_ZOOM:-1}},13560:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n={CENTER:i(64743),ORIENTATION:i(39218),SCALE_MODE:i(81050),ZOOM:i(80805)};t.exports=n},56139:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports=\"enterfullscreen\"},2336:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports=\"fullscreenfailed\"},47412:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports=\"fullscreenunsupported\"},51452:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports=\"leavefullscreen\"},20666:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports=\"orientationchange\"},47945:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports=\"resize\"},97480:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports={ENTER_FULLSCREEN:i(56139),FULLSCREEN_FAILED:i(2336),FULLSCREEN_UNSUPPORTED:i(47412),LEAVE_FULLSCREEN:i(51452),ORIENTATION_CHANGE:i(20666),RESIZE:i(47945)}},93364:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(79291),r=i(13560),s={Center:i(64743),Events:i(97480),Orientation:i(39218),ScaleManager:i(76531),ScaleModes:i(81050),Zoom:i(80805)};s=n(!1,s,r.CENTER),s=n(!1,s,r.ORIENTATION),s=n(!1,s,r.SCALE_MODE),s=n(!1,s,r.ZOOM),t.exports=s},27397:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(95540),r=i(35355);t.exports=function(t){var e=t.game.config.defaultPhysicsSystem,i=n(t.settings,\"physics\",!1);if(e||i){var s=[];if(e&&s.push(r(e+\"Physics\")),i)for(var a in i)a=r(a.concat(\"Physics\")),-1===s.indexOf(a)&&s.push(a);return s}}},52106:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(95540);t.exports=function(t){var e=t.plugins.getDefaultScenePlugins(),i=n(t.settings,\"plugins\",!1);return Array.isArray(i)?i:e||[]}},87033:t=>{t.exports={game:\"game\",renderer:\"renderer\",anims:\"anims\",cache:\"cache\",plugins:\"plugins\",registry:\"registry\",scale:\"scale\",sound:\"sound\",textures:\"textures\",events:\"events\",cameras:\"cameras\",add:\"add\",make:\"make\",scenePlugin:\"scene\",displayList:\"children\",lights:\"lights\",data:\"data\",input:\"input\",load:\"load\",time:\"time\",tweens:\"tweens\",arcadePhysics:\"physics\",impactPhysics:\"impact\",matterPhysics:\"matter\"}},97482:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(83419),r=i(2368),s=new n({initialize:function(t){this.sys=new r(this,t),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(){}});t.exports=s},60903:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(83419),r=i(89993),s=i(44594),a=i(8443),o=i(35154),l=i(54899),h=i(29747),u=i(97482),c=i(2368),d=new n({initialize:function(t,e){if(this.game=t,this.keys={},this.scenes=[],this._pending=[],this._start=[],this._queue=[],this._data={},this.isProcessing=!1,this.isBooted=!1,this.customViewports=0,this.systemScene,e){Array.isArray(e)||(e=[e]);for(var i=0;i-1&&(delete this.keys[n],this.scenes.splice(i,1),this._start.indexOf(n)>-1&&(i=this._start.indexOf(n),this._start.splice(i,1)),e.sys.destroy()),this},bootScene:function(t){var e,i=t.sys,n=i.settings;i.sceneUpdate=h,t.init&&(t.init.call(t,n.data),n.status=r.INIT,n.isTransition&&i.events.emit(s.TRANSITION_INIT,n.transitionFrom,n.transitionDuration)),i.load&&(e=i.load).reset(),e&&t.preload?(t.preload.call(t),n.status=r.LOADING,e.once(l.COMPLETE,this.loadComplete,this),e.start()):this.create(t)},loadComplete:function(t){this.create(t.scene)},payloadComplete:function(t){this.bootScene(t.scene)},update:function(t,e){this.processQueue(),this.isProcessing=!0;for(var i=this.scenes.length-1;i>=0;i--){var n=this.scenes[i].sys;n.settings.status>r.START&&n.settings.status<=r.RUNNING&&n.step(t,e),n.scenePlugin&&n.scenePlugin._target&&n.scenePlugin.step(t,e)}},render:function(t){for(var e=0;e=r.LOADING&&i.settings.status=r.START&&a<=r.CREATING)return this;if(a>=r.RUNNING&&a<=r.SLEEPING)s.shutdown(),s.sceneUpdate=h,s.start(e);else if(s.sceneUpdate=h,s.start(e),s.load&&(n=s.load),n&&s.settings.hasOwnProperty(\"pack\")&&(n.reset(),n.addPack({payload:s.settings.pack})))return s.settings.status=r.LOADING,n.once(l.COMPLETE,this.payloadComplete,this),n.start(),this;return this.bootScene(i),this},stop:function(t,e){var i=this.getScene(t);if(i&&!i.sys.isTransitioning()&&i.sys.settings.status!==r.SHUTDOWN){var n=i.sys.load;n&&(n.off(l.COMPLETE,this.loadComplete,this),n.off(l.COMPLETE,this.payloadComplete,this)),i.sys.shutdown(e)}return this},switch:function(t,e,i){var n=this.getScene(t),r=this.getScene(e);return n&&r&&n!==r&&(this.sleep(t),this.isSleeping(e)?this.wake(e,i):this.start(e,i)),this},getAt:function(t){return this.scenes[t]},getIndex:function(t){var e=this.getScene(t);return this.scenes.indexOf(e)},bringToTop:function(t){if(this.isProcessing)return this.queueOp(\"bringToTop\",t);var e=this.getIndex(t),i=this.scenes;if(-1!==e&&e0){var i=this.getScene(t);this.scenes.splice(e,1),this.scenes.unshift(i)}return this},moveDown:function(t){if(this.isProcessing)return this.queueOp(\"moveDown\",t);var e=this.getIndex(t);if(e>0){var i=e-1,n=this.getScene(t),r=this.getAt(i);this.scenes[e]=r,this.scenes[i]=n}return this},moveUp:function(t){if(this.isProcessing)return this.queueOp(\"moveUp\",t);var e=this.getIndex(t);if(ei),0,r)}return this},moveBelow:function(t,e){if(t===e)return this;if(this.isProcessing)return this.queueOp(\"moveBelow\",t,e);var i=this.getIndex(t),n=this.getIndex(e);if(-1!==i&&-1!==n&&n>i){var r=this.getAt(n);this.scenes.splice(n,1),0===i?this.scenes.unshift(r):this.scenes.splice(i-(n{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(45319),r=i(83419),s=i(44594),a=i(95540),o=i(37277),l=new r({initialize:function(t){this.scene=t,this.systems=t.sys,this.settings=t.sys.settings,this.key=t.sys.settings.key,this.manager=t.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,t.sys.events.once(s.BOOT,this.boot,this),t.sys.events.on(s.START,this.pluginStart,this)},boot:function(){this.systems.events.once(s.DESTROY,this.destroy,this)},pluginStart:function(){this._target=null,this.systems.events.once(s.SHUTDOWN,this.shutdown,this)},start:function(t,e){return void 0===t&&(t=this.key),this.manager.queueOp(\"stop\",this.key),this.manager.queueOp(\"start\",t,e),this},restart:function(t){var e=this.key;return this.manager.queueOp(\"stop\",e),this.manager.queueOp(\"start\",e,t),this},transition:function(t){void 0===t&&(t={});var e=a(t,\"target\",!1),i=this.manager.getScene(e);if(!e||!this.checkValidTransition(i))return!1;var n=a(t,\"duration\",1e3);this._elapsed=0,this._target=i,this._duration=n,this._willSleep=a(t,\"sleep\",!1),this._willRemove=a(t,\"remove\",!1);var r=a(t,\"onUpdate\",null);r&&(this._onUpdate=r,this._onUpdateScope=a(t,\"onUpdateScope\",this.scene));var o=a(t,\"allowInput\",!1);this.settings.transitionAllowInput=o;var l=i.sys.settings;l.isTransition=!0,l.transitionFrom=this.scene,l.transitionDuration=n,l.transitionAllowInput=o,a(t,\"moveAbove\",!1)?this.manager.moveAbove(this.key,e):a(t,\"moveBelow\",!1)&&this.manager.moveBelow(this.key,e),i.sys.isSleeping()?i.sys.wake(a(t,\"data\")):this.manager.start(e,a(t,\"data\"));var h=a(t,\"onStart\",null),u=a(t,\"onStartScope\",this.scene);return h&&h.call(u,this.scene,i,n),this.systems.events.emit(s.TRANSITION_OUT,i,n),!0},checkValidTransition:function(t){return!(!t||t.sys.isActive()||t.sys.isTransitioning()||t===this.scene||this.systems.isTransitioning())},step:function(t,e){this._elapsed+=e,this.transitionProgress=n(this._elapsed/this._duration,0,1),this._onUpdate&&this._onUpdate.call(this._onUpdateScope,this.transitionProgress),this._elapsed>=this._duration&&this.transitionComplete()},transitionComplete:function(){var t=this._target.sys,e=this._target.sys.settings;t.events.emit(s.TRANSITION_COMPLETE,this.scene),e.isTransition=!1,e.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(t,e,i,n){return this.manager.add(t,e,i,n)},launch:function(t,e){return t&&t!==this.key&&this.manager.queueOp(\"start\",t,e),this},run:function(t,e){return t&&t!==this.key&&this.manager.queueOp(\"run\",t,e),this},pause:function(t,e){return void 0===t&&(t=this.key),this.manager.queueOp(\"pause\",t,e),this},resume:function(t,e){return void 0===t&&(t=this.key),this.manager.queueOp(\"resume\",t,e),this},sleep:function(t,e){return void 0===t&&(t=this.key),this.manager.queueOp(\"sleep\",t,e),this},wake:function(t,e){return void 0===t&&(t=this.key),this.manager.queueOp(\"wake\",t,e),this},switch:function(t,e){return t!==this.key&&this.manager.queueOp(\"switch\",this.key,t,e),this},stop:function(t,e){return void 0===t&&(t=this.key),this.manager.queueOp(\"stop\",t,e),this},setActive:function(t,e,i){void 0===e&&(e=this.key);var n=this.manager.getScene(e);return n&&n.sys.setActive(t,i),this},setVisible:function(t,e){void 0===e&&(e=this.key);var i=this.manager.getScene(e);return i&&i.sys.setVisible(t),this},isSleeping:function(t){return void 0===t&&(t=this.key),this.manager.isSleeping(t)},isActive:function(t){return void 0===t&&(t=this.key),this.manager.isActive(t)},isPaused:function(t){return void 0===t&&(t=this.key),this.manager.isPaused(t)},isVisible:function(t){return void 0===t&&(t=this.key),this.manager.isVisible(t)},swapPosition:function(t,e){return void 0===e&&(e=this.key),t!==e&&this.manager.swapPosition(t,e),this},moveAbove:function(t,e){return void 0===e&&(e=this.key),t!==e&&this.manager.moveAbove(t,e),this},moveBelow:function(t,e){return void 0===e&&(e=this.key),t!==e&&this.manager.moveBelow(t,e),this},remove:function(t){return void 0===t&&(t=this.key),this.manager.remove(t),this},moveUp:function(t){return void 0===t&&(t=this.key),this.manager.moveUp(t),this},moveDown:function(t){return void 0===t&&(t=this.key),this.manager.moveDown(t),this},bringToTop:function(t){return void 0===t&&(t=this.key),this.manager.bringToTop(t),this},sendToBack:function(t){return void 0===t&&(t=this.key),this.manager.sendToBack(t),this},get:function(t){return this.manager.getScene(t)},getStatus:function(t){var e=this.manager.getScene(t);if(e)return e.sys.getStatus()},getIndex:function(t){return void 0===t&&(t=this.key),this.manager.getIndex(t)},shutdown:function(){var t=this.systems.events;t.off(s.SHUTDOWN,this.shutdown,this),t.off(s.TRANSITION_OUT)},destroy:function(){this.shutdown(),this.scene.sys.events.off(s.START,this.start,this),this.scene=null,this.systems=null,this.settings=null,this.manager=null}});o.register(\"ScenePlugin\",l,\"scenePlugin\"),t.exports=l},55681:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(89993),r=i(35154),s=i(46975),a=i(87033),o={create:function(t){return\"string\"==typeof t?t={key:t}:void 0===t&&(t={}),{status:n.PENDING,key:r(t,\"key\",\"\"),active:r(t,\"active\",!1),visible:r(t,\"visible\",!0),isBooted:!1,isTransition:!1,transitionFrom:null,transitionDuration:0,transitionAllowInput:!0,data:{},pack:r(t,\"pack\",!1),cameras:r(t,\"cameras\",null),map:r(t,\"map\",s(a,r(t,\"mapAdd\",{}))),physics:r(t,\"physics\",{}),loader:r(t,\"loader\",{}),plugins:r(t,\"plugins\",!1),input:r(t,\"input\",{})}}};t.exports=o},2368:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(83419),r=i(89993),s=i(42363),a=i(44594),o=i(27397),l=i(52106),h=i(29747),u=i(55681),c=new n({initialize:function(t,e){this.scene=t,this.game,this.renderer,this.config=e,this.settings=u.create(e),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=h},init:function(t){this.settings.status=r.INIT,this.sceneUpdate=h,this.game=t,this.renderer=t.renderer,this.canvas=t.canvas,this.context=t.context;var e=t.plugins;this.plugins=e,e.addToScene(this,s.Global,[s.CoreScene,l(this),o(this)]),this.events.emit(a.BOOT,this),this.settings.isBooted=!0},step:function(t,e){var i=this.events;i.emit(a.PRE_UPDATE,t,e),i.emit(a.UPDATE,t,e),this.sceneUpdate.call(this.scene,t,e),i.emit(a.POST_UPDATE,t,e)},render:function(t){var e=this.displayList;e.depthSort(),this.events.emit(a.PRE_RENDER,t),this.cameras.render(t,e),this.events.emit(a.RENDER,t)},queueDepthSort:function(){this.displayList.queueDepthSort()},depthSort:function(){this.displayList.depthSort()},pause:function(t){var e=this.settings,i=this.getStatus();return i!==r.CREATING&&i!==r.RUNNING?console.warn(\"Cannot pause non-running Scene\",e.key):this.settings.active&&(e.status=r.PAUSED,e.active=!1,this.events.emit(a.PAUSE,this,t)),this},resume:function(t){var e=this.events,i=this.settings;return this.settings.active||(i.status=r.RUNNING,i.active=!0,e.emit(a.RESUME,this,t)),this},sleep:function(t){var e=this.settings,i=this.getStatus();return i!==r.CREATING&&i!==r.RUNNING?console.warn(\"Cannot sleep non-running Scene\",e.key):(e.status=r.SLEEPING,e.active=!1,e.visible=!1,this.events.emit(a.SLEEP,this,t)),this},wake:function(t){var e=this.events,i=this.settings;return i.status=r.RUNNING,i.active=!0,i.visible=!0,e.emit(a.WAKE,this,t),i.isTransition&&e.emit(a.TRANSITION_WAKE,i.transitionFrom,i.transitionDuration),this},getData:function(){return this.settings.data},getStatus:function(){return this.settings.status},canInput:function(){var t=this.settings.status;return t>r.PENDING&&t<=r.RUNNING},isSleeping:function(){return this.settings.status===r.SLEEPING},isActive:function(){return this.settings.status===r.RUNNING},isPaused:function(){return this.settings.status===r.PAUSED},isTransitioning:function(){return this.settings.isTransition||null!==this.scenePlugin._target},isTransitionOut:function(){return null!==this.scenePlugin._target&&this.scenePlugin._duration>0},isTransitionIn:function(){return this.settings.isTransition},isVisible:function(){return this.settings.visible},setVisible:function(t){return this.settings.visible=t,this},setActive:function(t,e){return t?this.resume(e):this.pause(e)},start:function(t){var e=this.events,i=this.settings;t&&(i.data=t),i.status=r.START,i.active=!0,i.visible=!0,e.emit(a.START,this),e.emit(a.READY,this,t)},shutdown:function(t){var e=this.events,i=this.settings;e.off(a.TRANSITION_INIT),e.off(a.TRANSITION_START),e.off(a.TRANSITION_COMPLETE),e.off(a.TRANSITION_OUT),i.status=r.SHUTDOWN,i.active=!1,i.visible=!1,e.emit(a.SHUTDOWN,this,t)},destroy:function(){var t=this.events,e=this.settings;e.status=r.DESTROYED,e.active=!1,e.visible=!1,t.emit(a.DESTROY,this),t.removeAllListeners();for(var i=[\"scene\",\"game\",\"anims\",\"cache\",\"plugins\",\"registry\",\"sound\",\"textures\",\"add\",\"camera\",\"displayList\",\"events\",\"make\",\"scenePlugin\",\"updateList\"],n=0;n{t.exports={PENDING:0,INIT:1,START:2,LOADING:3,CREATING:4,RUNNING:5,PAUSED:6,SLEEPING:7,SHUTDOWN:8,DESTROYED:9}},69830:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports=\"addedtoscene\"},7919:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports=\"boot\"},46763:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports=\"create\"},11763:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports=\"destroy\"},71555:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports=\"pause\"},36735:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports=\"postupdate\"},3809:t=>{\n/**\n * @author samme\n * @copyright 2021 Photon Storm Ltd.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports=\"prerender\"},90716:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports=\"preupdate\"},58262:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports=\"ready\"},91633:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports=\"removedfromscene\"},10319:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports=\"render\"},87132:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports=\"resume\"},81961:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports=\"shutdown\"},90194:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports=\"sleep\"},6265:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports=\"start\"},33178:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports=\"transitioncomplete\"},43063:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports=\"transitioninit\"},11259:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports=\"transitionout\"},61611:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports=\"transitionstart\"},45209:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports=\"transitionwake\"},22966:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports=\"update\"},21747:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports=\"wake\"},44594:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports={ADDED_TO_SCENE:i(69830),BOOT:i(7919),CREATE:i(46763),DESTROY:i(11763),PAUSE:i(71555),POST_UPDATE:i(36735),PRE_RENDER:i(3809),PRE_UPDATE:i(90716),READY:i(58262),REMOVED_FROM_SCENE:i(91633),RENDER:i(10319),RESUME:i(87132),SHUTDOWN:i(81961),SLEEP:i(90194),START:i(6265),TRANSITION_COMPLETE:i(33178),TRANSITION_INIT:i(43063),TRANSITION_OUT:i(11259),TRANSITION_START:i(61611),TRANSITION_WAKE:i(45209),UPDATE:i(22966),WAKE:i(21747)}},62194:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(89993),r=i(79291),s={Events:i(44594),GetPhysicsPlugins:i(27397),GetScenePlugins:i(52106),SceneManager:i(60903),ScenePlugin:i(52209),Settings:i(55681),Systems:i(2368)};s=r(!1,s,n),t.exports=s},30341:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @author Pavle Goloskokovic (http://prunegames.com)\n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(83419),r=i(50792),s=i(14463),a=i(79291),o=i(29747),l=new n({Extends:r,initialize:function(t,e,i){r.call(this),this.manager=t,this.key=e,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=a(this.config,i),this.markers={},this.currentMarker=null,this.pendingRemove=!1},addMarker:function(t){return!(!t||!t.name||\"string\"!=typeof t.name||(this.markers[t.name]?(console.error(\"addMarker \"+t.name+\" already exists in Sound\"),1):(t=a(!0,{name:\"\",start:0,duration:this.totalDuration-(t.start||0),config:{mute:!1,volume:1,rate:1,detune:0,seek:0,loop:!1,delay:0,pan:0}},t),this.markers[t.name]=t,0)))},updateMarker:function(t){return!(!t||!t.name||\"string\"!=typeof t.name||(this.markers[t.name]?(this.markers[t.name]=a(!0,this.markers[t.name],t),0):(console.warn(\"Audio Marker: \"+t.name+\" missing in Sound: \"+this.key),1)))},removeMarker:function(t){var e=this.markers[t];return e?(this.markers[t]=null,e):null},play:function(t,e){if(void 0===t&&(t=\"\"),\"object\"==typeof t&&(e=t,t=\"\"),\"string\"!=typeof t)return!1;if(t){if(!this.markers[t])return console.warn(\"Marker: \"+t+\" missing in Sound: \"+this.key),!1;this.currentMarker=this.markers[t],this.currentConfig=this.currentMarker.config,this.duration=this.currentMarker.duration}else this.currentMarker=null,this.currentConfig=this.config,this.duration=this.totalDuration;return this.resetConfig(),this.currentConfig=a(this.currentConfig,e),this.isPlaying=!0,this.isPaused=!1,!0},pause:function(){return!(this.isPaused||!this.isPlaying||(this.isPlaying=!1,this.isPaused=!0,0))},resume:function(){return!(!this.isPaused||this.isPlaying||(this.isPlaying=!0,this.isPaused=!1,0))},stop:function(){return!(!this.isPaused&&!this.isPlaying||(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:o,calculateRate:function(){var t=this.currentConfig.detune+this.manager.detune,e=Math.pow(1.0005777895065548,t);this.totalRate=this.currentConfig.rate*this.manager.rate*e},destroy:function(){this.pendingRemove||(this.stop(),this.emit(s.DESTROY,this),this.removeAllListeners(),this.pendingRemove=!0,this.manager=null,this.config=null,this.currentConfig=null,this.markers=null,this.currentMarker=null)}});t.exports=l},85034:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @author Pavle Goloskokovic (http://prunegames.com)\n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(83419),r=i(41786),s=i(50792),a=i(14463),o=i(8443),l=i(46710),h=i(58731),u=i(29747),c=i(26099),d=new n({Extends:s,initialize:function(t){s.call(this),this.game=t,this.jsonCache=t.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 c;var e=t.events;e.on(o.BLUR,this.onGameBlur,this),e.on(o.FOCUS,this.onGameFocus,this),e.on(o.PRE_STEP,this.update,this),e.once(o.DESTROY,this.destroy,this)},add:u,addAudioSprite:function(t,e){void 0===e&&(e={});var i=this.add(t,e);for(var n in i.spritemap=this.jsonCache.get(t).spritemap,i.spritemap)if(i.spritemap.hasOwnProperty(n)){var s=r(e),a=i.spritemap[n];s.loop=!!a.hasOwnProperty(\"loop\")&&a.loop,i.addMarker({name:n,start:a.start,duration:a.end-a.start,config:s})}return i},get:function(t){return h(this.sounds,\"key\",t)},getAll:function(t){return t?l(this.sounds,\"key\",t):l(this.sounds)},getAllPlaying:function(){return l(this.sounds,\"isPlaying\",!0)},play:function(t,e){var i=this.add(t);return i.once(a.COMPLETE,i.destroy,i),e?e.name?(i.addMarker(e),i.play(e.name)):i.play(e):i.play()},playAudioSprite:function(t,e,i){var n=this.addAudioSprite(t);return n.once(a.COMPLETE,n.destroy,n),n.play(e,i)},remove:function(t){var e=this.sounds.indexOf(t);return-1!==e&&(t.destroy(),this.sounds.splice(e,1),!0)},removeAll:function(){this.sounds.forEach((function(t){t.destroy()})),this.sounds.length=0},removeByKey:function(t){for(var e=0,i=this.sounds.length-1;i>=0;i--){var n=this.sounds[i];n.key===t&&(n.destroy(),this.sounds.splice(i,1),e++)}return e},pauseAll:function(){this.forEachActiveSound((function(t){t.pause()})),this.emit(a.PAUSE_ALL,this)},resumeAll:function(){this.forEachActiveSound((function(t){t.resume()})),this.emit(a.RESUME_ALL,this)},setListenerPosition:u,stopAll:function(){this.forEachActiveSound((function(t){t.stop()})),this.emit(a.STOP_ALL,this)},stopByKey:function(t){var e=0;return this.getAll(t).forEach((function(t){t.stop()&&e++})),e},isPlaying:function(t){var e,i=this.sounds.length-1;if(void 0===t){for(;i>=0;i--)if((e=this.sounds[i]).isPlaying)return!0}else for(;i>=0;i--)if((e=this.sounds[i]).key===t&&e.isPlaying)return!0;return!1},unlock:u,onBlur:u,onFocus:u,onGameBlur:function(){this.gameLostFocus=!0,this.pauseOnBlur&&this.onBlur()},onGameFocus:function(){this.gameLostFocus=!1,this.pauseOnBlur&&this.onFocus()},update:function(t,e){this.unlocked&&(this.unlocked=!1,this.locked=!1,this.emit(a.UNLOCKED,this));for(var i=this.sounds.length-1;i>=0;i--)this.sounds[i].pendingRemove&&this.sounds.splice(i,1);this.sounds.forEach((function(i){i.update(t,e)}))},destroy:function(){this.game.events.off(o.BLUR,this.onGameBlur,this),this.game.events.off(o.FOCUS,this.onGameFocus,this),this.game.events.off(o.PRE_STEP,this.update,this),this.removeAllListeners(),this.removeAll(),this.sounds.length=0,this.sounds=null,this.listenerPosition=null,this.game=null},forEachActiveSound:function(t,e){var i=this;this.sounds.forEach((function(n,r){n&&!n.pendingRemove&&t.call(e||i,n,r,i.sounds)}))},setRate:function(t){return this.rate=t,this},rate:{get:function(){return this._rate},set:function(t){this._rate=t,this.forEachActiveSound((function(t){t.calculateRate()})),this.emit(a.GLOBAL_RATE,this,t)}},setDetune:function(t){return this.detune=t,this},detune:{get:function(){return this._detune},set:function(t){this._detune=t,this.forEachActiveSound((function(t){t.calculateRate()})),this.emit(a.GLOBAL_DETUNE,this,t)}}});t.exports=d},14747:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @author Pavle Goloskokovic (http://prunegames.com)\n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(33684),r=i(25960),s=i(57490),a={create:function(t){var e=t.config.audio,i=t.device.audio;return e.noAudio||!i.webAudio&&!i.audioData?new r(t):i.webAudio&&!e.disableWebAudio?new s(t):new n(t)}};t.exports=a},19723:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports=\"complete\"},98882:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports=\"decodedall\"},57506:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports=\"decoded\"},73146:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports=\"destroy\"},11305:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports=\"detune\"},40577:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports=\"detune\"},30333:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports=\"mute\"},20394:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports=\"rate\"},21802:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports=\"volume\"},1299:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports=\"looped\"},99190:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports=\"loop\"},97125:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports=\"mute\"},89259:t=>{\n/**\n * @author pi-kei\n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports=\"pan\"},79986:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports=\"pauseall\"},17586:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports=\"pause\"},19618:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports=\"play\"},42306:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports=\"rate\"},10387:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports=\"resumeall\"},48959:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports=\"resume\"},9960:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports=\"seek\"},19180:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports=\"stopall\"},98328:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports=\"stop\"},50401:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports=\"unlocked\"},52498:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports=\"volume\"},14463:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports={COMPLETE:i(19723),DECODED:i(57506),DECODED_ALL:i(98882),DESTROY:i(73146),DETUNE:i(11305),GLOBAL_DETUNE:i(40577),GLOBAL_MUTE:i(30333),GLOBAL_RATE:i(20394),GLOBAL_VOLUME:i(21802),LOOP:i(99190),LOOPED:i(1299),MUTE:i(97125),PAN:i(89259),PAUSE_ALL:i(79986),PAUSE:i(17586),PLAY:i(19618),RATE:i(42306),RESUME_ALL:i(10387),RESUME:i(48959),SEEK:i(9960),STOP_ALL:i(19180),STOP:i(98328),UNLOCKED:i(50401),VOLUME:i(52498)}},64895:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @author Pavle Goloskokovic (http://prunegames.com)\n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(30341),r=i(83419),s=i(14463),a=i(45319),o=new r({Extends:n,initialize:function(t,e,i){if(void 0===i&&(i={}),this.tags=t.game.cache.audio.get(e),!this.tags)throw new Error('No cached audio asset with key \"'+e);this.audio=null,this.startTime=0,this.previousTime=0,this.duration=this.tags[0].duration,this.totalDuration=this.tags[0].duration,n.call(this,t,e,i)},play:function(t,e){return!(this.manager.isLocked(this,\"play\",[t,e])||!n.prototype.play.call(this,t,e)||!this.pickAndPlayAudioTag()||(this.emit(s.PLAY,this),0))},pause:function(){return!(this.manager.isLocked(this,\"pause\")||this.startTime>0||!n.prototype.pause.call(this)||(this.currentConfig.seek=this.audio.currentTime-(this.currentMarker?this.currentMarker.start:0),this.stopAndReleaseAudioTag(),this.emit(s.PAUSE,this),0))},resume:function(){return!(this.manager.isLocked(this,\"resume\")||this.startTime>0||!n.prototype.resume.call(this)||!this.pickAndPlayAudioTag()||(this.emit(s.RESUME,this),0))},stop:function(){return!this.manager.isLocked(this,\"stop\")&&!!n.prototype.stop.call(this)&&(this.stopAndReleaseAudioTag(),this.emit(s.STOP,this),!0)},pickAndPlayAudioTag:function(){if(!this.pickAudioTag())return this.reset(),!1;var t=this.currentConfig.seek,e=this.currentConfig.delay,i=(this.currentMarker?this.currentMarker.start:0)+t;return this.previousTime=i,this.audio.currentTime=i,this.applyConfig(),0===e?(this.startTime=0,this.audio.paused&&this.playCatchPromise()):(this.startTime=window.performance.now()+1e3*e,this.audio.paused||this.audio.pause()),this.resetConfig(),!0},pickAudioTag:function(){if(this.audio)return!0;for(var t=0;t0)this.startTime=i-this.manager.loopEndOffset?(this.audio.currentTime=e+Math.max(0,n-i),n=this.audio.currentTime):n=i)return this.reset(),this.stopAndReleaseAudioTag(),void this.emit(s.COMPLETE,this);this.previousTime=n}},destroy:function(){n.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=a(this.currentConfig.volume*this.manager.volume,0,1))},calculateRate:function(){n.prototype.calculateRate.call(this),this.audio&&(this.audio.playbackRate=this.totalRate)},mute:{get:function(){return this.currentConfig.mute},set:function(t){this.currentConfig.mute=t,this.manager.isLocked(this,\"mute\",t)||(this.updateMute(),this.emit(s.MUTE,this,t))}},setMute:function(t){return this.mute=t,this},volume:{get:function(){return this.currentConfig.volume},set:function(t){this.currentConfig.volume=t,this.manager.isLocked(this,\"volume\",t)||(this.updateVolume(),this.emit(s.VOLUME,this,t))}},setVolume:function(t){return this.volume=t,this},rate:{get:function(){return this.currentConfig.rate},set:function(t){this.currentConfig.rate=t,this.manager.isLocked(this,s.RATE,t)||(this.calculateRate(),this.emit(s.RATE,this,t))}},setRate:function(t){return this.rate=t,this},detune:{get:function(){return this.currentConfig.detune},set:function(t){this.currentConfig.detune=t,this.manager.isLocked(this,s.DETUNE,t)||(this.calculateRate(),this.emit(s.DETUNE,this,t))}},setDetune:function(t){return this.detune=t,this},seek:{get:function(){return this.isPlaying?this.audio.currentTime-(this.currentMarker?this.currentMarker.start:0):this.isPaused?this.currentConfig.seek:0},set:function(t){this.manager.isLocked(this,\"seek\",t)||this.startTime>0||(this.isPlaying||this.isPaused)&&(t=Math.min(Math.max(0,t),this.duration),this.isPlaying?(this.previousTime=t,this.audio.currentTime=t):this.isPaused&&(this.currentConfig.seek=t),this.emit(s.SEEK,this,t))}},setSeek:function(t){return this.seek=t,this},loop:{get:function(){return this.currentConfig.loop},set:function(t){this.currentConfig.loop=t,this.manager.isLocked(this,\"loop\",t)||(this.audio&&(this.audio.loop=t),this.emit(s.LOOP,this,t))}},setLoop:function(t){return this.loop=t,this},pan:{get:function(){return this.currentConfig.pan},set:function(t){this.currentConfig.pan=t,this.emit(s.PAN,this,t)}},setPan:function(t){return this.pan=t,this}});t.exports=o},33684:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @author Pavle Goloskokovic (http://prunegames.com)\n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(85034),r=i(83419),s=i(14463),a=i(64895),o=new r({Extends:n,initialize:function(t){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,n.call(this,t)},add:function(t,e){var i=new a(this,t,e);return this.sounds.push(i),i},unlock:function(){this.locked=!1;var t=this;if(this.game.cache.audio.entries.each((function(e,i){for(var n=0;n{\n/**\n * @author Richard Davey \n * @author Pavle Goloskokovic (http://prunegames.com)\n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports={SoundManagerCreator:i(14747),Events:i(14463),BaseSound:i(30341),BaseSoundManager:i(85034),WebAudioSound:i(71741),WebAudioSoundManager:i(57490),HTML5AudioSound:i(64895),HTML5AudioSoundManager:i(33684),NoAudioSound:i(4603),NoAudioSoundManager:i(25960)}},4603:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @author Pavle Goloskokovic (http://prunegames.com)\n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(30341),r=i(83419),s=i(50792),a=i(79291),o=i(29747),l=function(){return!1},h=function(){return null},u=function(){return this},c=new r({Extends:s,initialize:function(t,e,i){void 0===i&&(i={}),s.call(this),this.manager=t,this.key=e,this.isPlaying=!1,this.isPaused=!1,this.totalRate=1,this.duration=0,this.totalDuration=0,this.config=a({mute:!1,volume:1,rate:1,detune:0,seek:0,loop:!1,delay:0,pan:0},i),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:l,updateMarker:l,removeMarker:h,play:l,pause:l,resume:l,stop:l,setMute:u,setVolume:u,setRate:u,setDetune:u,setSeek:u,setLoop:u,setPan:u,applyConfig:h,resetConfig:h,update:o,calculateRate:h,destroy:function(){n.prototype.destroy.call(this)}});t.exports=c},25960:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @author Pavle Goloskokovic (http://prunegames.com)\n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(85034),r=i(83419),s=i(50792),a=i(4603),o=i(29747),l=new r({Extends:s,initialize:function(t){s.call(this),this.game=t,this.sounds=[],this.mute=!1,this.volume=1,this.rate=1,this.detune=0,this.pauseOnBlur=!0,this.locked=!1},add:function(t,e){var i=new a(this,t,e);return this.sounds.push(i),i},addAudioSprite:function(t,e){var i=this.add(t,e);return i.spritemap={},i},get:function(t){return n.prototype.get.call(this,t)},getAll:function(t){return n.prototype.getAll.call(this,t)},play:function(t,e){return!1},playAudioSprite:function(t,e,i){return!1},remove:function(t){return n.prototype.remove.call(this,t)},removeAll:function(){return n.prototype.removeAll.call(this)},removeByKey:function(t){return n.prototype.removeByKey.call(this,t)},stopByKey:function(t){return n.prototype.stopByKey.call(this,t)},onBlur:o,onFocus:o,onGameBlur:o,onGameFocus:o,pauseAll:o,resumeAll:o,stopAll:o,update:o,setRate:o,setDetune:o,setMute:o,setVolume:o,unlock:o,forEachActiveSound:function(t,e){n.prototype.forEachActiveSound.call(this,t,e)},destroy:function(){n.prototype.destroy.call(this)}});t.exports=l},71741:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @author Pavle Goloskokovic (http://prunegames.com)\n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(30341),r=i(83419),s=i(14463),a=i(95540),o=new r({Extends:n,initialize:function(t,e,i){if(void 0===i&&(i={}),this.audioBuffer=t.game.cache.audio.get(e),!this.audioBuffer)throw new Error('Audio key \"'+e+'\" not found in cache');this.source=null,this.loopSource=null,this.muteNode=t.context.createGain(),this.volumeNode=t.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),t.context.createPanner&&(this.spatialNode=t.context.createPanner(),this.volumeNode.connect(this.spatialNode)),t.context.createStereoPanner?(this.pannerNode=t.context.createStereoPanner(),t.context.createPanner?this.spatialNode.connect(this.pannerNode):this.volumeNode.connect(this.pannerNode),this.pannerNode.connect(t.destination)):t.context.createPanner?this.spatialNode.connect(t.destination):this.volumeNode.connect(t.destination),this.duration=this.audioBuffer.duration,this.totalDuration=this.audioBuffer.duration,n.call(this,t,e,i)},play:function(t,e){return!!n.prototype.play.call(this,t,e)&&(this.stopAndRemoveBufferSource(),this.createAndStartBufferSource(),this.emit(s.PLAY,this),!0)},pause:function(){return!(this.manager.context.currentTime{\n/**\n * @author Richard Davey \n * @author Pavle Goloskokovic (http://prunegames.com)\n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(53134),r=i(85034),s=i(83419),a=i(14463),o=i(8443),l=i(71741),h=i(95540),u=new s({Extends:r,initialize:function(t){this.context=this.createAudioContext(t),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=\"suspended\"===this.context.state,r.call(this,t),this.locked&&(t.isBooted?this.unlock():t.events.once(o.BOOT,this.unlock,this)),t.events.on(o.VISIBLE,this.onGameVisible,this)},onGameVisible:function(){var t=this.context;window.setTimeout((function(){t&&(t.suspend(),t.resume())}),100)},createAudioContext:function(t){var e=t.config.audio;return e.context?(e.context.resume(),e.context):window.hasOwnProperty(\"AudioContext\")?new AudioContext:window.hasOwnProperty(\"webkitAudioContext\")?new window.webkitAudioContext:void 0},setAudioContext:function(t){return this.context&&this.context.close(),this.masterMuteNode&&this.masterMuteNode.disconnect(),this.masterVolumeNode&&this.masterVolumeNode.disconnect(),this.context=t,this.masterMuteNode=t.createGain(),this.masterVolumeNode=t.createGain(),this.masterMuteNode.connect(this.masterVolumeNode),this.masterVolumeNode.connect(t.destination),this.destination=this.masterMuteNode,this},add:function(t,e){var i=new l(this,t,e);return this.sounds.push(i),i},decodeAudio:function(t,e){var i;i=Array.isArray(t)?t:[{key:t,data:e}];for(var r=this.game.cache.audio,s=i.length,o=0;o{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(37105),r=i(83419),s=i(29747),a=i(19186),o=new r({initialize:function(t){this.parent=t,this.list=[],this.position=0,this.addCallback=s,this.removeCallback=s,this._sortKey=\"\"},add:function(t,e){return e?n.Add(this.list,t):n.Add(this.list,t,0,this.addCallback,this)},addAt:function(t,e,i){return i?n.AddAt(this.list,t,e):n.AddAt(this.list,t,e,0,this.addCallback,this)},getAt:function(t){return this.list[t]},getIndex:function(t){return this.list.indexOf(t)},sort:function(t,e){return t?(void 0===e&&(e=function(e,i){return e[t]-i[t]}),a(this.list,e),this):this},getByName:function(t){return n.GetFirst(this.list,\"name\",t)},getRandom:function(t,e){return n.GetRandom(this.list,t,e)},getFirst:function(t,e,i,r){return n.GetFirst(this.list,t,e,i,r)},getAll:function(t,e,i,r){return n.GetAll(this.list,t,e,i,r)},count:function(t,e){return n.CountAllMatching(this.list,t,e)},swap:function(t,e){n.Swap(this.list,t,e)},moveTo:function(t,e){return n.MoveTo(this.list,t,e)},moveAbove:function(t,e){return n.MoveAbove(this.list,t,e)},moveBelow:function(t,e){return n.MoveBelow(this.list,t,e)},remove:function(t,e){return e?n.Remove(this.list,t):n.Remove(this.list,t,this.removeCallback,this)},removeAt:function(t,e){return e?n.RemoveAt(this.list,t):n.RemoveAt(this.list,t,this.removeCallback,this)},removeBetween:function(t,e,i){return i?n.RemoveBetween(this.list,t,e):n.RemoveBetween(this.list,t,e,this.removeCallback,this)},removeAll:function(t){for(var e=this.list.length;e--;)this.remove(this.list[e],t);return this},bringToTop:function(t){return n.BringToTop(this.list,t)},sendToBack:function(t){return n.SendToBack(this.list,t)},moveUp:function(t){return n.MoveUp(this.list,t),t},moveDown:function(t){return n.MoveDown(this.list,t),t},reverse:function(){return this.list.reverse(),this},shuffle:function(){return n.Shuffle(this.list),this},replace:function(t,e){return n.Replace(this.list,t,e)},exists:function(t){return this.list.indexOf(t)>-1},setAll:function(t,e,i,r){return n.SetAll(this.list,t,e,i,r),this},each:function(t,e){for(var i=[null],n=2;n0?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}}});t.exports=o},90330:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=new(i(83419))({initialize:function(t){this.entries={},this.size=0,this.setAll(t)},setAll:function(t){if(Array.isArray(t))for(var e=0;e{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(83419),r=i(50792),s=i(82348),a=new n({Extends:r,initialize:function(){r.call(this),this._pending=[],this._active=[],this._destroy=[],this._toProcess=0,this.checkQueue=!1},isActive:function(t){return this._active.indexOf(t)>-1},isPending:function(t){return this._toProcess>0&&this._pending.indexOf(t)>-1},isDestroying:function(t){return this._destroy.indexOf(t)>-1},add:function(t){return this.checkQueue&&this.isActive(t)&&!this.isDestroying(t)||this.isPending(t)||(this._pending.push(t),this._toProcess++),t},remove:function(t){if(this.isPending(t)){var e=this._pending,i=e.indexOf(t);-1!==i&&e.splice(i,1)}else this.isActive(t)&&(this._destroy.push(t),this._toProcess++);return t},removeAll:function(){for(var t=this._active,e=this._destroy,i=t.length;i--;)e.push(t[i]),this._toProcess++;return this},update:function(){if(0===this._toProcess)return this._active;var t,e,i=this._destroy,n=this._active;for(t=0;t{\n/**\n * @author Vladimir Agafonkin\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(43886);function r(t){if(!(this instanceof r))return new r(t,[\".left\",\".top\",\".right\",\".bottom\"]);this._maxEntries=Math.max(4,t||9),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),this.clear()}function s(t,e,i){if(!i)return e.indexOf(t);for(var n=0;n=t.minX&&e.maxY>=t.minY}function m(t){return{children:t,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function g(t,e,i,r,s){for(var a,o=[e,i];o.length;)(i=o.pop())-(e=o.pop())<=r||(a=e+Math.ceil((i-e)/r/2)*r,n(t,a,e,i,s),o.push(e,a,a,i))}r.prototype={all:function(){return this._all(this.data,[])},search:function(t){var e=this.data,i=[],n=this.toBBox;if(!p(t,e))return i;for(var r,s,a,o,l=[];e;){for(r=0,s=e.children.length;r=0&&s[e].children.length>this._maxEntries;)this._split(s,e),e--;this._adjustParentBBoxes(r,s,e)},_split:function(t,e){var i=t[e],n=i.children.length,r=this._minEntries;this._chooseSplitAxis(i,r,n);var s=this._chooseSplitIndex(i,r,n),o=m(i.children.splice(s,i.children.length-s));o.height=i.height,o.leaf=i.leaf,a(i,this.toBBox),a(o,this.toBBox),e?t[e-1].children.push(o):this._splitRoot(i,o)},_splitRoot:function(t,e){this.data=m([t,e]),this.data.height=t.height+1,this.data.leaf=!1,a(this.data,this.toBBox)},_chooseSplitIndex:function(t,e,i){var n,r,s,a,l,h,u,d,f,p,m,g,v,y;for(h=u=1/0,n=e;n<=i-e;n++)r=o(t,0,n,this.toBBox),s=o(t,n,i,this.toBBox),f=r,p=s,m=void 0,g=void 0,v=void 0,y=void 0,m=Math.max(f.minX,p.minX),g=Math.max(f.minY,p.minY),v=Math.min(f.maxX,p.maxX),y=Math.min(f.maxY,p.maxY),a=Math.max(0,v-m)*Math.max(0,y-g),l=c(r)+c(s),a=e;r--)s=t.children[r],l(u,t.leaf?a(s):s),c+=d(u);return c},_adjustParentBBoxes:function(t,e,i){for(var n=i;n>=0;n--)l(e[n],t)},_condense:function(t){for(var e,i=t.length-1;i>=0;i--)0===t[i].children.length?i>0?(e=t[i-1].children).splice(e.indexOf(t[i]),1):this.clear():a(t[i],this.toBBox)},compareMinX:function(t,e){return t.left-e.left},compareMinY:function(t,e){return t.top-e.top},toBBox:function(t){return{minX:t.left,minY:t.top,maxX:t.right,maxY:t.bottom}}},t.exports=r},35072:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=new(i(83419))({initialize:function(t){if(this.entries=[],Array.isArray(t))for(var e=0;e-1&&this.entries.splice(e,1),this},dump:function(){console.group(\"Set\");for(var t=0;t-1},union:function(t){var e=new n;return t.entries.forEach((function(t){e.set(t)})),this.entries.forEach((function(t){e.set(t)})),e},intersect:function(t){var e=new n;return this.entries.forEach((function(i){t.contains(i)&&e.set(i)})),e},difference:function(t){var e=new n;return this.entries.forEach((function(i){t.contains(i)||e.set(i)})),e},size:{get:function(){return this.entries.length},set:function(t){return t{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(45319),r=i(83419),s=i(56583),a=i(26099),o=new r({initialize:function(t,e,i,n){void 0===t&&(t=0),void 0===e&&(e=t),void 0===i&&(i=0),void 0===n&&(n=null),this._width=t,this._height=e,this._parent=n,this.aspectMode=i,this.aspectRatio=0===e?1:t/e,this.minWidth=0,this.minHeight=0,this.maxWidth=Number.MAX_VALUE,this.maxHeight=Number.MAX_VALUE,this.snapTo=new a},setAspectMode:function(t){return void 0===t&&(t=0),this.aspectMode=t,this.setSize(this._width,this._height)},setSnap:function(t,e){return void 0===t&&(t=0),void 0===e&&(e=t),this.snapTo.set(t,e),this.setSize(this._width,this._height)},setParent:function(t){return this._parent=t,this.setSize(this._width,this._height)},setMin:function(t,e){return void 0===t&&(t=0),void 0===e&&(e=t),this.minWidth=n(t,0,this.maxWidth),this.minHeight=n(e,0,this.maxHeight),this.setSize(this._width,this._height)},setMax:function(t,e){return void 0===t&&(t=Number.MAX_VALUE),void 0===e&&(e=t),this.maxWidth=n(t,this.minWidth,Number.MAX_VALUE),this.maxHeight=n(e,this.minHeight,Number.MAX_VALUE),this.setSize(this._width,this._height)},setSize:function(t,e){switch(void 0===t&&(t=0),void 0===e&&(e=t),this.aspectMode){case o.NONE:this._width=this.getNewWidth(s(t,this.snapTo.x)),this._height=this.getNewHeight(s(e,this.snapTo.y)),this.aspectRatio=0===this._height?1:this._width/this._height;break;case o.WIDTH_CONTROLS_HEIGHT:this._width=this.getNewWidth(s(t,this.snapTo.x)),this._height=this.getNewHeight(this._width*(1/this.aspectRatio),!1);break;case o.HEIGHT_CONTROLS_WIDTH:this._height=this.getNewHeight(s(e,this.snapTo.y)),this._width=this.getNewWidth(this._height*this.aspectRatio,!1);break;case o.FIT:this.constrain(t,e,!0);break;case o.ENVELOP:this.constrain(t,e,!1)}return this},setAspectRatio:function(t){return this.aspectRatio=t,this.setSize(this._width,this._height)},resize:function(t,e){return this._width=this.getNewWidth(s(t,this.snapTo.x)),this._height=this.getNewHeight(s(e,this.snapTo.y)),this.aspectRatio=0===this._height?1:this._width/this._height,this},getNewWidth:function(t,e){return void 0===e&&(e=!0),t=n(t,this.minWidth,this.maxWidth),e&&this._parent&&t>this._parent.width&&(t=Math.max(this.minWidth,this._parent.width)),t},getNewHeight:function(t,e){return void 0===e&&(e=!0),t=n(t,this.minHeight,this.maxHeight),e&&this._parent&&t>this._parent.height&&(t=Math.max(this.minHeight,this._parent.height)),t},constrain:function(t,e,i){void 0===t&&(t=0),void 0===e&&(e=t),void 0===i&&(i=!0),t=this.getNewWidth(t),e=this.getNewHeight(e);var n=this.snapTo,r=0===e?1:t/e;return i&&this.aspectRatio>r||!i&&this.aspectRatio0&&(t=(e=s(e,n.y))*this.aspectRatio)):(i&&this.aspectRatior)&&(t=(e=s(e,n.y))*this.aspectRatio,n.x>0&&(e=(t=s(t,n.x))*(1/this.aspectRatio))),this._width=t,this._height=e,this},fitTo:function(t,e){return this.constrain(t,e,!0)},envelop:function(t,e){return this.constrain(t,e,!1)},setWidth:function(t){return this.setSize(t,this._height)},setHeight:function(t){return this.setSize(this._width,t)},toString:function(){return\"[{ Size (width=\"+this._width+\" height=\"+this._height+\" aspectRatio=\"+this.aspectRatio+\" aspectMode=\"+this.aspectMode+\") }]\"},setCSS:function(t){t&&t.style&&(t.style.width=this._width+\"px\",t.style.height=this._height+\"px\")},copy:function(t){return t.setAspectMode(this.aspectMode),t.aspectRatio=this.aspectRatio,t.setSize(this.width,this.height)},destroy:function(){this._parent=null,this.snapTo=null},width:{get:function(){return this._width},set:function(t){this.setSize(t,this._height)}},height:{get:function(){return this._height},set:function(t){this.setSize(this._width,t)}}});o.NONE=0,o.WIDTH_CONTROLS_HEIGHT=1,o.HEIGHT_CONTROLS_WIDTH=2,o.FIT=3,o.ENVELOP=4,t.exports=o},15238:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports=\"add\"},56187:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports=\"remove\"},82348:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports={PROCESS_QUEUE_ADD:i(15238),PROCESS_QUEUE_REMOVE:i(56187)}},41392:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports={Events:i(82348),List:i(73162),Map:i(90330),ProcessQueue:i(25774),RTree:i(59542),Set:i(35072),Size:i(86555)}},57382:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(83419),r=i(45319),s=i(40987),a=i(8054),o=i(50030),l=i(79237),h=new n({Extends:l,initialize:function(t,e,i,n,r){l.call(this,t,e,i,n,r),this.add(\"__BASE\",0,0,0,n,r),this._source=this.frames.__BASE.source,this.canvas=this._source.image,this.context=this.canvas.getContext(\"2d\",{willReadFrequently:!0}),this.width=n,this.height=r,this.imageData=this.context.getImageData(0,0,n,r),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===a.WEBGL&&this.refresh(),this},draw:function(t,e,i,n){return void 0===n&&(n=!0),this.context.drawImage(i,t,e),n&&this.update(),this},drawFrame:function(t,e,i,n,r){void 0===i&&(i=0),void 0===n&&(n=0),void 0===r&&(r=!0);var s=this.manager.getFrame(t,e);if(s){var a=s.canvasData,o=s.cutWidth,l=s.cutHeight,h=s.source.resolution;this.context.drawImage(s.source.image,a.x,a.y,o,l,i,n,o/h,l/h),r&&this.update()}return this},setPixel:function(t,e,i,n,r,s){if(void 0===s&&(s=255),t=Math.abs(Math.floor(t)),e=Math.abs(Math.floor(e)),this.getIndex(t,e)>-1){var a=this.context.getImageData(t,e,1,1);a.data[0]=i,a.data[1]=n,a.data[2]=r,a.data[3]=s,this.context.putImageData(a,t,e)}return this},putData:function(t,e,i,n,r,s,a){return void 0===n&&(n=0),void 0===r&&(r=0),void 0===s&&(s=t.width),void 0===a&&(a=t.height),this.context.putImageData(t,e,i,n,r,s,a),this},getData:function(t,e,i,n){return t=r(Math.floor(t),0,this.width-1),e=r(Math.floor(e),0,this.height-1),i=r(i,1,this.width-t),n=r(n,1,this.height-e),this.context.getImageData(t,e,i,n)},getPixel:function(t,e,i){i||(i=new s);var n=this.getIndex(t,e);if(n>-1){var r=this.data,a=r[n+0],o=r[n+1],l=r[n+2],h=r[n+3];i.setTo(a,o,l,h)}return i},getPixels:function(t,e,i,n){void 0===t&&(t=0),void 0===e&&(e=0),void 0===i&&(i=this.width),void 0===n&&(n=i),t=Math.abs(Math.round(t)),e=Math.abs(Math.round(e));for(var a=r(t,0,this.width),o=r(t+i,0,this.width),l=r(e,0,this.height),h=r(e+n,0,this.height),u=new s,c=[],d=l;d{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(10312),r=i(38058),s=i(27919),a=i(83419),o=i(8054),l=i(4327),h=i(95540),u=i(36060),c=i(32302),d=i(79237),f=i(70554),p=new a({Extends:d,initialize:function(t,e,i,n,a){void 0===i&&(i=256),void 0===n&&(n=256),void 0===a&&(a=!0),this.type=\"DynamicTexture\";var l=t.game.renderer,h=l&&l.type===o.CANVAS,f=h?s.create2D(this,i,n):[this];d.call(this,t,e,f,i,n),this.add(\"__BASE\",0,0,0,i,n),this.renderer=l,this.width=-1,this.height=-1,this.isDrawing=!1,this.canvas=h?f:null,this.context=h?f.getContext(\"2d\",{willReadFrequently:!0}):null,this.dirty=!1,this.isSpriteTexture=!0,this._eraseMode=!1,this.camera=new r(0,0,i,n).setScene(t.game.scene.systemScene,!1),this.renderTarget=h?null:new c(l,i,n,1,0,!1,!1,!0,!1),this.pipeline=h?null:l.pipelines.get(u.SINGLE_PIPELINE),this.setSize(i,n,a)},setSize:function(t,e,i){void 0===e&&(e=t),void 0===i&&(i=!0),i&&((t=Math.floor(t))%2!=0&&t++,(e=Math.floor(e))%2!=0&&e++);var n=this.get(),r=n.source;if(t!==this.width||e!==this.height){this.canvas&&(this.canvas.width=t,this.canvas.height=e);var s=this.renderTarget;s&&(s.willResize(t,e)&&s.resize(t,e),s.texture!==r.glTexture&&this.renderer.deleteTexture(r.glTexture),this.setFromRenderTarget()),this.camera.setSize(t,e),r.width=t,r.height=e,n.setSize(t,e),this.width=t,this.height=e}else{var a=this.getSourceImage();n.cutX+t>a.width&&(t=a.width-n.cutX),n.cutY+e>a.height&&(e=a.height-n.cutY),n.setSize(t,e,n.cutX,n.cutY)}return this},setFromRenderTarget:function(){var t=this.get().source,e=this.renderTarget;return t.isRenderTexture=!0,t.isGLTexture=!0,t.glTexture=e.texture,this},setIsSpriteTexture:function(t){return this.isSpriteTexture=t,this},fill:function(t,e,i,n,r,s){var a=this.camera,o=this.renderer;void 0===e&&(e=1),void 0===i&&(i=0),void 0===n&&(n=0),void 0===r&&(r=this.width),void 0===s&&(s=this.height);var l=t>>16&255,h=t>>8&255,u=255&t,c=this.renderTarget;if(a.preRender(),c){c.bind(!0);var d=this.pipeline.manager.set(this.pipeline),p=o.width/c.width,m=o.height/c.height,g=c.height-(n+s);d.drawFillRect(i*p,g*m,r*p,s*m,f.getTintFromFloats(u/255,h/255,l/255,1),e),c.unbind(!0)}else{var v=this.context;o.setContext(v),v.globalCompositeOperation=\"source-over\",v.fillStyle=\"rgba(\"+l+\",\"+h+\",\"+u+\",\"+e+\")\",v.fillRect(i,n,r,s),o.setContext()}return this.dirty=!0,this},clear:function(t,e,i,n){if(this.dirty){var r=this.context,s=this.renderTarget;s?s.clear(t,e,i,n):r&&(void 0!==t&&void 0!==e&&void 0!==i&&void 0!==n?r.clearRect(t,e,i,n):(r.save(),r.setTransform(1,0,0,1,0,0),r.clearRect(0,0,this.width,this.height),r.restore())),this.dirty=!1}return this},stamp:function(t,e,i,n,r){void 0===i&&(i=0),void 0===n&&(n=0);var s=h(r,\"alpha\",1),a=h(r,\"tint\",16777215),o=h(r,\"angle\",0),l=h(r,\"rotation\",0),u=h(r,\"scale\",1),c=h(r,\"scaleX\",u),d=h(r,\"scaleY\",u),f=h(r,\"originX\",.5),p=h(r,\"originY\",.5),m=h(r,\"blendMode\",0),g=h(r,\"erase\",!1),v=h(r,\"skipBatch\",!1),y=this.manager.resetStamp(s,a);return y.setAngle(0),0!==o?y.setAngle(o):0!==l&&y.setRotation(l),y.setScale(c,d),y.setTexture(t,e),y.setOrigin(f,p),y.setBlendMode(m),g&&(this._eraseMode=!0),v?this.batchGameObject(y,i,n):this.draw(y,i,n),g&&(this._eraseMode=!1),this},erase:function(t,e,i){return this._eraseMode=!0,this.draw(t,e,i),this._eraseMode=!1,this},draw:function(t,e,i,n,r){return this.beginDraw(),this.batchDraw(t,e,i,n,r),this.endDraw(),this},drawFrame:function(t,e,i,n,r,s){return this.beginDraw(),this.batchDrawFrame(t,e,i,n,r,s),this.endDraw(),this},repeat:function(t,e,i,n,r,s,a,o,h){if(void 0===i&&(i=0),void 0===n&&(n=0),void 0===r&&(r=this.width),void 0===s&&(s=this.height),void 0===a&&(a=1),void 0===o&&(o=16777215),void 0===h&&(h=!1),!(e=t instanceof l?t:this.manager.getFrame(t,e)))return this;var u=this.manager.resetStamp(a,o);u.setFrame(e),u.setOrigin(0);var c=e.width,d=e.height;r=Math.floor(r),s=Math.floor(s);var f=Math.ceil(r/c),p=Math.ceil(s/d),m=f*c-r,g=p*d-s;m>0&&(m=c-m),g>0&&(g=d-g),i<0&&(f+=Math.ceil(Math.abs(i)/c)),n<0&&(p+=Math.ceil(Math.abs(n)/d));var v=i,y=n,b=!1,x=this.manager.stampCrop.setTo(0,0,c,d);h||this.beginDraw();for(var w=0;w0&&T===f-1&&(b=!0,x.width=m),g>0&&w===p-1&&(b=!0,x.height=g),b&&u.setCrop(x),this.batchGameObject(u,v,y),u.isCropped=!1,x.setTo(0,0,c,d)),v+=c;v=i,y+=d}return h||this.endDraw(),this},beginDraw:function(){if(!this.isDrawing){var t=this.camera,e=this.renderer,i=this.renderTarget;t.preRender(),i?e.beginCapture(i.width,i.height):e.setContext(this.context),this.isDrawing=!0}return this},batchDraw:function(t,e,i,n,r){return Array.isArray(t)||(t=[t]),this.batchList(t,e,i,n,r),this},batchDrawFrame:function(t,e,i,n,r,s){void 0===i&&(i=0),void 0===n&&(n=0),void 0===r&&(r=1),void 0===s&&(s=16777215);var a=this.manager.getFrame(t,e);return a&&(this.renderTarget?this.pipeline.batchTextureFrame(a,i,n,s,r,this.camera.matrix,null):this.batchTextureFrame(a,i,n,r,s)),this},endDraw:function(t){if(void 0===t&&(t=this._eraseMode),this.isDrawing){var e=this.renderer,i=this.renderTarget;if(i){var n=e.endCapture();e.pipelines.setUtility().blitFrame(n,i,1,!1,!1,t,this.isSpriteTexture),e.resetScissor(),e.resetViewport()}else e.setContext();this.dirty=!0,this.isDrawing=!1}return this},batchList:function(t,e,i,n,r){var s=t.length;if(0!==s)for(var a=0;a0&&o.height>0&&a.drawImage(l,o.x,o.y,o.width,o.height,e,i,o.width,o.height),a.restore()}},snapshotArea:function(t,e,i,n,r,s,a){return this.renderTarget?this.renderer.snapshotFramebuffer(this.renderTarget.framebuffer,this.width,this.height,r,!1,t,e,i,n,s,a):this.renderer.snapshotCanvas(this.canvas,r,!1,t,e,i,n,s,a),this},snapshot:function(t,e,i){return this.snapshotArea(0,0,this.width,this.height,t,e,i)},snapshotPixel:function(t,e,i){return this.snapshotArea(t,e,1,1,i,\"pixel\")},getWebGLTexture:function(){if(this.renderTarget)return this.renderTarget.texture},renderWebGL:function(t,e,i,n){var r=this.manager.resetStamp();r.setTexture(this),r.setOrigin(0),r.renderWebGL(t,r,i,n)},renderCanvas:function(){},destroy:function(){var t=this.manager.stamp;t&&t.texture===this&&this.manager.resetStamp(),d.prototype.destroy.call(this),s.remove(this.canvas),this.renderTarget&&this.renderTarget.destroy(),this.camera.destroy(),this.canvas=null,this.context=null,this.renderer=null}});t.exports=p},4327:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(83419),r=i(45319),s=i(79291),a=new n({initialize:function(t,e,i,n,r,s,a){this.texture=t,this.name=e,this.source=t.source[i],this.sourceIndex=i,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(s,a,n,r)},setCutPosition:function(t,e){return void 0===t&&(t=0),void 0===e&&(e=0),this.cutX=t,this.cutY=e,this.updateUVs()},setCutSize:function(t,e){return this.cutWidth=t,this.cutHeight=e,this.updateUVs()},setSize:function(t,e,i,n){void 0===i&&(i=0),void 0===n&&(n=0),this.setCutPosition(i,n),this.setCutSize(t,e),this.width=t,this.height=e,this.halfWidth=Math.floor(.5*t),this.halfHeight=Math.floor(.5*e),this.centerX=Math.floor(t/2),this.centerY=Math.floor(e/2);var r=this.data,s=r.cut;s.x=i,s.y=n,s.w=t,s.h=e,s.r=i+t,s.b=n+e,r.sourceSize.w=t,r.sourceSize.h=e,r.spriteSourceSize.w=t,r.spriteSourceSize.h=e,r.radius=.5*Math.sqrt(t*t+e*e);var a=r.drawImage;return a.x=i,a.y=n,a.width=t,a.height=e,this.updateUVs()},setTrim:function(t,e,i,n,r,s){var a=this.data,o=a.spriteSourceSize;return a.trim=!0,a.sourceSize.w=t,a.sourceSize.h=e,o.x=i,o.y=n,o.w=r,o.h=s,o.r=i+r,o.b=n+s,this.x=i,this.y=n,this.width=r,this.height=s,this.halfWidth=.5*r,this.halfHeight=.5*s,this.centerX=Math.floor(r/2),this.centerY=Math.floor(s/2),this.updateUVs()},setScale9:function(t,e,i,n){var r=this.data;return r.scale9=!0,r.is3Slice=0===e&&n===this.height,r.scale9Borders.x=t,r.scale9Borders.y=e,r.scale9Borders.w=i,r.scale9Borders.h=n,this},setCropUVs:function(t,e,i,n,s,a,o){var l=this.cutX,h=this.cutY,u=this.cutWidth,c=this.cutHeight,d=this.realWidth,f=this.realHeight,p=l+(e=r(e,0,d)),m=h+(i=r(i,0,f)),g=n=r(n,0,d-e),v=s=r(s,0,f-i),y=this.data;if(y.trim){var b=y.spriteSourceSize,x=e+(n=r(n,0,b.x+u-e)),w=i+(s=r(s,0,b.y+c-i));if(b.rx||b.y>w)p=0,m=0,g=0,v=0;else{var T=Math.max(b.x,e),S=Math.max(b.y,i),E=Math.min(b.r,x)-T,C=Math.min(b.b,w)-S;g=E,v=C,p=a?l+(u-(T-b.x)-E):l+(T-b.x),m=o?h+(c-(S-b.y)-C):h+(S-b.y),e=T,i=S,n=E,s=C}}else a&&(p=l+(u-e-n)),o&&(m=h+(c-i-s));var A=this.source.width,_=this.source.height;return t.u0=Math.max(0,p/A),t.v0=Math.max(0,m/_),t.u1=Math.min(1,(p+g)/A),t.v1=Math.min(1,(m+v)/_),t.x=e,t.y=i,t.cx=p,t.cy=m,t.cw=g,t.ch=v,t.width=n,t.height=s,t.flipX=a,t.flipY=o,t},updateCropUVs:function(t,e,i){return this.setCropUVs(t,t.x,t.y,t.width,t.height,e,i)},setUVs:function(t,e,i,n,r,s){var a=this.data.drawImage;return a.width=t,a.height=e,this.u0=i,this.v0=n,this.u1=r,this.v1=s,this},updateUVs:function(){var t=this.cutX,e=this.cutY,i=this.cutWidth,n=this.cutHeight,r=this.data.drawImage;r.width=i,r.height=n;var s=this.source.width,a=this.source.height;return this.u0=t/s,this.v0=e/a,this.u1=(t+i)/s,this.v1=(e+n)/a,this},updateUVsInverted:function(){var t=this.source.width,e=this.source.height;return this.u0=(this.cutX+this.cutHeight)/t,this.v0=this.cutY/e,this.u1=this.cutX/t,this.v1=(this.cutY+this.cutWidth)/e,this},clone:function(){var t=new a(this.texture,this.name,this.sourceIndex);return t.cutX=this.cutX,t.cutY=this.cutY,t.cutWidth=this.cutWidth,t.cutHeight=this.cutHeight,t.x=this.x,t.y=this.y,t.width=this.width,t.height=this.height,t.halfWidth=this.halfWidth,t.halfHeight=this.halfHeight,t.centerX=this.centerX,t.centerY=this.centerY,t.rotated=this.rotated,t.data=s(!0,t.data,this.data),t.updateUVs(),t},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}}});t.exports=a},79237:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(83419),r=i(4327),s=i(11876),a=new n({initialize:function(t,e,i,n,r){Array.isArray(i)||(i=[i]),this.manager=t,this.key=e,this.source=[],this.dataSource=[],this.frames={},this.customData={},this.firstFrame=\"__BASE\",this.frameTotal=0;for(var a=0;as&&(s=l.cutX+l.cutWidth),l.cutY+l.cutHeight>a&&(a=l.cutY+l.cutHeight)}return{x:n,y:r,width:s-n,height:a-r}},getFrameNames:function(t){void 0===t&&(t=!1);var e=Object.keys(this.frames);if(!t){var i=e.indexOf(\"__BASE\");-1!==i&&e.splice(i,1)}return e},getSourceImage:function(t){null!=t&&1!==this.frameTotal||(t=\"__BASE\");var e=this.frames[t];return e?e.source.image:(console.warn('Texture \"%s\" has no frame \"%s\"',this.key,t),this.frames.__BASE.source.image)},getDataSourceImage:function(t){null!=t&&1!==this.frameTotal||(t=\"__BASE\");var e,i=this.frames[t];return i?e=i.sourceIndex:(console.warn('Texture \"%s\" has no frame \"%s\"',this.key,t),e=this.frames.__BASE.sourceIndex),this.dataSource[e].image},setDataSource:function(t){Array.isArray(t)||(t=[t]);for(var e=0;e{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(27919),r=i(57382),s=i(83419),a=i(40987),o=i(8054),l=i(81320),h=i(50792),u=i(69442),c=i(4327),d=i(8443),f=i(99584),p=i(35154),m=i(88571),g=i(41212),v=i(61309),y=i(87841),b=i(79237),x=new s({Extends:h,initialize:function(t){h.call(this),this.game=t,this.name=\"TextureManager\",this.list={},this._tempCanvas=n.create2D(this),this._tempContext=this._tempCanvas.getContext(\"2d\",{willReadFrequently:!0}),this._pending=0,this.stamp,this.stampCrop=new y,this.silentWarnings=!1,t.events.once(d.BOOT,this.boot,this)},boot:function(){this._pending=3,this.on(u.LOAD,this.updatePending,this),this.on(u.ERROR,this.updatePending,this);var t=this.game.config;null!==t.defaultImage&&this.addBase64(\"__DEFAULT\",t.defaultImage),null!==t.missingImage&&this.addBase64(\"__MISSING\",t.missingImage),null!==t.whiteImage&&this.addBase64(\"__WHITE\",t.whiteImage),this.game.renderer&&this.game.renderer.gl&&this.addUint8Array(\"__NORMAL\",new Uint8Array([127,127,255,255]),1,1),this.game.events.once(d.DESTROY,this.destroy,this),this.game.events.once(d.SYSTEM_READY,(function(t){this.stamp=new m(t).setOrigin(0)}),this)},updatePending:function(){this._pending--,0===this._pending&&(this.off(u.LOAD),this.off(u.ERROR),this.emit(u.READY))},checkKey:function(t){return!(!t||\"string\"!=typeof t||this.exists(t))||(this.silentWarnings||console.error(\"Texture key already in use: \"+t),!1)},remove:function(t){if(\"string\"==typeof t){if(!this.exists(t))return this.silentWarnings||console.warn(\"No texture found matching key: \"+t),this;t=this.get(t)}var e=t.key;return this.list.hasOwnProperty(e)&&(t.destroy(),this.emit(u.REMOVE,e),this.emit(u.REMOVE_KEY+e)),this},removeKey:function(t){return this.list.hasOwnProperty(t)&&delete this.list[t],this},addBase64:function(t,e){if(this.checkKey(t)){var i=this,n=new Image;n.onerror=function(){i.emit(u.ERROR,t)},n.onload=function(){var e=i.create(t,n);e&&(v.Image(e,0),i.emit(u.ADD,t,e),i.emit(u.ADD_KEY+t,e),i.emit(u.LOAD,t,e))},n.src=e}return this},getBase64:function(t,e,i,r){void 0===i&&(i=\"image/png\"),void 0===r&&(r=.92);var s=\"\",a=this.getFrame(t,e);if(a&&(a.source.isRenderTexture||a.source.isGLTexture))this.silentWarnings||console.warn(\"Cannot getBase64 from WebGL Texture\");else if(a){var o=a.canvasData,l=n.create2D(this,o.width,o.height),h=l.getContext(\"2d\",{willReadFrequently:!0});o.width>0&&o.height>0&&h.drawImage(a.source.image,o.x,o.y,o.width,o.height,0,0,o.width,o.height),s=l.toDataURL(i,r),n.remove(l)}return s},addImage:function(t,e,i){var n=null;return this.checkKey(t)&&(n=this.create(t,e),v.Image(n,0),i&&n.setDataSource(i),this.emit(u.ADD,t,n),this.emit(u.ADD_KEY+t,n)),n},addGLTexture:function(t,e){var i=null;if(this.checkKey(t)){var n=e.width,r=e.height;(i=this.create(t,e,n,r)).add(\"__BASE\",0,0,0,n,r),this.emit(u.ADD,t,i),this.emit(u.ADD_KEY+t,i)}return i},addCompressedTexture:function(t,e,i){var n=null;if(this.checkKey(t)){if((n=this.create(t,e)).add(\"__BASE\",0,0,0,e.width,e.height),i){var r=function(t,e,i){Array.isArray(i.textures)||Array.isArray(i.frames)?v.JSONArray(t,e,i):v.JSONHash(t,e,i)};if(Array.isArray(i))for(var s=0;s=s.x&&t=s.y&&e=s.x&&t=s.y&&e{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(27919),r=i(83419),s=i(50030),a=i(29795),o=i(82751),l=new r({initialize:function(t,e,i,n,r){void 0===r&&(r=!1);var l=t.manager.game;this.renderer=l.renderer,this.texture=t,this.source=e,this.image=e.compressed?null:e,this.compressionAlgorithm=e.compressed?e.format:null,this.resolution=1,this.width=i||e.naturalWidth||e.videoWidth||e.width||0,this.height=n||e.naturalHeight||e.videoHeight||e.height||0,this.scaleMode=a.DEFAULT,this.isCanvas=e instanceof HTMLCanvasElement,this.isVideo=window.hasOwnProperty(\"HTMLVideoElement\")&&e instanceof HTMLVideoElement,this.isRenderTexture=\"RenderTexture\"===e.type||\"DynamicTexture\"===e.type,this.isGLTexture=e instanceof o,this.isPowerOf2=s(this.width,this.height),this.glTexture=null,this.flipY=r,this.init(l)},init:function(t){var e=this.renderer;if(e){var i=this.source;if(e.gl){var n=this.image,r=this.flipY,s=this.width,a=this.height,o=this.scaleMode;this.isCanvas?this.glTexture=e.createCanvasTexture(n,!1,r):this.isVideo?this.glTexture=e.createVideoTexture(n,!1,r):this.isRenderTexture?this.glTexture=e.createTextureFromSource(null,s,a,o):this.isGLTexture?this.glTexture=i:this.compressionAlgorithm?this.glTexture=e.createTextureFromSource(i,void 0,void 0,o):i instanceof Uint8Array?this.glTexture=e.createUint8ArrayTexture(i,s,a,o):this.glTexture=e.createTextureFromSource(n,s,a,o)}else this.isRenderTexture&&(this.image=i.canvas)}t.config.antialias||this.setFilter(1)},setFilter:function(t){this.renderer&&this.renderer.gl&&this.renderer.setTextureFilter(this.glTexture,t),this.scaleMode=t},setFlipY:function(t){return void 0===t&&(t=!0),t===this.flipY||(this.flipY=t,this.update()),this},update:function(){var t=this.renderer,e=this.image,i=this.flipY,n=t.gl;n&&this.isCanvas?t.updateCanvasTexture(e,this.glTexture,i):n&&this.isVideo&&t.updateVideoTexture(e,this.glTexture,i)},destroy:function(){this.glTexture&&this.renderer.deleteTexture(this.glTexture),this.isCanvas&&n.remove(this.image),this.renderer=null,this.texture=null,this.source=null,this.image=null,this.glTexture=null}});t.exports=l},19673:t=>{t.exports={LINEAR:0,NEAREST:1}},44538:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports=\"addtexture\"},63486:t=>{\n/**\n * @author samme\n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports=\"addtexture-\"},94851:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports=\"onerror\"},29099:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports=\"onload\"},8678:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports=\"ready\"},86415:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports=\"removetexture\"},30879:t=>{\n/**\n * @author samme\n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports=\"removetexture-\"},69442:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports={ADD:i(44538),ADD_KEY:i(63486),ERROR:i(94851),LOAD:i(29099),READY:i(8678),REMOVE:i(86415),REMOVE_KEY:i(30879)}},27458:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(79291),r=i(19673),s={CanvasTexture:i(57382),DynamicTexture:i(81320),Events:i(69442),FilterMode:r,Frame:i(4327),Parsers:i(61309),Texture:i(79237),TextureManager:i(17130),TextureSource:i(11876)};s=n(!1,s,r),t.exports=s},89905:t=>{t.exports=function(t,e,i){if(i.getElementsByTagName(\"TextureAtlas\")){var n=t.source[e];t.add(\"__BASE\",e,0,0,n.width,n.height);for(var r,s=i.getElementsByTagName(\"SubTexture\"),a=0;a{t.exports=function(t,e){var i=t.source[e];return t.add(\"__BASE\",e,0,0,i.width,i.height),t}},4832:t=>{t.exports=function(t,e){var i=t.source[e];return t.add(\"__BASE\",e,0,0,i.width,i.height),t}},78566:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(41786);t.exports=function(t,e,i){if(i.frames||i.textures){var r=t.source[e];t.add(\"__BASE\",e,0,0,r.width,r.height);for(var s,a=Array.isArray(i.textures)?i.textures[e].frames:i.frames,o=0;o{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(41786);t.exports=function(t,e,i){if(i.frames){var r=t.source[e];t.add(\"__BASE\",e,0,0,r.width,r.height);var s,a=i.frames;for(var o in a)if(a.hasOwnProperty(o)){var l=a[o];if(s=t.add(o,e,l.frame.x,l.frame.y,l.frame.w,l.frame.h)){l.trimmed&&s.setTrim(l.sourceSize.w,l.sourceSize.h,l.spriteSourceSize.x,l.spriteSourceSize.y,l.spriteSourceSize.w,l.spriteSourceSize.h),l.rotated&&(s.rotated=!0,s.updateUVsInverted());var h=l.anchor||l.pivot;h&&(s.customPivot=!0,s.pivotX=h.x,s.pivotY=h.y),l.scale9Borders&&s.setScale9(l.scale9Borders.x,l.scale9Borders.y,l.scale9Borders.w,l.scale9Borders.h),s.customData=n(l)}else console.warn(\"Invalid atlas json, frame already exists: \"+o)}for(var u in i)\"frames\"!==u&&(Array.isArray(i[u])?t.customData[u]=i[u].slice(0):t.customData[u]=i[u]);return t}console.warn(\"Invalid Texture Atlas JSON Hash given, missing 'frames' Object\")}},31403:t=>{t.exports=function(t){var e,i=[171,75,84,88,32,49,49,187,13,10,26,10],n=new Uint8Array(t,0,12);for(e=0;e>1),m=Math.max(1,m>>1),f+=g}return{mipmaps:d,width:l,height:h,internalFormat:o,compressed:!0,generateMipmap:!1}}console.warn(\"KTXParser - Only compressed formats supported\")}},82038:t=>{\n/**\n * @author Richard Davey \n * @copyright 2021 Photon Storm Ltd.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nfunction e(t,e,i,n,r,s,a){return void 0===a&&(a=16),Math.floor((t+i)/r)*Math.floor((e+n)/s)*a}function i(t,e){return(t=Math.max(t,16))*(e=Math.max(e,8))/4}function n(t,e){return(t=Math.max(t,8))*(e=Math.max(e,8))/2}function r(t,e){return Math.ceil(t/4)*Math.ceil(e/4)*16}function s(t,i){return e(t,i,3,3,4,4,8)}function a(t,i){return e(t,i,3,3,4,4)}var o={0:{sizeFunc:i,glFormat:[35841]},1:{sizeFunc:i,glFormat:[35843]},2:{sizeFunc:n,glFormat:[35840]},3:{sizeFunc:n,glFormat:[35842]},6:{sizeFunc:s,glFormat:[36196]},7:{sizeFunc:s,glFormat:[33776,35916]},8:{sizeFunc:a,glFormat:[33777,35917]},9:{sizeFunc:a,glFormat:[33778,35918]},11:{sizeFunc:a,glFormat:[33779,35919]},14:{sizeFunc:r,glFormat:[36494,36495]},15:{sizeFunc:r,glFormat:[36492,36493]},22:{sizeFunc:s,glFormat:[37492,37493]},23:{sizeFunc:a,glFormat:[37496,37497]},24:{sizeFunc:s,glFormat:[37494,37495]},25:{sizeFunc:s,glFormat:[37488]},26:{sizeFunc:a,glFormat:[37490]},27:{sizeFunc:a,glFormat:[37808,37840]},28:{sizeFunc:function(t,i){return e(t,i,4,3,5,4)},glFormat:[37809,37841]},29:{sizeFunc:function(t,i){return e(t,i,4,4,5,5)},glFormat:[37810,37842]},30:{sizeFunc:function(t,i){return e(t,i,5,4,6,5)},glFormat:[37811,37843]},31:{sizeFunc:function(t,i){return e(t,i,5,5,6,6)},glFormat:[37812,37844]},32:{sizeFunc:function(t,i){return e(t,i,7,4,8,5)},glFormat:[37813,37845]},33:{sizeFunc:function(t,i){return e(t,i,7,5,8,6)},glFormat:[37814,37846]},34:{sizeFunc:function(t,i){return e(t,i,7,7,8,8)},glFormat:[37815,37847]},35:{sizeFunc:function(t,i){return e(t,i,9,4,10,5)},glFormat:[37816,37848]},36:{sizeFunc:function(t,i){return e(t,i,9,5,10,6)},glFormat:[37817,37849]},37:{sizeFunc:function(t,i){return e(t,i,9,7,10,8)},glFormat:[37818,37850]},38:{sizeFunc:function(t,i){return e(t,i,9,9,10,10)},glFormat:[37819,37851]},39:{sizeFunc:function(t,i){return e(t,i,11,9,12,10)},glFormat:[37820,37852]},40:{sizeFunc:function(t,i){return e(t,i,11,11,12,12)},glFormat:[37821,37853]}};t.exports=function(t){for(var e=new Uint32Array(t,0,13),i=55727696===e[0]?e[2]:e[3],n=e[4],r=o[i].glFormat[n],s=o[i].sizeFunc,a=e[11],l=e[7],h=e[6],u=52+e[12],c=new Uint8Array(t,u),d=new Array(a),f=0,p=l,m=h,g=0;g>1),m=Math.max(1,m>>1),f+=v}return{mipmaps:d,width:l,height:h,internalFormat:r,compressed:!0,generateMipmap:!1}}},75549:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(95540);t.exports=function(t,e,i,r,s,a,o){var l=n(o,\"frameWidth\",null),h=n(o,\"frameHeight\",l);if(null===l)throw new Error(\"TextureManager.SpriteSheet: Invalid frameWidth given.\");var u=t.source[e];t.add(\"__BASE\",e,0,0,u.width,u.height);var c=n(o,\"startFrame\",0),d=n(o,\"endFrame\",-1),f=n(o,\"margin\",0),p=n(o,\"spacing\",0),m=Math.floor((s-f+p)/(l+p))*Math.floor((a-f+p)/(h+p));0===m&&console.warn(\"SpriteSheet frame dimensions will result in zero frames for texture:\",t.key),(c>m||c<-m)&&(c=0),c<0&&(c=m+c),(-1===d||d>m||ds&&(y=T-s),S>a&&(b=S-a),w>=c&&w<=d&&(t.add(x,e,i+g,r+v,l-y,h-b),x++),(g+=l+p)+l>s&&(g=f,v+=h+p)}return t}},47534:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(95540);t.exports=function(t,e,i){var r=n(i,\"frameWidth\",null),s=n(i,\"frameHeight\",r);if(!r)throw new Error(\"TextureManager.SpriteSheetFromAtlas: Invalid frameWidth given.\");var a=t.source[0];t.add(\"__BASE\",0,0,0,a.width,a.height);var o,l=n(i,\"startFrame\",0),h=n(i,\"endFrame\",-1),u=n(i,\"margin\",0),c=n(i,\"spacing\",0),d=e.cutX,f=e.cutY,p=e.cutWidth,m=e.cutHeight,g=e.realWidth,v=e.realHeight,y=Math.floor((g-u+c)/(r+c)),b=Math.floor((v-u+c)/(s+c)),x=y*b,w=e.x,T=r-w,S=r-(g-p-w),E=e.y,C=s-E,A=s-(v-m-E);(l>x||l<-x)&&(l=0),l<0&&(l=x+l),-1!==h&&(x=l+(h+1));for(var _=u,k=u,P=0,M=0;M{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar e=0,i=function(t,i,n,r){var s=e-r.y-r.height;t.add(n,i,r.x,s,r.width,r.height)};t.exports=function(t,n,r){var s=t.source[n];t.add(\"__BASE\",n,0,0,s.width,s.height),e=s.height;for(var a=r.split(\"\\n\"),o=/^[ ]*(- )*(\\w+)+[: ]+(.*)/,l=\"\",h=\"\",u={x:0,y:0,width:0,height:0},c=0;c{\n/**\n * @author Ben Richards \n * @copyright 2024 Photon Storm Ltd.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(50030);function r(t){for(var e=t.mipmaps,i=0;i{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports={AtlasXML:i(89905),Canvas:i(72893),Image:i(4832),JSONArray:i(78566),JSONHash:i(39711),KTXParser:i(31403),PVRParser:i(82038),SpriteSheet:i(75549),SpriteSheetFromAtlas:i(47534),UnityYAML:i(86147)}},80341:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports={CSV:0,TILED_JSON:1,ARRAY_2D:2,WELTMEISTER:3}},16536:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=new(i(83419))({initialize:function(t,e,i,n,r,s,a){(void 0===i||i<=0)&&(i=32),(void 0===n||n<=0)&&(n=32),void 0===r&&(r=0),void 0===s&&(s=0),this.name=t,this.firstgid=0|e,this.imageWidth=0|i,this.imageHeight=0|n,this.imageMargin=0|r,this.imageSpacing=0|s,this.properties=a||{},this.images=[],this.total=0},containsImageIndex:function(t){return t>=this.firstgid&&t{\n/**\n * @author Richard Davey \n * @copyright 2021 Photon Storm Ltd.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=new(i(83419))({initialize:function(t){if(this.gids=[],void 0!==t)for(var e=0;e{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(80341),r=i(87010),s=i(46177),a=i(49075);t.exports=function(t,e,i,o,l,h,u,c){void 0===i&&(i=32),void 0===o&&(o=32),void 0===l&&(l=10),void 0===h&&(h=10),void 0===c&&(c=!1);var d=null;if(Array.isArray(u))d=s(void 0!==e?e:\"map\",n.ARRAY_2D,u,i,o,c);else if(void 0!==e){var f=t.cache.tilemap.get(e);f?d=s(e,f.format,f.data,i,o,c):console.warn(\"No map data found for key \"+e)}return null===d&&(d=new r({tileWidth:i,tileHeight:o,width:l,height:h})),new a(t,d)}},23029:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(83419),r=i(31401),s=i(91907),a=i(62644),o=i(93232),l=new n({Mixins:[r.AlphaSingle,r.Flip,r.Visible],initialize:function(t,e,i,n,r,s,a,o){this.layer=t,this.index=e,this.x=i,this.y=n,this.width=r,this.height=s,this.right,this.bottom,this.baseWidth=void 0!==a?a:r,this.baseHeight=void 0!==o?o:s,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(t,e){return!(tthis.right||e>this.bottom)},copy:function(t){return this.index=t.index,this.alpha=t.alpha,this.properties=a(t.properties),this.visible=t.visible,this.setFlip(t.flipX,t.flipY),this.tint=t.tint,this.rotation=t.rotation,this.collideUp=t.collideUp,this.collideDown=t.collideDown,this.collideLeft=t.collideLeft,this.collideRight=t.collideRight,this.collisionCallback=t.collisionCallback,this.collisionCallbackContext=t.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(t){var e=this.tilemapLayer;return e?e.tileToWorldXY(this.x,this.y,void 0,t).x:this.x*this.baseWidth},getRight:function(t){var e=this.tilemapLayer;return e?this.getLeft(t)+this.width*e.scaleX:this.getLeft(t)+this.width},getTop:function(t){var e=this.tilemapLayer;return e?e.tileToWorldXY(this.x,this.y,void 0,t).y:this.y*this.baseWidth-(this.height-this.baseHeight)},getBottom:function(t){var e=this.tilemapLayer;return e?this.getTop(t)+this.height*e.scaleY:this.getTop(t)+this.height},getBounds:function(t,e){return void 0===e&&(e=new o),e.x=this.getLeft(t),e.y=this.getTop(t),e.width=this.getRight(t)-e.x,e.height=this.getBottom(t)-e.y,e},getCenterX:function(t){return(this.getLeft(t)+this.getRight(t))/2},getCenterY:function(t){return(this.getTop(t)+this.getBottom(t))/2},intersects:function(t,e,i,n){return!(i<=this.pixelX||n<=this.pixelY||t>=this.right||e>=this.bottom)},isInteresting:function(t,e){return t&&e?this.canCollide||this.hasInterestingFace:t?this.collides:!!e&&this.hasInterestingFace},resetCollision:function(t){return void 0===t&&(t=!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,t&&this.tilemapLayer&&this.tilemapLayer.calculateFacesAt(this.x,this.y),this},resetFaces:function(){return this.faceTop=!1,this.faceBottom=!1,this.faceLeft=!1,this.faceRight=!1,this},setCollision:function(t,e,i,n,r){return void 0===e&&(e=t),void 0===i&&(i=t),void 0===n&&(n=t),void 0===r&&(r=!0),this.collideLeft=t,this.collideRight=e,this.collideUp=i,this.collideDown=n,this.faceLeft=t,this.faceRight=e,this.faceTop=i,this.faceBottom=n,r&&this.tilemapLayer&&this.tilemapLayer.calculateFacesAt(this.x,this.y),this},setCollisionCallback:function(t,e){return null===t?(this.collisionCallback=void 0,this.collisionCallbackContext=void 0):(this.collisionCallback=t,this.collisionCallbackContext=e),this},setSize:function(t,e,i,n){return void 0!==t&&(this.width=t),void 0!==e&&(this.height=e),void 0!==i&&(this.baseWidth=i),void 0!==n&&(this.baseHeight=n),this.updatePixelXY(),this},updatePixelXY:function(){var t=this.layer.orientation;if(t===s.ORTHOGONAL)this.pixelX=this.x*this.baseWidth,this.pixelY=this.y*this.baseHeight;else if(t===s.ISOMETRIC)this.pixelX=(this.x-this.y)*this.baseWidth*.5,this.pixelY=(this.x+this.y)*this.baseHeight*.5;else if(t===s.STAGGERED)this.pixelX=this.x*this.baseWidth+this.y%2*(this.baseWidth/2),this.pixelY=this.y*(this.baseHeight/2);else if(t===s.HEXAGONAL){var e,i,n=this.layer.staggerAxis,r=this.layer.staggerIndex,a=this.layer.hexSideLength;\"y\"===n?(i=(this.baseHeight-a)/2+a,this.pixelX=\"odd\"===r?this.x*this.baseWidth+this.y%2*(this.baseWidth/2):this.x*this.baseWidth-this.y%2*(this.baseWidth/2),this.pixelY=this.y*i):\"x\"===n&&(e=(this.baseWidth-a)/2+a,this.pixelX=this.x*e,this.pixelY=\"odd\"===r?this.y*this.baseHeight+this.x%2*(this.baseHeight/2):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||void 0!==this.collisionCallback}},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 t=this.layer.tilemapLayer;if(t){var e=t.gidMap[this.index];if(e)return e}return null}},tilemapLayer:{get:function(){return this.layer.tilemapLayer}},tilemap:{get:function(){var t=this.tilemapLayer;return t?t.tilemap:null}}});t.exports=l},49075:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(84101),r=i(83419),s=i(39506),a=i(80341),o=i(95540),l=i(14977),h=i(27462),u=i(91907),c=i(36305),d=i(19133),f=i(68287),p=i(23029),m=i(81086),g=i(20442),v=i(33629),y=new r({initialize:function(t,e){this.scene=t,this.tileWidth=e.tileWidth,this.tileHeight=e.tileHeight,this.width=e.width,this.height=e.height,this.orientation=e.orientation,this.renderOrder=e.renderOrder,this.format=e.format,this.version=e.version,this.properties=e.properties,this.widthInPixels=e.widthInPixels,this.heightInPixels=e.heightInPixels,this.imageCollections=e.imageCollections,this.images=e.images,this.layers=e.layers,this.tiles=e.tiles,this.tilesets=e.tilesets,this.objects=e.objects,this.currentLayerIndex=0,this.hexSideLength=e.hexSideLength;var i=this.orientation;this._convert={WorldToTileXY:m.GetWorldToTileXYFunction(i),WorldToTileX:m.GetWorldToTileXFunction(i),WorldToTileY:m.GetWorldToTileYFunction(i),TileToWorldXY:m.GetTileToWorldXYFunction(i),TileToWorldX:m.GetTileToWorldXFunction(i),TileToWorldY:m.GetTileToWorldYFunction(i),GetTileCorners:m.GetTileCornersFunction(i)}},setRenderOrder:function(t){var e=[\"right-down\",\"left-down\",\"right-up\",\"left-up\"];return\"number\"==typeof t&&(t=e[t]),e.indexOf(t)>-1&&(this.renderOrder=t),this},addTilesetImage:function(t,e,i,r,s,o,l,h){if(void 0===t)return null;null==e&&(e=t);var u=this.scene.sys.textures;if(!u.exists(e))return console.warn('Texture key \"%s\" not found',e),null;var c=u.get(e),d=this.getTilesetIndex(t);if(null===d&&this.format===a.TILED_JSON)return console.warn('Tilemap has no tileset \"%s\". Its tilesets are %o',t,this.tilesets),null;var f=this.tilesets[d];return f?((i||r)&&f.setTileSize(i,r),(s||o)&&f.setSpacing(s,o),f.setImage(c),f):(void 0===i&&(i=this.tileWidth),void 0===r&&(r=this.tileHeight),void 0===s&&(s=0),void 0===o&&(o=0),void 0===l&&(l=0),void 0===h&&(h={x:0,y:0}),(f=new v(t,l,i,r,s,o,void 0,void 0,h)).setImage(c),this.tilesets.push(f),this.tiles=n(this),f)},copy:function(t,e,i,n,r,s,a,o){return null!==(o=this.getLayer(o))?(m.Copy(t,e,i,n,r,s,a,o),this):null},createBlankLayer:function(t,e,i,n,r,s,a,o){if(void 0===i&&(i=0),void 0===n&&(n=0),void 0===r&&(r=this.width),void 0===s&&(s=this.height),void 0===a&&(a=this.tileWidth),void 0===o&&(o=this.tileHeight),null!==this.getLayerIndex(t))return console.warn(\"Invalid Tilemap Layer ID: \"+t),null;for(var h,u=new l({name:t,tileWidth:a,tileHeight:o,width:r,height:s,orientation:this.orientation,hexSideLength:this.hexSideLength}),c=0;c-1&&this.putTileAt(e,s.x,s.y,i,s.tilemapLayer)}return n},removeTileAt:function(t,e,i,n,r){return void 0===i&&(i=!0),void 0===n&&(n=!0),null===(r=this.getLayer(r))?null:m.RemoveTileAt(t,e,i,n,r)},removeTileAtWorldXY:function(t,e,i,n,r,s){return void 0===i&&(i=!0),void 0===n&&(n=!0),null===(s=this.getLayer(s))?null:m.RemoveTileAtWorldXY(t,e,i,n,r,s)},renderDebug:function(t,e,i){return null===(i=this.getLayer(i))?null:(this.orientation===u.ORTHOGONAL&&m.RenderDebug(t,e,i),this)},renderDebugFull:function(t,e){for(var i=this.layers,n=0;n{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(44603),r=i(31989);n.register(\"tilemap\",(function(t){var e=void 0!==t?t:{};return r(this.scene,e.key,e.tileWidth,e.tileHeight,e.width,e.height,e.data,e.insertNull)}))},46029:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(39429),r=i(31989);n.register(\"tilemap\",(function(t,e,i,n,s,a,o){return null===t&&(t=void 0),null===e&&(e=void 0),null===i&&(i=void 0),null===n&&(n=void 0),null===s&&(s=void 0),r(this.scene,t,e,i,n,s,a,o)}))},20442:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(83419),r=i(78389),s=i(31401),a=i(95643),o=i(81086),l=i(19218),h=i(26099),u=new n({Extends:a,Mixins:[s.Alpha,s.BlendMode,s.ComputedSize,s.Depth,s.Flip,s.GetBounds,s.Mask,s.Origin,s.Pipeline,s.PostPipeline,s.Transform,s.Visible,s.ScrollFactor,r,l],initialize:function(t,e,i,n,r,s){a.call(this,t,\"TilemapLayer\"),this.isTilemap=!0,this.tilemap=e,this.layerIndex=i,this.layer=e.layers[i],this.layer.tilemapLayer=this,this.tileset=[],this.tilesDrawn=0,this.tilesTotal=this.layer.width*this.layer.height,this.culledTiles=[],this.skipCull=!1,this.cullPaddingX=1,this.cullPaddingY=1,this.cullCallback=o.GetCullTilesFunction(this.layer.orientation),this._renderOrder=0,this.gidMap=[],this.tempVec=new h,this.collisionCategory=1,this.collisionMask=1,this.setTilesets(n),this.setAlpha(this.layer.alpha),this.setPosition(r,s),this.setOrigin(0,0),this.setSize(e.tileWidth*this.layer.width,e.tileHeight*this.layer.height),this.initPipeline(),this.initPostPipeline(!1)},setTilesets:function(t){var e=[],i=[],n=this.tilemap;Array.isArray(t)||(t=[t]);for(var r=0;r=0&&t<4&&(this._renderOrder=t),this},calculateFacesAt:function(t,e){return o.CalculateFacesAt(t,e,this.layer),this},calculateFacesWithin:function(t,e,i,n){return o.CalculateFacesWithin(t,e,i,n,this.layer),this},createFromTiles:function(t,e,i,n,r){return o.CreateFromTiles(t,e,i,n,r,this.layer)},cull:function(t){return this.cullCallback(this.layer,t,this.culledTiles,this._renderOrder)},copy:function(t,e,i,n,r,s,a){return o.Copy(t,e,i,n,r,s,a,this.layer),this},fill:function(t,e,i,n,r,s){return o.Fill(t,e,i,n,r,s,this.layer),this},filterTiles:function(t,e,i,n,r,s,a){return o.FilterTiles(t,e,i,n,r,s,a,this.layer)},findByIndex:function(t,e,i){return o.FindByIndex(t,e,i,this.layer)},findTile:function(t,e,i,n,r,s,a){return o.FindTile(t,e,i,n,r,s,a,this.layer)},forEachTile:function(t,e,i,n,r,s,a){return o.ForEachTile(t,e,i,n,r,s,a,this.layer),this},setTint:function(t,e,i,n,r,s){return void 0===t&&(t=16777215),this.forEachTile((function(e){e.tint=t,e.tintFill=!1}),this,e,i,n,r,s)},setTintFill:function(t,e,i,n,r,s){return void 0===t&&(t=16777215),this.forEachTile((function(e){e.tint=t,e.tintFill=!0}),this,e,i,n,r,s)},getTileAt:function(t,e,i){return o.GetTileAt(t,e,i,this.layer)},getTileAtWorldXY:function(t,e,i,n){return o.GetTileAtWorldXY(t,e,i,n,this.layer)},getIsoTileAtWorldXY:function(t,e,i,n,r){void 0===i&&(i=!0);var s=this.tempVec;return o.IsometricWorldToTileXY(t,e,!0,s,r,this.layer,i),this.getTileAt(s.x,s.y,n)},getTilesWithin:function(t,e,i,n,r){return o.GetTilesWithin(t,e,i,n,r,this.layer)},getTilesWithinShape:function(t,e,i){return o.GetTilesWithinShape(t,e,i,this.layer)},getTilesWithinWorldXY:function(t,e,i,n,r,s){return o.GetTilesWithinWorldXY(t,e,i,n,r,s,this.layer)},hasTileAt:function(t,e){return o.HasTileAt(t,e,this.layer)},hasTileAtWorldXY:function(t,e,i){return o.HasTileAtWorldXY(t,e,i,this.layer)},putTileAt:function(t,e,i,n){return o.PutTileAt(t,e,i,n,this.layer)},putTileAtWorldXY:function(t,e,i,n,r){return o.PutTileAtWorldXY(t,e,i,n,r,this.layer)},putTilesAt:function(t,e,i,n){return o.PutTilesAt(t,e,i,n,this.layer),this},randomize:function(t,e,i,n,r){return o.Randomize(t,e,i,n,r,this.layer),this},removeTileAt:function(t,e,i,n){return o.RemoveTileAt(t,e,i,n,this.layer)},removeTileAtWorldXY:function(t,e,i,n,r){return o.RemoveTileAtWorldXY(t,e,i,n,r,this.layer)},renderDebug:function(t,e){return o.RenderDebug(t,e,this.layer),this},replaceByIndex:function(t,e,i,n,r,s){return o.ReplaceByIndex(t,e,i,n,r,s,this.layer),this},setSkipCull:function(t){return void 0===t&&(t=!0),this.skipCull=t,this},setCullPadding:function(t,e){return void 0===t&&(t=1),void 0===e&&(e=1),this.cullPaddingX=t,this.cullPaddingY=e,this},setCollision:function(t,e,i,n){return o.SetCollision(t,e,i,this.layer,n),this},setCollisionBetween:function(t,e,i,n){return o.SetCollisionBetween(t,e,i,n,this.layer),this},setCollisionByProperty:function(t,e,i){return o.SetCollisionByProperty(t,e,i,this.layer),this},setCollisionByExclusion:function(t,e,i){return o.SetCollisionByExclusion(t,e,i,this.layer),this},setCollisionFromCollisionGroup:function(t,e){return o.SetCollisionFromCollisionGroup(t,e,this.layer),this},setTileIndexCallback:function(t,e,i){return o.SetTileIndexCallback(t,e,i,this.layer),this},setTileLocationCallback:function(t,e,i,n,r,s){return o.SetTileLocationCallback(t,e,i,n,r,s,this.layer),this},shuffle:function(t,e,i,n){return o.Shuffle(t,e,i,n,this.layer),this},swapByIndex:function(t,e,i,n,r,s){return o.SwapByIndex(t,e,i,n,r,s,this.layer),this},tileToWorldX:function(t,e){return this.tilemap.tileToWorldX(t,e,this)},tileToWorldY:function(t,e){return this.tilemap.tileToWorldY(t,e,this)},tileToWorldXY:function(t,e,i,n){return this.tilemap.tileToWorldXY(t,e,i,n,this)},getTileCorners:function(t,e,i){return this.tilemap.getTileCorners(t,e,i,this)},weightedRandomize:function(t,e,i,n,r){return o.WeightedRandomize(e,i,n,r,t,this.layer),this},worldToTileX:function(t,e,i){return this.tilemap.worldToTileX(t,e,i,this)},worldToTileY:function(t,e,i){return this.tilemap.worldToTileY(t,e,i,this)},worldToTileXY:function(t,e,i,n,r){return this.tilemap.worldToTileXY(t,e,i,n,r,this)},destroy:function(t){void 0===t&&(t=!0),this.tilemap&&(this.layer.tilemapLayer===this&&(this.layer.tilemapLayer=void 0),t&&this.tilemap.removeLayer(this),this.tilemap=void 0,this.layer=void 0,this.culledTiles.length=0,this.cullCallback=null,this.gidMap=[],this.tileset=[],a.prototype.destroy.call(this))}});t.exports=u},16153:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(61340),r=new n,s=new n,a=new n;t.exports=function(t,e,i,n){var o=e.cull(i),l=o.length,h=i.alpha*e.alpha;if(!(0===l||h<=0)){var u=r,c=s,d=a;c.applyITRS(e.x,e.y,e.rotation,e.scaleX,e.scaleY),u.copyFrom(i.matrix);var f=t.currentContext,p=e.gidMap;f.save(),n?(u.multiplyWithOffset(n,-i.scrollX*e.scrollFactorX,-i.scrollY*e.scrollFactorY),c.e=e.x,c.f=e.y,u.multiply(c,d),d.copyToContext(f)):(c.e-=i.scrollX*e.scrollFactorX,c.f-=i.scrollY*e.scrollFactorY,c.copyToContext(f)),(!t.antialias||e.scaleX>1||e.scaleY>1)&&(f.imageSmoothingEnabled=!1);for(var m=0;m{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(29747),r=n,s=n;r=i(99558),s=i(16153),t.exports={renderWebGL:r,renderCanvas:s}},99558:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(70554);t.exports=function(t,e,i){var r=e.cull(i),s=r.length,a=i.alpha*e.alpha;if(!(0===s||a<=0)){var o=e.gidMap,l=t.pipelines.set(e.pipeline,e),h=n.getTintAppendFloatAlpha,u=e.scrollFactorX,c=e.scrollFactorY,d=e.x,f=e.y,p=e.scaleX,m=e.scaleY;t.pipelines.preBatch(e);for(var g=0;g{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(83419),r=i(26099),s=new n({initialize:function(t,e,i,n,s,a,o,l,h){(void 0===i||i<=0)&&(i=32),(void 0===n||n<=0)&&(n=32),void 0===s&&(s=0),void 0===a&&(a=0),void 0===o&&(o={}),void 0===l&&(l={}),this.name=t,this.firstgid=e,this.tileWidth=i,this.tileHeight=n,this.tileMargin=s,this.tileSpacing=a,this.tileProperties=o,this.tileData=l,this.tileOffset=new r,void 0!==h&&this.tileOffset.set(h.x,h.y),this.image=null,this.glTexture=null,this.rows=0,this.columns=0,this.total=0,this.texCoordinates=[]},getTileProperties:function(t){return this.containsTileIndex(t)?this.tileProperties[t-this.firstgid]:null},getTileData:function(t){return this.containsTileIndex(t)?this.tileData[t-this.firstgid]:null},getTileCollisionGroup:function(t){var e=this.getTileData(t);return e&&e.objectgroup?e.objectgroup:null},containsTileIndex:function(t){return t>=this.firstgid&&ti.width||e.height>i.height?this.updateTileData(e.width,e.height):this.updateTileData(i.width,i.height,i.x,i.y),this},setTileSize:function(t,e){return void 0!==t&&(this.tileWidth=t),void 0!==e&&(this.tileHeight=e),this.image&&this.updateTileData(this.image.source[0].width,this.image.source[0].height),this},setSpacing:function(t,e){return void 0!==t&&(this.tileMargin=t),void 0!==e&&(this.tileSpacing=e),this.image&&this.updateTileData(this.image.source[0].width,this.image.source[0].height),this},updateTileData:function(t,e,i,n){void 0===i&&(i=0),void 0===n&&(n=0);var r=(e-2*this.tileMargin+this.tileSpacing)/(this.tileHeight+this.tileSpacing),s=(t-2*this.tileMargin+this.tileSpacing)/(this.tileWidth+this.tileSpacing);r%1==0&&s%1==0||console.warn(\"Image tile area not tile size multiple in: \"+this.name),r=Math.floor(r),s=Math.floor(s),this.rows=r,this.columns=s,this.total=r*s,this.texCoordinates.length=0;for(var a=this.tileMargin+i,o=this.tileMargin+n,l=0;l{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(7423);t.exports=function(t,e,i){var r=n(t,e,!0,i),s=n(t,e-1,!0,i),a=n(t,e+1,!0,i),o=n(t-1,e,!0,i),l=n(t+1,e,!0,i),h=r&&r.collides;return h&&(r.faceTop=!0,r.faceBottom=!0,r.faceLeft=!0,r.faceRight=!0),s&&s.collides&&(h&&(r.faceTop=!1),s.faceBottom=!h),a&&a.collides&&(h&&(r.faceBottom=!1),a.faceTop=!h),o&&o.collides&&(h&&(r.faceLeft=!1),o.faceRight=!h),l&&l.collides&&(h&&(r.faceRight=!1),l.faceLeft=!h),r&&!r.collides&&r.resetFaces(),r}},42573:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(7423),r=i(7386);t.exports=function(t,e,i,s,a){for(var o=null,l=null,h=null,u=null,c=r(t,e,i,s,null,a),d=0;d{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=new(i(26099));t.exports=function(t,e,i,r){var s=i.tilemapLayer,a=s.cullPaddingX,o=s.cullPaddingY,l=s.tilemap.tileToWorldXY(t,e,n,r,s);return l.x>r.worldView.x+s.scaleX*i.tileWidth*(-a-.5)&&l.xr.worldView.y+s.scaleY*i.tileHeight*(-o-1)&&l.y{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(42573),r=i(7386),s=i(62991),a=i(23029);t.exports=function(t,e,i,o,l,h,u,c){void 0===u&&(u=!0);var d=r(t,e,i,o,null,c),f=[];d.forEach((function(t){var e=new a(t.layer,t.index,t.x,t.y,t.width,t.height,t.baseWidth,t.baseHeight);e.copy(t),f.push(e)}));for(var p=l-t,m=h-e,g=0;g{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(62644),r=i(7386),s=i(27987);t.exports=function(t,e,i,a,o,l){i||(i={}),Array.isArray(t)||(t=[t]);var h=l.tilemapLayer;a||(a=h.scene),o||(o=a.cameras.main);var u,c=l.width,d=l.height,f=r(0,0,c,d,null,l),p=[],m=function(t,e,i){for(var n=0;n{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(87841),r=i(63448),s=i(56583),a=new n;t.exports=function(t,e){var i=t.tilemapLayer.tilemap,n=t.tilemapLayer,o=Math.floor(i.tileWidth*n.scaleX),l=Math.floor(i.tileHeight*n.scaleY),h=s(e.worldView.x-n.x,o,0,!0)-n.cullPaddingX,u=r(e.worldView.right-n.x,o,0,!0)+n.cullPaddingX,c=s(e.worldView.y-n.y,l,0,!0)-n.cullPaddingY,d=r(e.worldView.bottom-n.y,l,0,!0)+n.cullPaddingY;return a.setTo(h,c,u-h,d-c)}},30003:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(19545),r=i(32483);t.exports=function(t,e,i,s){void 0===i&&(i=[]),void 0===s&&(s=0),i.length=0;var a=t.tilemapLayer,o=n(t,e);return(a.skipCull||1!==a.scrollFactorX||1!==a.scrollFactorY)&&(o.left=0,o.right=t.width,o.top=0,o.bottom=t.height),r(t,o,s,i),i}},35137:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(7386),r=i(42573),s=i(20576);t.exports=function(t,e,i,a,o,l,h){for(var u=-1!==h.collideIndexes.indexOf(t),c=n(e,i,a,o,null,h),d=0;d{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(7386);t.exports=function(t,e,i,r,s,a,o,l){return n(i,r,s,a,o,l).filter(t,e)}},52692:t=>{t.exports=function(t,e,i,n){void 0===e&&(e=0),void 0===i&&(i=!1);var r,s,a,o=0;if(i){for(s=n.height-1;s>=0;s--)for(r=n.width-1;r>=0;r--)if((a=n.data[s][r])&&a.index===t){if(o===e)return a;o+=1}}else for(s=0;s{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(7386);t.exports=function(t,e,i,r,s,a,o,l){return n(i,r,s,a,o,l).find(t,e)||null}},97560:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(7386);t.exports=function(t,e,i,r,s,a,o,l){n(i,r,s,a,o,l).forEach(t,e)}},43305:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(91907),r=i(30003),s=i(9474),a=i(14018),o=i(29747),l=i(54503);t.exports=function(t){return t===n.ORTHOGONAL?r:t===n.HEXAGONAL?s:t===n.STAGGERED?l:t===n.ISOMETRIC?a:o}},7423:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(62991);t.exports=function(t,e,i,r){if(n(t,e,r)){var s=r.data[e][t]||null;return s?-1===s.index?i?s:null:s:null}return null}},60540:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(7423),r=new(i(26099));t.exports=function(t,e,i,s,a){return a.tilemapLayer.worldToTileXY(t,e,!0,r,s),n(r.x,r.y,i,a)}},55826:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(26099);t.exports=function(t,e,i,r){var s=r.baseTileWidth,a=r.baseTileHeight,o=r.tilemapLayer,l=0,h=0;o&&(i||(i=o.scene.cameras.main),l=o.x+i.scrollX*(1-o.scrollFactorX),h=o.y+i.scrollY*(1-o.scrollFactorY),s*=o.scaleX,a*=o.scaleY);var u=l+t*s,c=h+e*a;return[new n(u,c),new n(u+s,c),new n(u+s,c+a),new n(u,c+a)]}},11758:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(91907),r=i(27229),s=i(29747),a=i(55826);t.exports=function(t){return t===n.ORTHOGONAL?a:t===n.ISOMETRIC?s:t===n.HEXAGONAL?r:(n.STAGGERED,s)}},39167:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(91907),r=i(29747),s=i(97281);t.exports=function(t){return t===n.ORTHOGONAL?s:r}},62e3:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(91907),r=i(19951),s=i(14127),a=i(29747),o=i(97202),l=i(70326);t.exports=function(t){return t===n.ORTHOGONAL?l:t===n.ISOMETRIC?s:t===n.HEXAGONAL?r:t===n.STAGGERED?o:a}},5984:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(91907),r=i(29747),s=i(28054),a=i(29650);t.exports=function(t){return t===n.ORTHOGONAL?a:t===n.STAGGERED?s:r}},7386:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(95540);t.exports=function(t,e,i,r,s,a){void 0===t&&(t=0),void 0===e&&(e=0),void 0===i&&(i=a.width),void 0===r&&(r=a.height),s||(s={});var o=n(s,\"isNotEmpty\",!1),l=n(s,\"isColliding\",!1),h=n(s,\"hasInterestingFace\",!1);t<0&&(i+=t,t=0),e<0&&(r+=e,e=0),t+i>a.width&&(i=Math.max(a.width-t,0)),e+r>a.height&&(r=Math.max(a.height-e,0));for(var u=[],c=e;c{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(55738),r=i(7386),s=i(91865),a=i(29747),o=i(26099),l=i(91907),h=function(t,e){return s.RectangleToTriangle(e,t)},u=new o,c=new o,d=new o;t.exports=function(t,e,i,o){if(o.orientation!==l.ORTHOGONAL)return console.warn(\"GetTilesWithinShape only works with orthogonal tilemaps\"),[];if(void 0===t)return[];var f=a;t instanceof n.Circle?f=s.CircleToRectangle:t instanceof n.Rectangle?f=s.RectangleToRectangle:t instanceof n.Triangle?f=h:t instanceof n.Line&&(f=s.LineToRectangle),o.tilemapLayer.worldToTileXY(t.left,t.top,!0,c,i);var p=c.x,m=c.y;o.tilemapLayer.worldToTileXY(t.right,t.bottom,!1,d,i);var g=Math.ceil(d.x),v=Math.ceil(d.y),y=Math.max(g-p,1),b=Math.max(v-m,1),x=r(p,m,y,b,e,o),w=o.tileWidth,T=o.tileHeight;o.tilemapLayer&&(w*=o.tilemapLayer.scaleX,T*=o.tilemapLayer.scaleY);for(var S=[],E=new n.Rectangle(0,0,w,T),C=0;C{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(7386),r=i(26099),s=new r,a=new r;t.exports=function(t,e,i,r,o,l,h){var u=h.tilemapLayer.tilemap._convert.WorldToTileXY;u(t,e,!0,s,l,h);var c=s.x,d=s.y;u(t+i,e+r,!1,a,l,h);var f=Math.ceil(a.x),p=Math.ceil(a.y);return n(c,d,f-c,p-d,o,h)}},96113:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(91907),r=i(20242),s=i(10095);t.exports=function(t){return t===n.ORTHOGONAL?s:r}},16926:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(91907),r=i(86625),s=i(96897),a=i(29747),o=i(15108),l=i(85896);t.exports=function(t){return t===n.ORTHOGONAL?l:t===n.ISOMETRIC?s:t===n.HEXAGONAL?r:t===n.STAGGERED?o:a}},55762:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(91907),r=i(20242),s=i(51900),a=i(63288);t.exports=function(t){return t===n.ORTHOGONAL?a:t===n.STAGGERED?s:r}},45091:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(62991);t.exports=function(t,e,i){if(n(t,e,i)){var r=i.data[e][t];return null!==r&&r.index>-1}return!1}},24152:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(45091),r=new(i(26099));t.exports=function(t,e,i,s){s.tilemapLayer.worldToTileXY(t,e,!0,r,i);var a=r.x,o=r.y;return n(a,o,s)}},90454:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(63448),r=i(56583);t.exports=function(t,e){var i,s,a,o,l=t.tilemapLayer.tilemap,h=t.tilemapLayer,u=Math.floor(l.tileWidth*h.scaleX),c=Math.floor(l.tileHeight*h.scaleY),d=t.hexSideLength;if(\"y\"===t.staggerAxis){var f=(c-d)/2+d;i=r(e.worldView.x-h.x,u,0,!0)-h.cullPaddingX,s=n(e.worldView.right-h.x,u,0,!0)+h.cullPaddingX,a=r(e.worldView.y-h.y,f,0,!0)-h.cullPaddingY,o=n(e.worldView.bottom-h.y,f,0,!0)+h.cullPaddingY}else{var p=(u-d)/2+d;i=r(e.worldView.x-h.x,p,0,!0)-h.cullPaddingX,s=n(e.worldView.right-h.x,p,0,!0)+h.cullPaddingX,a=r(e.worldView.y-h.y,c,0,!0)-h.cullPaddingY,o=n(e.worldView.bottom-h.y,c,0,!0)+h.cullPaddingY}return{left:i,right:s,top:a,bottom:o}}},9474:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(90454),r=i(32483);t.exports=function(t,e,i,s){void 0===i&&(i=[]),void 0===s&&(s=0),i.length=0;var a=t.tilemapLayer,o=n(t,e);return a.skipCull&&1===a.scrollFactorX&&1===a.scrollFactorY&&(o.left=0,o.right=t.width,o.top=0,o.bottom=t.height),r(t,o,s,i),i}},27229:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(19951),r=i(26099),s=new r;t.exports=function(t,e,i,a){var o=a.baseTileWidth,l=a.baseTileHeight,h=a.tilemapLayer;h&&(o*=h.scaleX,l*=h.scaleY);var u,c,d=n(t,e,s,i,a),f=[],p=.5773502691896257;\"y\"===a.staggerAxis?(u=p*o,c=l/2):(u=o/2,c=p*l);for(var m=0;m<6;m++){var g=2*Math.PI*(.5-m)/6;f.push(new r(d.x+u*Math.cos(g),d.y+c*Math.sin(g)))}return f}},19951:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(26099);t.exports=function(t,e,i,r,s){i||(i=new n);var a=s.baseTileWidth,o=s.baseTileHeight,l=s.tilemapLayer,h=0,u=0;l&&(r||(r=l.scene.cameras.main),h=l.x+r.scrollX*(1-l.scrollFactorX),u=l.y+r.scrollY*(1-l.scrollFactorY),a*=l.scaleX,o*=l.scaleY);var c,d,f=a/2,p=o/2,m=s.staggerAxis,g=s.staggerIndex;return\"y\"===m?(c=h+a*t+a,d=u+1.5*e*p+p,e%2==0&&(\"odd\"===g?c-=f:c+=f)):\"x\"===m&&\"odd\"===g&&(c=h+1.5*t*f+f,d=u+o*t+o,t%2==0&&(\"odd\"===g?d-=p:d+=p)),i.set(c,d)}},86625:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(26099);t.exports=function(t,e,i,r,s,a){r||(r=new n);var o=a.baseTileWidth,l=a.baseTileHeight,h=a.tilemapLayer;h&&(s||(s=h.scene.cameras.main),t-=h.x+s.scrollX*(1-h.scrollFactorX),e-=h.y+s.scrollY*(1-h.scrollFactorY),o*=h.scaleX,l*=h.scaleY);var u,c,d,f,p,m=.5773502691896257,g=-.3333333333333333,v=.6666666666666666,y=o/2,b=l/2;\"y\"===a.staggerAxis?(d=m*(u=(t-y)/(m*o))+g*(c=(e-b)/b),f=0*u+v*c):(d=g*(u=(t-y)/y)+m*(c=(e-b)/(m*l)),f=v*u+0*c),p=-d-f;var x,w=Math.round(d),T=Math.round(f),S=Math.round(p),E=Math.abs(w-d),C=Math.abs(T-f),A=Math.abs(S-p);E>C&&E>A?w=-T-S:C>A&&(T=-w-S);var _=T;return x=\"odd\"===a.staggerIndex?_%2==0?T/2+w:T/2+w-.5:_%2==0?T/2+w:T/2+w+.5,r.set(x,_)}},62991:t=>{t.exports=function(t,e,i){return t>=0&&t=0&&e{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(33528);t.exports=function(t,e,i,r){void 0===i&&(i=[]),void 0===r&&(r=0),i.length=0;var s,a,o,l=t.tilemapLayer,h=t.data,u=t.width,c=t.height,d=l.skipCull,f=u,p=c;if(0===r)for(a=0;a=0;s--)(o=h[a][s])&&-1!==o.index&&o.visible&&0!==o.alpha&&(d||n(s,a,t,e))&&i.push(o);else if(2===r)for(a=p;a>=0;a--)for(s=0;s=0;a--)for(s=f;s>=0;s--)(o=h[a][s])&&-1!==o.index&&o.visible&&0!==o.alpha&&(d||n(s,a,t,e))&&i.push(o);return l.tilesDrawn=i.length,l.tilesTotal=u*c,i}},14127:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(26099);t.exports=function(t,e,i,r,s){i||(i=new n);var a=s.baseTileWidth,o=s.baseTileHeight,l=s.tilemapLayer,h=0,u=0;l&&(r||(r=l.scene.cameras.main),h=l.x+r.scrollX*(1-l.scrollFactorX),a*=l.scaleX,u=l.y+r.scrollY*(1-l.scrollFactorY),o*=l.scaleY);var c=h+a/2*(t-e),d=u+(t+e)*(o/2);return i.set(c,d)}},96897:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(26099);t.exports=function(t,e,i,r,s,a,o){r||(r=new n);var l=a.baseTileWidth,h=a.baseTileHeight,u=a.tilemapLayer;u&&(s||(s=u.scene.cameras.main),e-=u.y+s.scrollY*(1-u.scrollFactorY),h*=u.scaleY,t-=u.x+s.scrollX*(1-u.scrollFactorX),l*=u.scaleX);var c=l/2,d=h/2;o||(e-=h);var f=.5*((t-=c)/c+e/d),p=.5*(-t/c+e/d);return i&&(f=Math.floor(f),p=Math.floor(p)),r.set(f,p)}},71558:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(23029),r=i(62991),s=i(72023),a=i(20576);t.exports=function(t,e,i,o,l){if(void 0===o&&(o=!0),!r(e,i,l))return null;var h,u=l.data[i][e],c=u&&u.collides;t instanceof n?(null===l.data[i][e]&&(l.data[i][e]=new n(l,t.index,e,i,l.tileWidth,l.tileHeight)),l.data[i][e].copy(t)):(h=t,null===l.data[i][e]?l.data[i][e]=new n(l,h,e,i,l.tileWidth,l.tileHeight):l.data[i][e].index=h);var d=l.data[i][e],f=-1!==l.collideIndexes.indexOf(d.index);if(-1===(h=t instanceof n?t.index:t))d.width=l.tileWidth,d.height=l.tileHeight;else{var p=l.tilemapLayer.tilemap,m=p.tiles[h][2],g=p.tilesets[m];d.width=g.tileWidth,d.height=g.tileHeight}return a(d,f),o&&c!==d.collides&&s(e,i,l),d}},26303:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(71558),r=new(i(26099));t.exports=function(t,e,i,s,a,o){return o.tilemapLayer.worldToTileXY(e,i,!0,r,a,o),n(t,r.x,r.y,s,o)}},14051:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(42573),r=i(71558);t.exports=function(t,e,i,s,a){if(void 0===s&&(s=!0),!Array.isArray(t))return null;Array.isArray(t[0])||(t=[t]);for(var o=t.length,l=t[0].length,h=0;h{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(7386),r=i(26546);t.exports=function(t,e,i,s,a,o){var l,h=n(t,e,i,s,{},o);if(!a)for(a=[],l=0;l{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(23029),r=i(62991),s=i(72023);t.exports=function(t,e,i,a,o){if(void 0===i&&(i=!0),void 0===a&&(a=!0),!r(t,e,o))return null;var l=o.data[e][t];return l?(o.data[e][t]=i?null:new n(o,-1,t,e,o.tileWidth,o.tileHeight),a&&l&&l.collides&&s(t,e,o),l):null}},94178:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(63557),r=new(i(26099));t.exports=function(t,e,i,s,a,o){return o.tilemapLayer.worldToTileXY(t,e,!0,r,a,o),n(r.x,r.y,i,s,o)}},15533:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(7386),r=i(3956),s=new r(105,210,231,150),a=new r(243,134,48,200),o=new r(40,39,37,150);t.exports=function(t,e,i){void 0===e&&(e={});var r=void 0!==e.tileColor?e.tileColor:s,l=void 0!==e.collidingTileColor?e.collidingTileColor:a,h=void 0!==e.faceColor?e.faceColor:o,u=n(0,0,i.width,i.height,null,i);t.translateCanvas(i.tilemapLayer.x,i.tilemapLayer.y),t.scaleCanvas(i.tilemapLayer.scaleX,i.tilemapLayer.scaleY);for(var c=0;c{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(7386);t.exports=function(t,e,i,r,s,a,o){for(var l=n(i,r,s,a,null,o),h=0;h{t.exports=function(t,e,i,n){var r,s,a,o=t.data,l=t.width,h=t.height,u=t.tilemapLayer,c=Math.max(0,e.left),d=Math.min(l,e.right),f=Math.max(0,e.top),p=Math.min(h,e.bottom);if(0===i)for(s=f;s=c;r--)(a=o[s][r])&&-1!==a.index&&a.visible&&0!==a.alpha&&n.push(a);else if(2===i)for(s=p;s>=f;s--)for(r=c;o[s]&&r=f;s--)for(r=d;o[s]&&r>=c;r--)(a=o[s][r])&&-1!==a.index&&a.visible&&0!==a.alpha&&n.push(a);return u.tilesDrawn=n.length,u.tilesTotal=l*h,n}},57068:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(20576),r=i(42573),s=i(9589);t.exports=function(t,e,i,a,o){void 0===e&&(e=!0),void 0===i&&(i=!0),void 0===o&&(o=!0),Array.isArray(t)||(t=[t]);for(var l=0;l{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(20576),r=i(42573),s=i(9589);t.exports=function(t,e,i,a,o,l){if(void 0===i&&(i=!0),void 0===a&&(a=!0),void 0===l&&(l=!0),!(t>e)){for(var h=t;h<=e;h++)s(h,i,o);if(l)for(var u=0;u=t&&d.index<=e&&n(d,i)}a&&r(0,0,o.width,o.height,o)}}},75661:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(20576),r=i(42573),s=i(9589);t.exports=function(t,e,i,a){void 0===e&&(e=!0),void 0===i&&(i=!0),Array.isArray(t)||(t=[t]);for(var o=0;o{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(20576),r=i(42573),s=i(97022);t.exports=function(t,e,i,a){void 0===e&&(e=!0),void 0===i&&(i=!0);for(var o=0;o{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(20576),r=i(42573);t.exports=function(t,e,i){void 0===t&&(t=!0),void 0===e&&(e=!0);for(var s=0;s0&&n(o,t)}}e&&r(0,0,i.width,i.height,i)}},9589:t=>{t.exports=function(t,e,i){var n=i.collideIndexes.indexOf(t);e&&-1===n?i.collideIndexes.push(t):e||-1===n||i.collideIndexes.splice(n,1)}},20576:t=>{t.exports=function(t,e){e?t.setCollision(!0,!0,!0,!0,!1):t.resetCollision(!1)}},79583:t=>{t.exports=function(t,e,i,n){if(\"number\"==typeof t)n.callbacks[t]=null!==e?{callback:e,callbackContext:i}:void 0;else for(var r=0,s=t.length;r{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(7386);t.exports=function(t,e,i,r,s,a,o){for(var l=n(t,e,i,r,null,o),h=0;h{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(7386),r=i(33680);t.exports=function(t,e,i,s,a){var o=n(t,e,i,s,null,a),l=o.map((function(t){return t.index}));r(l);for(var h=0;h{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(63448),r=i(56583);t.exports=function(t,e){var i=t.tilemapLayer.tilemap,s=t.tilemapLayer,a=Math.floor(i.tileWidth*s.scaleX),o=Math.floor(i.tileHeight*s.scaleY);return{left:r(e.worldView.x-s.x,a,0,!0)-s.cullPaddingX,right:n(e.worldView.right-s.x,a,0,!0)+s.cullPaddingX,top:r(e.worldView.y-s.y,o/2,0,!0)-s.cullPaddingY,bottom:n(e.worldView.bottom-s.y,o/2,0,!0)+s.cullPaddingY}}},54503:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(61325),r=i(32483);t.exports=function(t,e,i,s){void 0===i&&(i=[]),void 0===s&&(s=0),i.length=0;var a=t.tilemapLayer,o=n(t,e);return a.skipCull&&1===a.scrollFactorX&&1===a.scrollFactorY&&(o.left=0,o.right=t.width,o.top=0,o.bottom=t.height),r(t,o,s,i),i}},97202:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(26099);t.exports=function(t,e,i,r,s){i||(i=new n);var a=s.baseTileWidth,o=s.baseTileHeight,l=s.tilemapLayer,h=0,u=0;l&&(r||(r=l.scene.cameras.main),h=l.x+r.scrollX*(1-l.scrollFactorX),a*=l.scaleX,u=l.y+r.scrollY*(1-l.scrollFactorY),o*=l.scaleY);var c=h+t*a+e%2*(a/2),d=u+e*(o/2);return i.set(c,d)}},28054:t=>{t.exports=function(t,e,i){var n=i.baseTileHeight,r=i.tilemapLayer,s=0;return r&&(void 0===e&&(e=r.scene.cameras.main),s=r.y+e.scrollY*(1-r.scrollFactorY),n*=r.scaleY),s+t*(n/2)+n}},15108:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(26099);t.exports=function(t,e,i,r,s,a){r||(r=new n);var o=a.baseTileWidth,l=a.baseTileHeight,h=a.tilemapLayer;h&&(s||(s=h.scene.cameras.main),e-=h.y+s.scrollY*(1-h.scrollFactorY),l*=h.scaleY,t-=h.x+s.scrollX*(1-h.scrollFactorX),o*=h.scaleX);var u=i?Math.floor(e/(l/2)):e/(l/2),c=i?Math.floor((t+u%2*.5*o)/o):(t+u%2*.5*o)/o;return r.set(c,u)}},51900:t=>{t.exports=function(t,e,i,n){var r=n.baseTileHeight,s=n.tilemapLayer;return s&&(i||(i=s.scene.cameras.main),t-=s.y+i.scrollY*(1-s.scrollFactorY),r*=s.scaleY),e?Math.floor(t/(r/2)):t/(r/2)}},86560:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(7386);t.exports=function(t,e,i,r,s,a,o){for(var l=n(i,r,s,a,null,o),h=0;h{t.exports=function(t,e,i){var n=i.baseTileWidth,r=i.tilemapLayer,s=0;return r&&(e||(e=r.scene.cameras.main),s=r.x+e.scrollX*(1-r.scrollFactorX),n*=r.scaleX),s+t*n}},70326:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(97281),r=i(29650),s=i(26099);t.exports=function(t,e,i,a,o){return i||(i=new s(0,0)),i.x=n(t,a,o),i.y=r(e,a,o),i}},29650:t=>{t.exports=function(t,e,i){var n=i.baseTileHeight,r=i.tilemapLayer,s=0;return r&&(e||(e=r.scene.cameras.main),s=r.y+e.scrollY*(1-r.scrollFactorY),n*=r.scaleY),s+t*n}},77366:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(7386),r=i(75508);t.exports=function(t,e,i,s,a,o){if(a){var l,h=n(t,e,i,s,null,o),u=0;for(l=0;l{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(85896),r=new(i(26099));t.exports=function(t,e,i,s){return n(t,0,e,r,i,s),r.x}},85896:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(26099);t.exports=function(t,e,i,r,s,a){void 0===i&&(i=!0),r||(r=new n);var o=a.baseTileWidth,l=a.baseTileHeight,h=a.tilemapLayer;h&&(s||(s=h.scene.cameras.main),t-=h.x+s.scrollX*(1-h.scrollFactorX),e-=h.y+s.scrollY*(1-h.scrollFactorY),o*=h.scaleX,l*=h.scaleY);var u=t/o,c=e/l;return i&&(u=Math.floor(u),c=Math.floor(c)),r.set(u,c)}},63288:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(85896),r=new(i(26099));t.exports=function(t,e,i,s){return n(0,t,e,r,i,s),r.y}},81086:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports={CalculateFacesAt:i(72023),CalculateFacesWithin:i(42573),CheckIsoBounds:i(33528),Copy:i(1785),CreateFromTiles:i(78419),CullBounds:i(19545),CullTiles:i(30003),Fill:i(35137),FilterTiles:i(40253),FindByIndex:i(52692),FindTile:i(66151),ForEachTile:i(97560),GetCullTilesFunction:i(43305),GetTileAt:i(7423),GetTileAtWorldXY:i(60540),GetTileCorners:i(55826),GetTileCornersFunction:i(11758),GetTilesWithin:i(7386),GetTilesWithinShape:i(91141),GetTilesWithinWorldXY:i(96523),GetTileToWorldXFunction:i(39167),GetTileToWorldXYFunction:i(62e3),GetTileToWorldYFunction:i(5984),GetWorldToTileXFunction:i(96113),GetWorldToTileXYFunction:i(16926),GetWorldToTileYFunction:i(55762),HasTileAt:i(45091),HasTileAtWorldXY:i(24152),HexagonalCullBounds:i(90454),HexagonalCullTiles:i(9474),HexagonalGetTileCorners:i(27229),HexagonalTileToWorldXY:i(19951),HexagonalWorldToTileXY:i(86625),IsInLayerBounds:i(62991),IsometricCullTiles:i(14018),IsometricTileToWorldXY:i(14127),IsometricWorldToTileXY:i(96897),PutTileAt:i(71558),PutTileAtWorldXY:i(26303),PutTilesAt:i(14051),Randomize:i(77389),RemoveTileAt:i(63557),RemoveTileAtWorldXY:i(94178),RenderDebug:i(15533),ReplaceByIndex:i(27987),RunCull:i(32483),SetCollision:i(57068),SetCollisionBetween:i(37266),SetCollisionByExclusion:i(75661),SetCollisionByProperty:i(64740),SetCollisionFromCollisionGroup:i(63307),SetLayerCollisionIndex:i(9589),SetTileCollision:i(20576),SetTileIndexCallback:i(79583),SetTileLocationCallback:i(93254),Shuffle:i(32903),StaggeredCullBounds:i(61325),StaggeredCullTiles:i(54503),StaggeredTileToWorldXY:i(97202),StaggeredTileToWorldY:i(28054),StaggeredWorldToTileXY:i(15108),StaggeredWorldToTileY:i(51900),SwapByIndex:i(86560),TileToWorldX:i(97281),TileToWorldXY:i(70326),TileToWorldY:i(29650),WeightedRandomize:i(77366),WorldToTileX:i(10095),WorldToTileXY:i(85896),WorldToTileY:i(63288)}},91907:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports={ORTHOGONAL:0,ISOMETRIC:1,STAGGERED:2,HEXAGONAL:3}},21829:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n={ORIENTATION:i(91907)};t.exports=n},62501:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(79291),r=i(21829),s={Components:i(81086),Parsers:i(57442),Formats:i(80341),ImageCollection:i(16536),ParseToTilemap:i(31989),Tile:i(23029),Tilemap:i(49075),TilemapCreator:i(45939),TilemapFactory:i(46029),Tileset:i(33629),TilemapLayer:i(20442),Orientation:i(91907),LayerData:i(14977),MapData:i(87010),ObjectLayer:i(48700)};s=n(!1,s,r.ORIENTATION),t.exports=s},14977:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(83419),r=i(91907),s=i(95540),a=new n({initialize:function(t){void 0===t&&(t={}),this.name=s(t,\"name\",\"layer\"),this.id=s(t,\"id\",0),this.x=s(t,\"x\",0),this.y=s(t,\"y\",0),this.width=s(t,\"width\",0),this.height=s(t,\"height\",0),this.tileWidth=s(t,\"tileWidth\",0),this.tileHeight=s(t,\"tileHeight\",0),this.baseTileWidth=s(t,\"baseTileWidth\",this.tileWidth),this.baseTileHeight=s(t,\"baseTileHeight\",this.tileHeight),this.orientation=s(t,\"orientation\",r.ORTHOGONAL),this.widthInPixels=s(t,\"widthInPixels\",this.width*this.baseTileWidth),this.heightInPixels=s(t,\"heightInPixels\",this.height*this.baseTileHeight),this.alpha=s(t,\"alpha\",1),this.visible=s(t,\"visible\",!0),this.properties=s(t,\"properties\",[]),this.indexes=s(t,\"indexes\",[]),this.collideIndexes=s(t,\"collideIndexes\",[]),this.callbacks=s(t,\"callbacks\",[]),this.bodies=s(t,\"bodies\",[]),this.data=s(t,\"data\",[]),this.tilemapLayer=s(t,\"tilemapLayer\",null),this.hexSideLength=s(t,\"hexSideLength\",0),this.staggerAxis=s(t,\"staggerAxis\",\"y\"),this.staggerIndex=s(t,\"staggerIndex\",\"odd\")}});t.exports=a},87010:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(83419),r=i(91907),s=i(95540),a=new n({initialize:function(t){void 0===t&&(t={}),this.name=s(t,\"name\",\"map\"),this.width=s(t,\"width\",0),this.height=s(t,\"height\",0),this.infinite=s(t,\"infinite\",!1),this.tileWidth=s(t,\"tileWidth\",0),this.tileHeight=s(t,\"tileHeight\",0),this.widthInPixels=s(t,\"widthInPixels\",this.width*this.tileWidth),this.heightInPixels=s(t,\"heightInPixels\",this.height*this.tileHeight),this.format=s(t,\"format\",null),this.orientation=s(t,\"orientation\",r.ORTHOGONAL),this.renderOrder=s(t,\"renderOrder\",\"right-down\"),this.version=s(t,\"version\",\"1\"),this.properties=s(t,\"properties\",{}),this.layers=s(t,\"layers\",[]),this.images=s(t,\"images\",[]),this.objects=s(t,\"objects\",[]),Array.isArray(this.objects)||(this.objects=[]),this.collision=s(t,\"collision\",{}),this.tilesets=s(t,\"tilesets\",[]),this.imageCollections=s(t,\"imageCollections\",[]),this.tiles=s(t,\"tiles\",[]),this.hexSideLength=s(t,\"hexSideLength\",0),this.staggerAxis=s(t,\"staggerAxis\",\"y\"),this.staggerIndex=s(t,\"staggerIndex\",\"odd\")}});t.exports=a},48700:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(83419),r=i(95540),s=new n({initialize:function(t){void 0===t&&(t={}),this.name=r(t,\"name\",\"object layer\"),this.id=r(t,\"id\",0),this.opacity=r(t,\"opacity\",1),this.properties=r(t,\"properties\",{}),this.propertyTypes=r(t,\"propertytypes\",{}),this.type=r(t,\"type\",\"objectgroup\"),this.visible=r(t,\"visible\",!0),this.objects=r(t,\"objects\",[]),Array.isArray(this.objects)||(this.objects=[])}});t.exports=s},6641:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(91907);t.exports=function(t){return\"isometric\"===(t=t.toLowerCase())?n.ISOMETRIC:\"staggered\"===t?n.STAGGERED:\"hexagonal\"===t?n.HEXAGONAL:n.ORTHOGONAL}},46177:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(80341),r=i(2342),s=i(82593),a=i(46594),o=i(87021);t.exports=function(t,e,i,l,h,u){var c;switch(e){case n.ARRAY_2D:c=r(t,i,l,h,u);break;case n.CSV:c=s(t,i,l,h,u);break;case n.TILED_JSON:c=a(t,i,u);break;case n.WELTMEISTER:c=o(t,i,u);break;default:console.warn(\"Unrecognized tilemap data format: \"+e),c=null}return c}},2342:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(80341),r=i(14977),s=i(87010),a=i(23029);t.exports=function(t,e,i,o,l){for(var h=new r({tileWidth:i,tileHeight:o}),u=new s({name:t,tileWidth:i,tileHeight:o,format:n.ARRAY_2D,layers:[h]}),c=[],d=e.length,f=0,p=0;p{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(80341),r=i(2342);t.exports=function(t,e,i,s,a){var o=e.trim().split(\"\\n\").map((function(t){return t.split(\",\")})),l=r(t,o,i,s,a);return l.format=n.CSV,l}},6656:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(14977),r=i(23029);t.exports=function(t,e){for(var i=[],s=0;s-1?new r(o,f,c,u,a.tilesize,a.tilesize):e?null:new r(o,-1,c,u,a.tilesize,a.tilesize),l.push(d)}h.push(l),l=[]}o.data=h,i.push(o)}return i}},96483:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(33629);t.exports=function(t){for(var e=[],i=[],r=0;r{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(80341),r=i(87010),s=i(6656),a=i(96483);t.exports=function(t,e,i){if(0===e.layer.length)return console.warn(\"No layers found in the Weltmeister map: \"+t),null;for(var o=0,l=0,h=0;ho&&(o=e.layer[h].width),e.layer[h].height>l&&(l=e.layer[h].height);var u=new r({width:o,height:l,name:t,tileWidth:e.layer[0].tilesize,tileHeight:e.layer[0].tilesize,format:n.WELTMEISTER});return u.layers=s(e,i),u.tilesets=a(e),u}},52833:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports={ParseTileLayers:i(6656),ParseTilesets:i(96483),ParseWeltmeister:i(87021)}},57442:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports={FromOrientationString:i(6641),Parse:i(46177),Parse2DArray:i(2342),ParseCSV:i(82593),Impact:i(52833),Tiled:i(96761)}},51233:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(79291);t.exports=function(t){for(var e,i,r,s,a,o=0;o{t.exports=function(t){for(var e=window.atob(t),i=e.length,n=new Array(i/4),r=0;r>>0;return n}},84101:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(33629);t.exports=function(t){var e,i,r=[];for(e=0;e{\n/**\n * @author Seth Berrier \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(95540);t.exports=function(t,e,i){if(!e)return{i:0,layers:t.layers,name:\"\",opacity:1,visible:!0,x:0,y:0};var r=e.x+n(e,\"startx\",0)*t.tilewidth+n(e,\"offsetx\",0),s=e.y+n(e,\"starty\",0)*t.tileheight+n(e,\"offsety\",0);return{i:0,layers:e.layers,name:i.name+e.name+\"/\",opacity:i.opacity*e.opacity,visible:i.visible&&e.visible,x:i.x+r,y:i.y+s}}},29920:t=>{t.exports=function(t){var e=Boolean(2147483648&t),i=Boolean(1073741824&t),n=Boolean(536870912&t);t&=536870911;var r=0,s=!1;return e&&i&&n?(r=Math.PI/2,s=!0):e&&i&&!n?(r=Math.PI,s=!1):e&&!i&&n?(r=Math.PI/2,s=!1):!e||i||n?!e&&i&&n?(r=3*Math.PI/2,s=!1):e||!i||n?e||i||!n?e||i||n||(r=0,s=!1):(r=3*Math.PI/2,s=!0):(r=Math.PI,s=!0):(r=0,s=!0),{gid:t,flippedHorizontal:e,flippedVertical:i,flippedAntiDiagonal:n,rotation:r,flipped:s}}},12635:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(95540),r=i(79677);t.exports=function(t){for(var e=[],i=[],s=r(t);s.i0;)if(s.i>=s.layers.length){if(i.length<1){console.warn(\"TilemapParser.parseTiledJSON - Invalid layer group hierarchy\");break}s=i.pop()}else{var a=s.layers[s.i];if(s.i++,\"imagelayer\"===a.type){var o=n(a,\"offsetx\",0)+n(a,\"startx\",0),l=n(a,\"offsety\",0)+n(a,\"starty\",0);e.push({name:s.name+a.name,image:a.image,x:s.x+o+a.x,y:s.y+l+a.y,alpha:s.opacity*a.opacity,visible:s.visible&&a.visible,properties:n(a,\"properties\",{})})}else if(\"group\"===a.type){var h=r(t,a,s);i.push(s),s=h}}return e}},46594:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(51233),r=i(84101),s=i(91907),a=i(62644),o=i(80341),l=i(6641),h=i(87010),u=i(12635),c=i(22611),d=i(28200),f=i(24619);t.exports=function(t,e,i){var p=a(e),m=new h({width:p.width,height:p.height,name:t,tileWidth:p.tilewidth,tileHeight:p.tileheight,orientation:l(p.orientation),format:o.TILED_JSON,version:p.version,properties:p.properties,renderOrder:p.renderorder,infinite:p.infinite});if(m.orientation===s.HEXAGONAL)if(m.hexSideLength=p.hexsidelength,m.staggerAxis=p.staggeraxis,m.staggerIndex=p.staggerindex,\"y\"===m.staggerAxis){var g=(m.tileHeight-m.hexSideLength)/2;m.widthInPixels=m.tileWidth*(m.width+.5),m.heightInPixels=m.height*(m.hexSideLength+g)+g}else{var v=(m.tileWidth-m.hexSideLength)/2;m.widthInPixels=m.width*(m.hexSideLength+v)+v,m.heightInPixels=m.tileHeight*(m.height+.5)}m.layers=d(p,i),m.images=u(p);var y=f(p);return m.tilesets=y.tilesets,m.imageCollections=y.imageCollections,m.objects=c(p),m.tiles=r(m),n(m),m}},52205:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(18254),r=i(29920),s=function(t){return{x:t.x,y:t.y}},a=[\"id\",\"name\",\"type\",\"rotation\",\"properties\",\"visible\",\"x\",\"y\",\"width\",\"height\"];t.exports=function(t,e,i){void 0===e&&(e=0),void 0===i&&(i=0);var o=n(t,a);if(o.x+=e,o.y+=i,t.gid){var l=r(t.gid);o.gid=l.gid,o.flippedHorizontal=l.flippedHorizontal,o.flippedVertical=l.flippedVertical,o.flippedAntiDiagonal=l.flippedAntiDiagonal}else t.polyline?o.polyline=t.polyline.map(s):t.polygon?o.polygon=t.polygon.map(s):t.ellipse?o.ellipse=t.ellipse:t.text?o.text=t.text:t.point?o.point=!0:o.rectangle=!0;return o}},22611:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(95540),r=i(52205),s=i(48700),a=i(79677);t.exports=function(t){for(var e=[],i=[],o=a(t);o.i0;)if(o.i>=o.layers.length){if(i.length<1){console.warn(\"TilemapParser.parseTiledJSON - Invalid layer group hierarchy\");break}o=i.pop()}else{var l=o.layers[o.i];if(o.i++,l.opacity*=o.opacity,l.visible=o.visible&&l.visible,\"objectgroup\"===l.type){l.name=o.name+l.name;for(var h=o.x+n(l,\"startx\",0)+n(l,\"offsetx\",0),u=o.y+n(l,\"starty\",0)+n(l,\"offsety\",0),c=[],d=0;d{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(41868),r=i(91907),s=i(79677),a=i(6641),o=i(95540),l=i(14977),h=i(29920),u=i(23029);t.exports=function(t,e){for(var i=o(t,\"infinite\",!1),c=[],d=[],f=s(t);f.i0;)if(f.i>=f.layers.length){if(d.length<1){console.warn(\"TilemapParser.parseTiledJSON - Invalid layer group hierarchy\");break}f=d.pop()}else{var p=f.layers[f.i];if(f.i++,\"tilelayer\"===p.type)if(p.compression)console.warn(\"TilemapParser.parseTiledJSON - Layer compression is unsupported, skipping layer '\"+p.name+\"'\");else{if(p.encoding&&\"base64\"===p.encoding){if(p.chunks)for(var m=0;m0?((y=new u(g,v.gid,I,F,t.tilewidth,t.tileheight)).rotation=v.rotation,y.flipX=v.flipped,T[F][I]=y):(b=e?null:new u(g,-1,I,F,t.tilewidth,t.tileheight),T[F][I]=b),++S===k.width&&(D++,S=0)}}else{(g=new l({name:f.name+p.name,id:p.id,x:f.x+o(p,\"offsetx\",0)+p.x,y:f.y+o(p,\"offsety\",0)+p.y,width:p.width,height:p.height,tileWidth:t.tilewidth,tileHeight:t.tileheight,alpha:f.opacity*p.opacity,visible:f.visible&&p.visible,properties:o(p,\"properties\",[]),orientation:a(t.orientation)})).orientation===r.HEXAGONAL&&(g.hexSideLength=t.hexsidelength,g.staggerAxis=t.staggeraxis,g.staggerIndex=t.staggerindex,\"y\"===g.staggerAxis?(x=(g.tileHeight-g.hexSideLength)/2,g.widthInPixels=g.tileWidth*(g.width+.5),g.heightInPixels=g.height*(g.hexSideLength+x)+x):(w=(g.tileWidth-g.hexSideLength)/2,g.widthInPixels=g.width*(g.hexSideLength+w)+w,g.heightInPixels=g.tileHeight*(g.height+.5)));for(var L=[],N=0,B=p.data.length;N0?((y=new u(g,v.gid,S,T.length,t.tilewidth,t.tileheight)).rotation=v.rotation,y.flipX=v.flipped,L.push(y)):(b=e?null:new u(g,-1,S,T.length,t.tilewidth,t.tileheight),L.push(b)),++S===p.width&&(T.push(L),S=0,L=[])}g.data=T,c.push(g)}else if(\"group\"===p.type){var z=s(t,p,f);d.push(f),f=z}}return c}},24619:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(33629),r=i(16536),s=i(52205),a=i(57880);t.exports=function(t){for(var e,i=[],o=[],l=null,h=0;h1){var d=void 0,f=void 0;if(Array.isArray(u.tiles)){d=d||{},f=f||{};for(var p=0;p{t.exports=function(t,e){for(var i=0;i0){var s,a,o,l={},h={};if(Array.isArray(n.edgecolors))for(s=0;s{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports={AssignTileProperties:i(51233),Base64Decode:i(41868),BuildTilesetIndex:i(84101),CreateGroupLayer:i(79677),ParseGID:i(29920),ParseImageLayers:i(12635),ParseJSONTiled:i(46594),ParseObject:i(52205),ParseObjectLayers:i(22611),ParseTileLayers:i(28200),ParseTilesets:i(24619)}},33385:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(83419),r=i(37277),s=i(44594),a=i(94880),o=i(72905),l=new n({initialize:function(t){this.scene=t,this.systems=t.sys,this.now=0,this.startTime=0,this.timeScale=1,this.paused=!1,this._active=[],this._pendingInsertion=[],this._pendingRemoval=[],t.sys.events.once(s.BOOT,this.boot,this),t.sys.events.on(s.START,this.start,this)},boot:function(){this.now=this.systems.game.loop.time,this.systems.events.once(s.DESTROY,this.destroy,this)},start:function(){this.startTime=this.systems.game.loop.time;var t=this.systems.events;t.on(s.PRE_UPDATE,this.preUpdate,this),t.on(s.UPDATE,this.update,this),t.once(s.SHUTDOWN,this.shutdown,this)},addEvent:function(t){var e;if(t instanceof a){if(e=t,this.removeEvent(e),e.elapsed=e.startAt,e.hasDispatched=!1,e.repeatCount=-1===e.repeat||e.loop?999999999999:e.repeat,e.delay<=0&&e.repeatCount>0)throw new Error(\"TimerEvent infinite loop created via zero delay\")}else e=new a(t);return this._pendingInsertion.push(e),e},delayedCall:function(t,e,i,n){return this.addEvent({delay:t,callback:e,args:i,callbackScope:n})},clearPendingEvents:function(){return this._pendingInsertion=[],this},removeEvent:function(t){Array.isArray(t)||(t=[t]);for(var e=0;e-1&&this._active.splice(r,1),n.destroy()}for(i=0;i=n.delay)){var r=n.elapsed-n.delay;if(n.elapsed=n.delay,!n.hasDispatched&&n.callback&&(n.hasDispatched=!0,n.callback.apply(n.callbackScope,n.args)),n.repeatCount>0){if(n.repeatCount--,r>=n.delay)for(;r>=n.delay&&n.repeatCount>0;)n.callback&&n.callback.apply(n.callbackScope,n.args),r-=n.delay,n.repeatCount--;n.elapsed=r,n.hasDispatched=!1}else n.hasDispatched&&this._pendingRemoval.push(n)}}}},shutdown:function(){var t;for(t=0;t{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(83419),r=i(50792),s=i(39429),a=i(95540),o=i(44594),l=i(89809),h=new n({Extends:r,initialize:function(t,e){r.call(this),this.scene=t,this.systems=t.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 i=this.systems.events;i.on(o.PRE_UPDATE,this.preUpdate,this),i.on(o.UPDATE,this.update,this),i.once(o.SHUTDOWN,this.destroy,this),e&&this.add(e)},preUpdate:function(t,e){this.paused||(this.elapsed+=e*this.timeScale)},update:function(){if(!this.paused&&!this.complete){var t,e,i=this.events,n=!1,r=this.systems;for(t=0;t=i.length&&(0!==this.loop&&(-1===this.loop||this.loop>this.iteration)?(this.iteration++,this.reset(!0)):this.complete=!0),this.complete&&this.emit(l.COMPLETE,this)}},play:function(t){return void 0===t&&(t=!0),this.paused=!1,this.complete=!1,this.totalComplete=0,t&&this.reset(),this},pause:function(){this.paused=!0;for(var t=this.events,e=0;e0&&(i=e[e.length-1].time);for(var n=0;n{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(83419),r=i(95540),s=new n({initialize:function(t){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(t)},reset:function(t){if(this.delay=r(t,\"delay\",0),this.repeat=r(t,\"repeat\",0),this.loop=r(t,\"loop\",!1),this.callback=r(t,\"callback\",void 0),this.callbackScope=r(t,\"callbackScope\",this),this.args=r(t,\"args\",[]),this.timeScale=r(t,\"timeScale\",1),this.startAt=r(t,\"startAt\",0),this.paused=r(t,\"paused\",!1),this.elapsed=this.startAt,this.hasDispatched=!1,this.repeatCount=-1===this.repeat||this.loop?999999999999:this.repeat,this.delay<=0&&this.repeatCount>0)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 t=this.delay+this.delay*this.repeat;return(this.elapsed+this.delay*(this.repeat-this.repeatCount))/t}return this.getProgress()},getRepeatCount:function(){return this.repeatCount},getElapsed:function(){return this.elapsed},getElapsedSeconds:function(){return.001*this.elapsed},getRemaining:function(){return this.delay-this.elapsed},getRemainingSeconds:function(){return.001*this.getRemaining()},getOverallRemaining:function(){return this.delay*(1+this.repeatCount)-this.elapsed},getOverallRemainingSeconds:function(){return.001*this.getOverallRemaining()},remove:function(t){void 0===t&&(t=!1),this.elapsed=this.delay,this.hasDispatched=!t,this.repeatCount=0},destroy:function(){this.callback=void 0,this.callbackScope=void 0,this.args=[]}});t.exports=s},35945:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports=\"complete\"},89809:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports={COMPLETE:i(35945)}},90291:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports={Clock:i(33385),Events:i(89809),Timeline:i(96120),TimerEvent:i(94880)}},40382:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(72905),r=i(83419),s=i(43491),a=i(88032),o=i(37277),l=i(44594),h=i(93109),u=i(86081),c=i(8357),d=i(43960),f=i(26012),p=new r({initialize:function(t){this.scene=t,this.events=t.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(l.BOOT,this.boot,this),this.events.on(l.START,this.start,this)},boot:function(){this.events.once(l.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(l.UPDATE,this.update,this),this.events.once(l.SHUTDOWN,this.shutdown,this)},create:function(t){Array.isArray(t)||(t=[t]);for(var e=[],i=0;i-1},existing:function(t){return this.has(t)||this.tweens.push(t.reset()),this},addCounter:function(t){var e=a(this,t);return this.tweens.push(e.reset()),e},stagger:function(t,e){return h(t,e)},setLagSmooth:function(t,e){return void 0===t&&(t=1/1e-8),void 0===e&&(e=0),this.maxLag=t,this.lagSkip=Math.min(e,this.maxLag),this},setFps:function(t){return void 0===t&&(t=240),this.gap=1e3/t,this.nextTime=1e3*this.time+this.gap,this},getDelta:function(t){var e=Date.now()-this.prevTime;e>this.maxLag&&(this.startTime+=e-this.lagSkip),this.prevTime+=e;var i=this.prevTime-this.startTime,n=i-this.nextTime,r=i-1e3*this.time;return n>0||t?(i/=1e3,this.time=i,this.nextTime+=n+(n>=this.gap?4:this.gap-n)):r=0,r},tick:function(){return this.step(!0),this},update:function(){this.paused||this.step(!1)},step:function(t){void 0===t&&(t=!1);var e=this.getDelta(t);if(!(e<=0)){var i,n;this.processing=!0;var r=[],s=this.tweens;for(i=0;i0){for(i=0;i-1&&(n.isPendingRemove()||n.isDestroyed())&&(s.splice(o,1),n.destroy())}r.length=0}this.processing=!1}},remove:function(t){return this.processing?t.setPendingRemoveState():(n(this.tweens,t),t.setRemovedState()),this},reset:function(t){return this.existing(t),t.seek(),t.setActiveState(),this},makeActive:function(t){return this.existing(t),t.setActiveState(),this},each:function(t,e){var i,n=[null];for(i=1;i{t.exports=function(t,e,i){return t&&t.hasOwnProperty(e)?t[e]:i}},6113:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(62640),r=i(35355);t.exports=function(t,e){var i=n.Power0;if(\"string\"==typeof t)if(n.hasOwnProperty(t))i=n[t];else{var s=\"\";if(t.indexOf(\".\")){var a=(s=t.substring(t.indexOf(\".\")+1)).toLowerCase();\"in\"===a?s=\"easeIn\":\"out\"===a?s=\"easeOut\":\"inout\"===a&&(s=\"easeInOut\")}t=r(t.substring(0,t.indexOf(\".\")+1)+s),n.hasOwnProperty(t)&&(i=n[t])}else\"function\"==typeof t&&(i=t);if(!e)return i;var o=e.slice(0);return o.unshift(0),function(t){return o[0]=t,i.apply(this,o)}}},91389:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(89318),r=i(77259),s={bezier:n,catmull:r,catmullrom:r,linear:i(28392)};t.exports=function(t){if(null===t)return null;var e=s.linear;return\"string\"==typeof t?s.hasOwnProperty(t)&&(e=s[t]):\"function\"==typeof t&&(e=t),e}},55292:t=>{t.exports=function(t,e,i){return t.hasOwnProperty(e)?\"function\"==typeof t[e]?function(i,n,r,s,a,o){return t[e](i,n,r,s,a,o)}:function(){return t[e]}:\"function\"==typeof i?i:function(){return i}}},82985:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(81076);t.exports=function(t){var e,i=[];if(t.hasOwnProperty(\"props\"))for(e in t.props)\"_\"!==e.substring(0,1)&&i.push({key:e,value:t.props[e]});else for(e in t)-1===n.indexOf(e)&&\"_\"!==e.substring(0,1)&&i.push({key:e,value:t[e]});return i}},62329:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(35154);t.exports=function(t){var e=n(t,\"targets\",null);return null===e||(\"function\"==typeof e&&(e=e.call()),Array.isArray(e)||(e=[e])),e}},17777:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(30976),r=i(99472);function s(t){return!!t.getActive&&\"function\"==typeof t.getActive}function a(t){return!!t.getStart&&\"function\"==typeof t.getStart}function o(t){return!!t.getEnd&&\"function\"==typeof t.getEnd}var l=function(t,e){var i,h,u=function(t,e,i){return i},c=function(t,e,i){return i},d=null,f=typeof e;if(\"number\"===f)u=function(){return e};else if(Array.isArray(e))c=function(){return e[0]},u=function(){return e[e.length-1]};else if(\"string\"===f){var p=e.toLowerCase(),m=\"random\"===p.substring(0,6),g=\"int\"===p.substring(0,3);if(m||g){var v=p.indexOf(\"(\"),y=p.indexOf(\")\"),b=p.indexOf(\",\");if(!(v&&y&&b))throw new Error(\"invalid random() format\");var x=parseFloat(p.substring(v+1,b)),w=parseFloat(p.substring(b+1,y));u=m?function(){return r(x,w)}:function(){return n(x,w)}}else{p=p[0];var T=parseFloat(e.substr(2));switch(p){case\"+\":u=function(t,e,i){return i+T};break;case\"-\":u=function(t,e,i){return i-T};break;case\"*\":u=function(t,e,i){return i*T};break;case\"/\":u=function(t,e,i){return i/T};break;default:u=function(){return parseFloat(e)}}}}else if(\"function\"===f)u=e;else if(\"object\"===f)if(a(h=e)||o(h)||s(h))s(e)&&(d=e.getActive),o(e)&&(u=e.getEnd),a(e)&&(c=e.getStart);else if(e.hasOwnProperty(\"value\"))i=l(t,e.value);else{var S=e.hasOwnProperty(\"to\"),E=e.hasOwnProperty(\"from\"),C=e.hasOwnProperty(\"start\");if(S&&(E||C)){if(i=l(t,e.to),C){var A=l(t,e.start);i.getActive=A.getEnd}if(E){var _=l(t,e.from);i.getStart=_.getEnd}}}return i||(i={getActive:d,getEnd:u,getStart:c}),i};t.exports=l},88032:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(70402),r=i(69902),s=i(23568),a=i(57355),o=i(6113),l=i(95540),h=i(55292),u=i(35154),c=i(17777),d=i(269),f=i(86081);t.exports=function(t,e,i){if(e instanceof f)return e.parent=t,e;i=void 0===i?r:d(r,i);var p=l(e,\"from\",0),m=l(e,\"to\",1),g=[{value:p}],v=l(e,\"delay\",i.delay),y=l(e,\"easeParams\",i.easeParams),b=l(e,\"ease\",i.ease),x=c(\"value\",m),w=new f(t,g),T=w.add(0,\"value\",x.getEnd,x.getStart,x.getActive,o(l(e,\"ease\",b),l(e,\"easeParams\",y)),h(e,\"delay\",v),l(e,\"duration\",i.duration),a(e,\"yoyo\",i.yoyo),l(e,\"hold\",i.hold),l(e,\"repeat\",i.repeat),l(e,\"repeatDelay\",i.repeatDelay),!1,!1);T.start=p,T.current=p,w.completeDelay=s(e,\"completeDelay\",0),w.loop=Math.round(s(e,\"loop\",0)),w.loopDelay=Math.round(s(e,\"loopDelay\",0)),w.paused=a(e,\"paused\",!1),w.persist=a(e,\"persist\",!1),w.isNumberTween=!0,w.callbackScope=u(e,\"callbackScope\",w);for(var S=n.TYPES,E=0;E{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(6113),r=i(35154),s=i(36383);t.exports=function(t,e){void 0===e&&(e={});var i=r(e,\"start\",0),a=r(e,\"ease\",null),o=r(e,\"grid\",null),l=r(e,\"from\",0),h=\"first\"===l,u=\"center\"===l,c=\"last\"===l,d=\"number\"==typeof l,f=Array.isArray(t),p=f?parseFloat(t[0]):parseFloat(t),m=f?parseFloat(t[1]):0,g=Math.max(p,m);if(f&&(i+=p),o){var v=o[0],y=o[1],b=0,x=0,w=0,T=0,S=[];c?(b=v-1,x=y-1):d?(b=l%v,x=Math.floor(l/v)):u&&(b=(v-1)/2,x=(y-1)/2);for(var E=s.MIN_SAFE_INTEGER,C=0;CE&&(E=_),S[C][A]=_}}}var k=a?n(a):null;return o?function(t,e,n,r){var s,a=0,o=r%v,l=Math.floor(r/v);if(o>=0&&o=0&&l{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(70402),r=i(69902),s=i(23568),a=i(57355),o=i(6113),l=i(95540),h=i(91389),u=i(55292),c=i(82985),d=i(62329),f=i(35154),p=i(17777),m=i(269),g=i(86081);t.exports=function(t,e,i){if(e instanceof g)return e.parent=t,e;i=void 0===i?r:m(r,i);var v=d(e);!v&&i.targets&&(v=i.targets);for(var y=c(e),b=l(e,\"delay\",i.delay),x=l(e,\"duration\",i.duration),w=l(e,\"easeParams\",i.easeParams),T=l(e,\"ease\",i.ease),S=l(e,\"hold\",i.hold),E=l(e,\"repeat\",i.repeat),C=l(e,\"repeatDelay\",i.repeatDelay),A=a(e,\"yoyo\",i.yoyo),_=a(e,\"flipX\",i.flipX),k=a(e,\"flipY\",i.flipY),P=l(e,\"interpolation\",i.interpolation),M=function(t,e,i,n){if(\"texture\"===i){var r=n,s=void 0;Array.isArray(n)?(r=n[0],s=n[1]):n.hasOwnProperty(\"value\")?(r=n.value,Array.isArray(n.value)?(r=n.value[0],s=n.value[1]):\"string\"==typeof n.value&&(r=n.value)):\"string\"==typeof n&&(r=n),t.addFrame(e,r,s,u(n,\"delay\",b),l(n,\"duration\",x),l(n,\"hold\",S),l(n,\"repeat\",E),l(n,\"repeatDelay\",C),a(n,\"flipX\",_),a(n,\"flipY\",k))}else{var c=p(i,n),d=h(l(n,\"interpolation\",P));t.add(e,i,c.getEnd,c.getStart,c.getActive,o(l(n,\"ease\",T),l(n,\"easeParams\",w)),u(n,\"delay\",b),l(n,\"duration\",x),a(n,\"yoyo\",A),l(n,\"hold\",S),l(n,\"repeat\",E),l(n,\"repeatDelay\",C),a(n,\"flipX\",_),a(n,\"flipY\",k),d,d?n:null)}},D=new g(t,v),O=0;O{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(70402),r=i(23568),s=i(57355),a=i(62329),o=i(35154),l=i(8357),h=i(43960);t.exports=function(t,e){if(e instanceof h)return e.parent=t,e;var i,u=new h(t);u.startDelay=o(e,\"delay\",0),u.completeDelay=r(e,\"completeDelay\",0),u.loop=Math.round(r(e,\"loop\",o(e,\"repeat\",0))),u.loopDelay=Math.round(r(e,\"loopDelay\",o(e,\"repeatDelay\",0))),u.paused=s(e,\"paused\",!1),u.persist=s(e,\"persist\",!1),u.callbackScope=o(e,\"callbackScope\",u);var c=n.TYPES;for(i=0;i{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports={GetBoolean:i(57355),GetEaseFunction:i(6113),GetInterpolationFunction:i(91389),GetNewValue:i(55292),GetProps:i(82985),GetTargets:i(62329),GetValueOp:i(17777),NumberTweenBuilder:i(88032),StaggerBuilder:i(93109),TweenBuilder:i(8357)}},73685:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports=\"active\"},98540:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports=\"complete\"},67233:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports=\"loop\"},2859:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports=\"pause\"},98336:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports=\"repeat\"},25764:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports=\"resume\"},32193:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports=\"start\"},84371:t=>{\n/**\n * @author samme\n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports=\"stop\"},70766:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports=\"update\"},55659:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports=\"yoyo\"},842:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports={TWEEN_ACTIVE:i(73685),TWEEN_COMPLETE:i(98540),TWEEN_LOOP:i(67233),TWEEN_PAUSE:i(2859),TWEEN_RESUME:i(25764),TWEEN_REPEAT:i(98336),TWEEN_START:i(32193),TWEEN_STOP:i(84371),TWEEN_UPDATE:i(70766),TWEEN_YOYO:i(55659)}},43066:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n={States:i(86353),Builders:i(30231),Events:i(842),TweenManager:i(40382),Tween:i(86081),TweenData:i(48177),TweenFrameData:i(42220),BaseTween:i(70402),TweenChain:i(43960)};t.exports=n},70402:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(83419),r=i(50792),s=i(842),a=i(86353),o=new n({Extends:r,initialize:function(t){r.call(this),this.parent=t,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=a.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(t){return this.timeScale=t,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(s.TWEEN_PAUSE,\"onPause\")),this},resume:function(){return this.paused&&(this.paused=!1,this.dispatchEvent(s.TWEEN_RESUME,\"onResume\")),this},makeActive:function(){this.parent.makeActive(this),this.dispatchEvent(s.TWEEN_ACTIVE,\"onActive\")},onCompleteHandler:function(){this.setPendingRemoveState(),this.dispatchEvent(s.TWEEN_COMPLETE,\"onComplete\")},complete:function(t){return void 0===t&&(t=0),t?(this.setCompleteDelayState(),this.countdown=t):this.onCompleteHandler(),this},completeAfterLoop:function(t){return void 0===t&&(t=0),this.loopCounter>t&&(this.loopCounter=t),this},remove:function(){return this.parent&&this.parent.remove(this),this},stop:function(){return!this.parent||this.isRemoved()||this.isPendingRemove()||this.isDestroyed()||(this.dispatchEvent(s.TWEEN_STOP,\"onStop\"),this.setPendingRemoveState()),this},updateLoopCountdown:function(t){this.countdown-=t,this.countdown<=0&&(this.setActiveState(),this.dispatchEvent(s.TWEEN_LOOP,\"onLoop\"))},updateStartCountdown:function(t){return this.countdown-=t,this.countdown<=0&&(this.hasStarted=!0,this.setActiveState(),this.dispatchEvent(s.TWEEN_START,\"onStart\"),t=0),t},updateCompleteDelay:function(t){this.countdown-=t,this.countdown<=0&&this.onCompleteHandler()},setCallback:function(t,e,i){return void 0===i&&(i=[]),this.callbacks.hasOwnProperty(t)&&(this.callbacks[t]={func:e,params:i}),this},setPendingState:function(){this.state=a.PENDING},setActiveState:function(){this.state=a.ACTIVE,this.hasStarted=!1},setLoopDelayState:function(){this.state=a.LOOP_DELAY},setCompleteDelayState:function(){this.state=a.COMPLETE_DELAY},setStartDelayState:function(){this.state=a.START_DELAY,this.countdown=this.startDelay,this.hasStarted=!1},setPendingRemoveState:function(){this.state=a.PENDING_REMOVE},setRemovedState:function(){this.state=a.REMOVED},setFinishedState:function(){this.state=a.FINISHED},setDestroyedState:function(){this.state=a.DESTROYED},isPending:function(){return this.state===a.PENDING},isActive:function(){return this.state===a.ACTIVE},isLoopDelayed:function(){return this.state===a.LOOP_DELAY},isCompleteDelayed:function(){return this.state===a.COMPLETE_DELAY},isStartDelayed:function(){return this.state===a.START_DELAY},isPendingRemove:function(){return this.state===a.PENDING_REMOVE},isRemoved:function(){return this.state===a.REMOVED},isFinished:function(){return this.state===a.FINISHED},isDestroyed:function(){return this.state===a.DESTROYED},destroy:function(){this.data&&this.data.forEach((function(t){t.destroy()})),this.removeAllListeners(),this.callbacks=null,this.data=null,this.parent=null,this.setDestroyedState()}});o.TYPES=[\"onActive\",\"onComplete\",\"onLoop\",\"onPause\",\"onRepeat\",\"onResume\",\"onStart\",\"onStop\",\"onUpdate\",\"onYoyo\"],t.exports=o},95042:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(83419),r=i(842),s=i(86353),a=new n({initialize:function(t,e,i,n,r,s,a,o,l,h){this.tween=t,this.targetIndex=e,this.duration=n<=0?.01:n,this.totalDuration=0,this.delay=0,this.getDelay=i,this.yoyo=r,this.hold=s,this.repeat=a,this.repeatDelay=o,this.repeatCounter=0,this.flipX=l,this.flipY=h,this.progress=0,this.elapsed=0,this.state=0,this.isCountdown=!1},getTarget:function(){return this.tween.targets[this.targetIndex]},setTargetValue:function(t){void 0===t&&(t=this.current),this.tween.targets[this.targetIndex][this.key]=t},setCreatedState:function(){this.state=s.CREATED,this.isCountdown=!1},setDelayState:function(){this.state=s.DELAY,this.isCountdown=!0},setPendingRenderState:function(){this.state=s.PENDING_RENDER,this.isCountdown=!1},setPlayingForwardState:function(){this.state=s.PLAYING_FORWARD,this.isCountdown=!1},setPlayingBackwardState:function(){this.state=s.PLAYING_BACKWARD,this.isCountdown=!1},setHoldState:function(){this.state=s.HOLD_DELAY,this.isCountdown=!0},setRepeatState:function(){this.state=s.REPEAT_DELAY,this.isCountdown=!0},setCompleteState:function(){this.state=s.COMPLETE,this.isCountdown=!1},isCreated:function(){return this.state===s.CREATED},isDelayed:function(){return this.state===s.DELAY},isPendingRender:function(){return this.state===s.PENDING_RENDER},isPlayingForward:function(){return this.state===s.PLAYING_FORWARD},isPlayingBackward:function(){return this.state===s.PLAYING_BACKWARD},isHolding:function(){return this.state===s.HOLD_DELAY},isRepeating:function(){return this.state===s.REPEAT_DELAY},isComplete:function(){return this.state===s.COMPLETE},setStateFromEnd:function(t){this.yoyo?this.onRepeat(t,!0,!0):this.repeatCounter>0?this.onRepeat(t,!0,!1):this.setCompleteState()},setStateFromStart:function(t){this.repeatCounter>0?this.onRepeat(t,!1):this.setCompleteState()},reset:function(){var t=this.tween,e=t.totalTargets,i=this.targetIndex,n=t.targets[i],r=this.key;this.progress=0,this.elapsed=0,this.delay=this.getDelay(n,r,0,i,e,t),this.repeatCounter=-1===this.repeat?s.MAX:this.repeat,this.setPendingRenderState();var a=this.duration+this.hold;this.yoyo&&(a+=this.duration);var o=a+this.repeatDelay;this.totalDuration=this.delay+a,-1===this.repeat?(this.totalDuration+=o*s.MAX,t.isInfinite=!0):this.repeat>0&&(this.totalDuration+=o*this.repeat),this.totalDuration>t.duration&&(t.duration=this.totalDuration),this.delay0&&(this.elapsed=this.delay,this.setDelayState())},onRepeat:function(t,e,i){var n=this.tween,s=n.totalTargets,a=this.targetIndex,o=n.targets[a],l=this.key,h=\"texture\"!==l;if(this.elapsed=t,this.progress=t/this.duration,this.flipX&&o.toggleFlipX(),this.flipY&&o.toggleFlipY(),h&&(e||i)&&(this.start=this.getStartValue(o,l,this.start,a,s,n)),i)return this.setPlayingBackwardState(),void this.dispatchEvent(r.TWEEN_YOYO,\"onYoyo\");this.repeatCounter--,h&&(this.end=this.getEndValue(o,l,this.start,a,s,n)),this.repeatDelay>0?(this.elapsed=this.repeatDelay-t,h&&(this.current=this.start,o[l]=this.current),this.setRepeatState()):(this.setPlayingForwardState(),this.dispatchEvent(r.TWEEN_REPEAT,\"onRepeat\"))},destroy:function(){this.tween=null,this.getDelay=null,this.setCompleteState()}});t.exports=a},69902:t=>{t.exports={targets:null,delay:0,duration:1e3,ease:\"Power0\",easeParams:null,hold:0,repeat:0,repeatDelay:0,yoyo:!1,flipX:!1,flipY:!1,persist:!1,interpolation:null}},81076:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports=[\"callbackScope\",\"completeDelay\",\"delay\",\"duration\",\"ease\",\"easeParams\",\"flipX\",\"flipY\",\"hold\",\"interpolation\",\"loop\",\"loopDelay\",\"onActive\",\"onActiveParams\",\"onComplete\",\"onCompleteParams\",\"onLoop\",\"onLoopParams\",\"onPause\",\"onPauseParams\",\"onRepeat\",\"onRepeatParams\",\"onResume\",\"onResumeParams\",\"onStart\",\"onStartParams\",\"onStop\",\"onStopParams\",\"onUpdate\",\"onUpdateParams\",\"onYoyo\",\"onYoyoParams\",\"paused\",\"persist\",\"props\",\"repeat\",\"repeatDelay\",\"targets\",\"yoyo\"]},86081:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(70402),r=i(83419),s=i(842),a=i(44603),o=i(39429),l=i(36383),h=i(86353),u=i(48177),c=i(42220),d=new r({Extends:n,initialize:function(t,e){n.call(this,t),this.targets=e,this.totalTargets=e.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,this.isNumberTween=!1},add:function(t,e,i,n,r,s,a,o,l,h,c,d,f,p,m,g){var v=new u(this,t,e,i,n,r,s,a,o,l,h,c,d,f,p,m,g);return this.totalData=this.data.push(v),v},addFrame:function(t,e,i,n,r,s,a,o,l,h){var u=new c(this,t,e,i,n,r,s,a,o,l,h);return this.totalData=this.data.push(u),u},getValue:function(t){void 0===t&&(t=0);var e=null;return this.data&&(e=this.data[t].current),e},hasTarget:function(t){return this.targets&&-1!==this.targets.indexOf(t)},updateTo:function(t,e,i){if(void 0===i&&(i=!1),\"texture\"!==t)for(var n=0;n0)this.elapsed=0,this.progress=0,this.loopCounter--,this.initTweenData(!0),this.loopDelay>0?(this.countdown=this.loopDelay,this.setLoopDelayState()):(this.setActiveState(),this.dispatchEvent(s.TWEEN_LOOP,\"onLoop\"));else{if(!(this.completeDelay>0))return this.onCompleteHandler(),!0;this.countdown=this.completeDelay,this.setCompleteDelayState()}return!1},onCompleteHandler:function(){this.progress=1,this.totalProgress=1,n.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(t,e,i){if(void 0===t&&(t=0),void 0===e&&(e=16.6),void 0===i&&(i=!1),this.isDestroyed())return console.warn(\"Cannot seek destroyed Tween\",this),this;i||(this.isSeeking=!0),this.reset(!0),this.initTweenData(!0),this.setActiveState(),this.dispatchEvent(s.TWEEN_ACTIVE,\"onActive\");var n=this.paused;if(this.paused=!1,t>0){for(var r=Math.floor(t/e),a=t-r*e,o=0;o0&&this.update(a)}return this.paused=n,this.isSeeking=!1,this},initTweenData:function(t){void 0===t&&(t=!1),this.duration=0,this.startDelay=l.MAX_SAFE_INTEGER;for(var e=this.data,i=0;i0?n+r+(n+a)*s:n+r},reset:function(t){return void 0===t&&(t=!1),this.elapsed=0,this.totalElapsed=0,this.progress=0,this.totalProgress=0,this.loopCounter=this.loop,-1===this.loop&&(this.isInfinite=!0,this.loopCounter=h.MAX),t||(this.initTweenData(),this.setActiveState(),this.dispatchEvent(s.TWEEN_ACTIVE,\"onActive\")),this},update:function(t){if(this.isPendingRemove()||this.isDestroyed())return!this.persist||(this.setFinishedState(),!1);if(this.paused||this.isFinished())return!1;if(t*=this.timeScale*this.parent.timeScale,this.isLoopDelayed())return this.updateLoopCountdown(t),!1;if(this.isCompleteDelayed())return this.updateCompleteDelay(t),!1;this.hasStarted||(this.startDelay-=t,this.startDelay<=0&&(this.hasStarted=!0,this.dispatchEvent(s.TWEEN_START,\"onStart\"),t=0));var e=!1;if(this.isActive())for(var i=this.data,n=0;n{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(72905),r=i(70402),s=i(83419),a=i(842),o=i(44603),l=i(39429),h=i(86353),u=new s({Extends:r,initialize:function(t){r.call(this,t),this.currentTween=null,this.currentIndex=0},init:function(){return this.loopCounter=-1===this.loop?h.MAX:this.loop,this.setCurrentTween(0),this.startDelay>0&&!this.isStartDelayed()?this.setStartDelayState():this.setActiveState(),this},add:function(t){var e=this.parent.create(t);Array.isArray(e)||(e=[e]);for(var i=this.data,n=0;n0)this.loopCounter--,this.resetTweens(),this.loopDelay>0?(this.countdown=this.loopDelay,this.setLoopDelayState()):(this.setActiveState(),this.dispatchEvent(a.TWEEN_LOOP,\"onLoop\"));else{if(!(this.completeDelay>0))return this.onCompleteHandler(),!0;this.countdown=this.completeDelay,this.setCompleteDelayState()}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 t=this.data,e=this.totalData,i=0;i{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(95042),r=i(45319),s=i(83419),a=i(842),o=new s({Extends:n,initialize:function(t,e,i,r,s,a,o,l,h,u,c,d,f,p,m,g,v){n.call(this,t,e,l,h,u,c,d,f,p,m),this.key=i,this.getActiveValue=a,this.getEndValue=r,this.getStartValue=s,this.ease=o,this.start=0,this.previous=0,this.current=0,this.end=0,this.interpolation=g,this.interpolationData=v},reset:function(t){n.prototype.reset.call(this);var e=this.tween.targets[this.targetIndex],i=this.key;t&&(e[i]=this.start),this.start=0,this.previous=0,this.current=0,this.end=0,this.getActiveValue&&(e[i]=this.getActiveValue(e,i,0))},update:function(t){var e=this.tween,i=e.totalTargets,n=this.targetIndex,s=e.targets[n],o=this.key;if(!s)return this.setCompleteState(),!1;if(this.isCountdown&&(this.elapsed-=t,this.elapsed<=0&&(this.elapsed=0,t=0,this.isDelayed()?this.setPendingRenderState():this.isRepeating()?(this.setPlayingForwardState(),this.dispatchEvent(a.TWEEN_REPEAT,\"onRepeat\")):this.isHolding()&&this.setStateFromEnd(0))),this.isPendingRender())return this.start=this.getStartValue(s,o,s[o],n,i,e),this.end=this.getEndValue(s,o,this.start,n,i,e),this.current=this.start,s[o]=this.start,this.setPlayingForwardState(),!0;var l=this.isPlayingForward(),h=this.isPlayingBackward();if(l||h){var u=this.elapsed,c=this.duration,d=0,f=!1;(u+=t)>=c?(d=u-c,u=c,f=!0):u<0&&(u=0);var p=r(u/c,0,1);this.elapsed=u,this.progress=p,this.previous=this.current,l||(p=1-p);var m=this.ease(p);this.interpolation?this.current=this.interpolation(this.interpolationData,m):this.current=this.start+(this.end-this.start)*m,s[o]=this.current,f&&(l?(e.isNumberTween&&(this.current=this.end,s[o]=this.current),this.hold>0?(this.elapsed=this.hold,this.setHoldState()):this.setStateFromEnd(d)):(e.isNumberTween&&(this.current=this.start,s[o]=this.current),this.setStateFromStart(d))),this.dispatchEvent(a.TWEEN_UPDATE,\"onUpdate\")}return!this.isComplete()},dispatchEvent:function(t,e){var i=this.tween;if(!i.isSeeking){var n=i.targets[this.targetIndex],r=this.key,s=this.current,a=this.previous;i.emit(t,i,r,n,s,a);var o=i.callbacks[e];o&&o.func.apply(i.callbackScope,[i,n,r,s,a].concat(o.params))}},destroy:function(){n.prototype.destroy.call(this),this.getActiveValue=null,this.getEndValue=null,this.getStartValue=null,this.ease=null}});t.exports=o},42220:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(95042),r=i(45319),s=i(83419),a=i(842),o=new s({Extends:n,initialize:function(t,e,i,r,s,a,o,l,h,u,c){n.call(this,t,e,s,a,!1,o,l,h,u,c),this.key=\"texture\",this.startTexture=null,this.endTexture=i,this.startFrame=null,this.endFrame=r,this.yoyo=0!==l},reset:function(t){n.prototype.reset.call(this);var e=this.tween.targets[this.targetIndex];this.startTexture||(this.startTexture=e.texture.key,this.startFrame=e.frame.name),t&&e.setTexture(this.startTexture,this.startFrame)},update:function(t){var e=this.tween,i=this.targetIndex,n=e.targets[i];if(!n)return this.setCompleteState(),!1;if(this.isCountdown&&(this.elapsed-=t,this.elapsed<=0&&(this.elapsed=0,t=0,this.isDelayed()?this.setPendingRenderState():this.isRepeating()?(this.setPlayingForwardState(),this.dispatchEvent(a.TWEEN_REPEAT,\"onRepeat\")):this.isHolding()&&this.setStateFromEnd(0))),this.isPendingRender())return this.startTexture&&n.setTexture(this.startTexture,this.startFrame),this.setPlayingForwardState(),!0;var s=this.isPlayingForward(),o=this.isPlayingBackward();if(s||o){var l=this.elapsed,h=this.duration,u=0,c=!1;(l+=t)>=h?(u=l-h,l=h,c=!0):l<0&&(l=0);var d=r(l/h,0,1);this.elapsed=l,this.progress=d,c&&(s?(n.setTexture(this.endTexture,this.endFrame),this.hold>0?(this.elapsed=this.hold,this.setHoldState()):this.setStateFromEnd(u)):(n.setTexture(this.startTexture,this.startFrame),this.setStateFromStart(u))),this.dispatchEvent(a.TWEEN_UPDATE,\"onUpdate\")}return!this.isComplete()},dispatchEvent:function(t,e){var i=this.tween;if(!i.isSeeking){var n=i.targets[this.targetIndex],r=this.key;i.emit(t,i,r,n);var s=i.callbacks[e];s&&s.func.apply(i.callbackScope,[i,n,r].concat(s.params))}},destroy:function(){n.prototype.destroy.call(this),this.startTexture=null,this.endTexture=null,this.startFrame=null,this.endFrame=null}});t.exports=o},86353:t=>{t.exports={CREATED:0,DELAY:2,PENDING_RENDER:4,PLAYING_FORWARD:5,PLAYING_BACKWARD:6,HOLD_DELAY:7,REPEAT_DELAY:8,COMPLETE:9,PENDING:20,ACTIVE:21,LOOP_DELAY:22,COMPLETE_DELAY:23,START_DELAY:24,PENDING_REMOVE:25,REMOVED:26,FINISHED:27,DESTROYED:28,MAX:999999999999}},83419:t=>{function e(t,e,i){var n=i?t[e]:Object.getOwnPropertyDescriptor(t,e);return!i&&n.value&&\"object\"==typeof n.value&&(n=n.value),!(!n||!\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nfunction(t){return!!t.get&&\"function\"==typeof t.get||!!t.set&&\"function\"==typeof t.set}(n))&&(void 0===n.enumerable&&(n.enumerable=!0),void 0===n.configurable&&(n.configurable=!0),n)}function i(t,e){var i=Object.getOwnPropertyDescriptor(t,e);return!!i&&(i.value&&\"object\"==typeof i.value&&(i=i.value),!1===i.configurable)}function n(t,n,r,a){for(var o in n)if(n.hasOwnProperty(o)){var l=e(n,o,r);if(!1!==l){if(i((a||t).prototype,o)){if(s.ignoreFinals)continue;throw new Error(\"cannot override final property '\"+o+\"', set Class.ignoreFinals = true to skip\")}Object.defineProperty(t.prototype,o,l)}else t.prototype[o]=n[o]}}function r(t,e){if(e){Array.isArray(e)||(e=[e]);for(var i=0;i{t.exports=function(){}},20242:t=>{t.exports=function(){return null}},71146:t=>{t.exports=function(t,e,i,n,r){if(void 0===r&&(r=t),i>0){var s=i-t.length;if(s<=0)return null}if(!Array.isArray(e))return-1===t.indexOf(e)?(t.push(e),n&&n.call(r,e),e):null;for(var a=e.length-1;a>=0;)-1!==t.indexOf(e[a])&&e.splice(a,1),a--;if(0===(a=e.length))return null;i>0&&a>s&&(e.splice(s),a=s);for(var o=0;o{t.exports=function(t,e,i,n,r,s){if(void 0===i&&(i=0),void 0===s&&(s=t),n>0){var a=n-t.length;if(a<=0)return null}if(!Array.isArray(e))return-1===t.indexOf(e)?(t.splice(i,0,e),r&&r.call(s,e),e):null;for(var o=e.length-1;o>=0;)-1!==t.indexOf(e[o])&&e.pop(),o--;if(0===(o=e.length))return null;n>0&&o>a&&(e.splice(a),o=a);for(var l=o-1;l>=0;l--){var h=e[l];t.splice(i,0,h),r&&r.call(s,h)}return e}},66905:t=>{t.exports=function(t,e){var i=t.indexOf(e);return-1!==i&&i{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(82011);t.exports=function(t,e,i,r,s){void 0===r&&(r=0),void 0===s&&(s=t.length);var a=0;if(n(t,r,s))for(var o=r;o{t.exports=function(t,e,i){var n,r=[null];for(n=3;n{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(82011);t.exports=function(t,e,i,r,s){if(void 0===r&&(r=0),void 0===s&&(s=t.length),n(t,r,s)){var a,o=[null];for(a=5;a{t.exports=function(t,e,i){if(!e.length)return NaN;if(1===e.length)return e[0];var n,r,s=1;if(i){if(te.length&&(s=e.length),i?(n=e[s-1][i],(r=e[s][i])-t<=t-n?e[s]:e[s-1]):(n=e[s-1],(r=e[s])-t<=t-n?r:n)}},43491:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar e=function(t,i){void 0===i&&(i=[]);for(var n=0;n{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(82011);t.exports=function(t,e,i,r,s){void 0===r&&(r=0),void 0===s&&(s=t.length);var a=[];if(n(t,r,s))for(var o=r;o{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(82011);t.exports=function(t,e,i,r,s){if(void 0===r&&(r=0),void 0===s&&(s=t.length),-1!==r){if(n(t,r,s))for(var a=r;a=0;a--)if(o=t[a],!e||e&&void 0===i&&o.hasOwnProperty(e)||e&&void 0!==i&&o[e]===i)return o;return null}},26546:t=>{t.exports=function(t,e,i){void 0===e&&(e=0),void 0===i&&(i=t.length);var n=e+Math.floor(Math.random()*i);return void 0===t[n]?null:t[n]}},85835:t=>{t.exports=function(t,e,i){if(e===i)return t;var n=t.indexOf(e),r=t.indexOf(i);if(n<0||r<0)throw new Error(\"Supplied items must be elements of the same array\");return n>r||(t.splice(n,1),r=t.indexOf(i),t.splice(r+1,0,e)),t}},83371:t=>{t.exports=function(t,e,i){if(e===i)return t;var n=t.indexOf(e),r=t.indexOf(i);if(n<0||r<0)throw new Error(\"Supplied items must be elements of the same array\");return n{t.exports=function(t,e){var i=t.indexOf(e);if(i>0){var n=t[i-1],r=t.indexOf(n);t[i]=n,t[r]=e}return t}},69693:t=>{t.exports=function(t,e,i){var n=t.indexOf(e);if(-1===n||i<0||i>=t.length)throw new Error(\"Supplied index out of bounds\");return n!==i&&(t.splice(n,1),t.splice(i,0,e)),e}},40853:t=>{t.exports=function(t,e){var i=t.indexOf(e);if(-1!==i&&i{t.exports=function(t,e,i,n){var r,s=[],a=!1;if((i||n)&&(a=!0,i||(i=\"\"),n||(n=\"\")),e=e;r--)a?s.push(i+r.toString()+n):s.push(r);else for(r=t;r<=e;r++)a?s.push(i+r.toString()+n):s.push(r);return s}},593:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(2284);t.exports=function(t,e,i){void 0===t&&(t=0),void 0===e&&(e=null),void 0===i&&(i=1),null===e&&(e=t,t=0);for(var r=[],s=Math.max(n((e-t)/(i||1)),0),a=0;a{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nfunction e(t,e,i){var n=t[e];t[e]=t[i],t[i]=n}function i(t,e){return te?1:0}var n=function(t,r,s,a,o){for(void 0===s&&(s=0),void 0===a&&(a=t.length-1),void 0===o&&(o=i);a>s;){if(a-s>600){var l=a-s+1,h=r-s+1,u=Math.log(l),c=.5*Math.exp(2*u/3),d=.5*Math.sqrt(u*c*(l-c)/l)*(h-l/2<0?-1:1),f=Math.max(s,Math.floor(r-h*c/l+d)),p=Math.min(a,Math.floor(r+(l-h)*c/l+d));n(t,r,f,p,o)}var m=t[r],g=s,v=a;for(e(t,s,r),o(t[a],m)>0&&e(t,s,a);g0;)v--}0===o(t[s],m)?e(t,s,v):e(t,++v,a),v<=r&&(s=v+1),r<=v&&(a=v-1)}};t.exports=n},88492:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(35154),r=i(33680),s=function(t,e,i){for(var n=[],r=0;r{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(19133);t.exports=function(t,e,i,r){var s;if(void 0===r&&(r=t),!Array.isArray(e))return-1!==(s=t.indexOf(e))?(n(t,s),i&&i.call(r,e),e):null;for(var a=e.length-1,o=[];a>=0;){var l=e[a];-1!==(s=t.indexOf(l))&&(n(t,s),o.push(l),i&&i.call(r,l)),a--}return o}},60248:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(19133);t.exports=function(t,e,i,r){if(void 0===r&&(r=t),e<0||e>t.length-1)throw new Error(\"Index out of bounds\");var s=n(t,e);return i&&i.call(r,s),s}},81409:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(82011);t.exports=function(t,e,i,r,s){if(void 0===e&&(e=0),void 0===i&&(i=t.length),void 0===s&&(s=t),n(t,e,i)){var a=i-e,o=t.splice(e,a);if(r)for(var l=0;l{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(19133);t.exports=function(t,e,i){void 0===e&&(e=0),void 0===i&&(i=t.length);var r=e+Math.floor(Math.random()*i);return n(t,r)}},42169:t=>{t.exports=function(t,e,i){var n=t.indexOf(e),r=t.indexOf(i);return-1!==n&&-1===r&&(t[n]=i,!0)}},86003:t=>{t.exports=function(t,e){void 0===e&&(e=1);for(var i=null,n=0;n{t.exports=function(t,e){void 0===e&&(e=1);for(var i=null,n=0;n{t.exports=function(t,e,i,n){var r=t.length;if(e<0||e>=r||e>=i||i>r){if(n)throw new Error(\"Range Error: Values outside acceptable range\");return!1}return!0}},89545:t=>{t.exports=function(t,e){var i=t.indexOf(e);return-1!==i&&i>0&&(t.splice(i,1),t.unshift(e)),e}},17810:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(82011);t.exports=function(t,e,i,r,s){if(void 0===r&&(r=0),void 0===s&&(s=t.length),n(t,r,s))for(var a=r;a{t.exports=function(t){for(var e=t.length-1;e>0;e--){var i=Math.floor(Math.random()*(e+1)),n=t[e];t[e]=t[i],t[i]=n}return t}},90126:t=>{t.exports=function(t){var e=/\\D/g;return t.sort((function(t,i){return parseInt(t.replace(e,\"\"),10)-parseInt(i.replace(e,\"\"),10)})),t}},19133:t=>{t.exports=function(t,e){if(!(e>=t.length)){for(var i=t.length-1,n=t[e],r=e;r{\n/**\n * @author Richard Davey \n * @author Angry Bytes (and contributors)\n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(82264);function r(t,e){return String(t).localeCompare(e)}function s(t,e,i,n){var r,s,a,o,l,h=t.length,u=0,c=2*i;for(r=0;rh&&(s=h),a>h&&(a=h),o=r,l=s;;)if(o{t.exports=function(t,e,i){if(e===i)return t;var n=t.indexOf(e),r=t.indexOf(i);if(n<0||r<0)throw new Error(\"Supplied items must be elements of the same array\");return t[n]=i,t[r]=e,t}},37105:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports={Matrix:i(54915),Add:i(71146),AddAt:i(51067),BringToTop:i(66905),CountAllMatching:i(21612),Each:i(95428),EachInRange:i(36914),FindClosestInSorted:i(81957),Flatten:i(43491),GetAll:i(46710),GetFirst:i(58731),GetRandom:i(26546),MoveDown:i(70864),MoveTo:i(69693),MoveUp:i(40853),MoveAbove:i(85835),MoveBelow:i(83371),NumberArray:i(20283),NumberArrayStep:i(593),QuickSelect:i(43886),Range:i(88492),Remove:i(72905),RemoveAt:i(60248),RemoveBetween:i(81409),RemoveRandomElement:i(31856),Replace:i(42169),RotateLeft:i(86003),RotateRight:i(49498),SafeRange:i(82011),SendToBack:i(89545),SetAll:i(17810),Shuffle:i(33680),SortByDigits:i(90126),SpliceOne:i(19133),StableSort:i(19186),Swap:i(25630)}},86922:t=>{t.exports=function(t){if(!Array.isArray(t)||!Array.isArray(t[0]))return!1;for(var e=t[0].length,i=1;i{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(41836),r=i(86922);t.exports=function(t){var e=\"\";if(!r(t))return e;for(var i=0;i{t.exports=function(t){return t.reverse()}},21224:t=>{t.exports=function(t){for(var e=0;e{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(37829);t.exports=function(t){return n(t,180)}},44657:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(37829);t.exports=function(t,e){void 0===e&&(e=1);for(var i=0;i{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(86922),r=i(2429);t.exports=function(t,e){if(void 0===e&&(e=90),!n(t))return null;if(\"string\"!=typeof e&&(e=(e%360+360)%360),90===e||-270===e||\"rotateLeft\"===e)(t=r(t)).reverse();else if(-90===e||270===e||\"rotateRight\"===e)t.reverse(),t=r(t);else if(180===Math.abs(e)||\"rotate180\"===e){for(var i=0;i{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(37829);t.exports=function(t,e){void 0===e&&(e=1);for(var i=0;i{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(86003),r=i(49498);t.exports=function(t,e,i){if(void 0===e&&(e=0),void 0===i&&(i=0),0!==i&&(i<0?n(t,Math.abs(i)):r(t,i)),0!==e)for(var s=0;s{t.exports=function(t){for(var e=t.length,i=t[0].length,n=new Array(i),r=0;r-1;s--)n[r][s]=t[s][r]}return n}},54915:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports={CheckMatrix:i(86922),MatrixToString:i(63362),ReverseColumns:i(92598),ReverseRows:i(21224),Rotate180:i(98717),RotateLeft:i(44657),RotateMatrix:i(37829),RotateRight:i(92632),Translate:i(69512),TransposeMatrix:i(2429)}},71334:t=>{\n/**\n * @author Niklas von Hertzen (https://github.com/niklasvh/base64-arraybuffer)\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar e=\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\";t.exports=function(t,i){for(var n=new Uint8Array(t),r=n.length,s=i?\"data:\"+i+\";base64,\":\"\",a=0;a>2],s+=e[(3&n[a])<<4|n[a+1]>>4],s+=e[(15&n[a+1])<<2|n[a+2]>>6],s+=e[63&n[a+2]];return r%3==2?s=s.substring(0,s.length-1)+\"=\":r%3==1&&(s=s.substring(0,s.length-2)+\"==\"),s}},53134:t=>{for(\n/**\n * @author Niklas von Hertzen (https://github.com/niklasvh/base64-arraybuffer)\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar e=\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\",i=new Uint8Array(256),n=0;n>4,u[l++]=(15&n)<<4|r>>2,u[l++]=(3&r)<<6|63&s;return h}},65839:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports={ArrayBufferToBase64:i(71334),Base64ToArrayBuffer:i(53134)}},91799:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports={Array:i(37105),Base64:i(65839),Objects:i(1183),String:i(31749),NOOP:i(29747),NULL:i(20242)}},41786:t=>{t.exports=function(t){var e={};for(var i in t)Array.isArray(t[i])?e[i]=t[i].slice(0):e[i]=t[i];return e}},62644:t=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar e=function(t){var i,n,r;if(\"object\"!=typeof t||null===t)return t;for(r in i=Array.isArray(t)?[]:{},t)n=t[r],i[r]=e(n);return i};t.exports=e},79291:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(41212),r=function(){var t,e,i,s,a,o,l=arguments[0]||{},h=1,u=arguments.length,c=!1;for(\"boolean\"==typeof l&&(c=l,l=arguments[1]||{},h=2),u===h&&(l=this,--h);h{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(75508),r=i(35154);t.exports=function(t,e,i){var s=r(t,e,null);if(null===s)return i;if(Array.isArray(s))return n.RND.pick(s);if(\"object\"==typeof s){if(s.hasOwnProperty(\"randInt\"))return n.RND.integerInRange(s.randInt[0],s.randInt[1]);if(s.hasOwnProperty(\"randFloat\"))return n.RND.realInRange(s.randFloat[0],s.randFloat[1])}else if(\"function\"==typeof s)return s(e);return s}},95540:t=>{t.exports=function(t,e,i){var n=typeof t;return t&&\"number\"!==n&&\"string\"!==n&&t.hasOwnProperty(e)&&void 0!==t[e]?t[e]:i}},82840:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(35154),r=i(45319);t.exports=function(t,e,i,s,a){void 0===a&&(a=i);var o=n(t,e,a);return r(o,i,s)}},35154:t=>{t.exports=function(t,e,i,n){if(!t&&!n||\"number\"==typeof t)return i;if(t&&t.hasOwnProperty(e))return t[e];if(n&&n.hasOwnProperty(e))return n[e];if(-1!==e.indexOf(\".\")){for(var r=e.split(\".\"),s=t,a=n,o=i,l=i,h=!0,u=!0,c=0;c{t.exports=function(t,e){for(var i=0;i{t.exports=function(t,e){for(var i=0;i{t.exports=function(t,e){return t.hasOwnProperty(e)}},41212:t=>{t.exports=function(t){if(!t||\"object\"!=typeof t||t.nodeType||t===t.window)return!1;try{if(t.constructor&&!{}.hasOwnProperty.call(t.constructor.prototype,\"isPrototypeOf\"))return!1}catch(t){return!1}return!0}},46975:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(41786);t.exports=function(t,e){var i=n(t);for(var r in e)i.hasOwnProperty(r)||(i[r]=e[r]);return i}},269:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(41786);t.exports=function(t,e){var i=n(t);for(var r in e)i.hasOwnProperty(r)&&(i[r]=e[r]);return i}},18254:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nvar n=i(97022);t.exports=function(t,e){for(var i={},r=0;r{t.exports=function(t,e,i){if(!t||\"number\"==typeof t)return!1;if(t.hasOwnProperty(e))return t[e]=i,!0;if(-1!==e.indexOf(\".\")){for(var n=e.split(\".\"),r=t,s=t,a=0;a{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports={Clone:i(41786),DeepCopy:i(62644),Extend:i(79291),GetAdvancedValue:i(23568),GetFastValue:i(95540),GetMinMaxValue:i(82840),GetValue:i(35154),HasAll:i(69036),HasAny:i(1985),HasValue:i(97022),IsPlainObject:i(41212),Merge:i(46975),MergeRight:i(269),Pick:i(18254),SetValue:i(61622)}},27902:t=>{t.exports=function(t,e){return t.replace(/%([0-9]+)/g,(function(t,i){return e[Number(i)-1]}))}},41836:t=>{t.exports=function(t,e,i,n){void 0===e&&(e=0),void 0===i&&(i=\" \"),void 0===n&&(n=3);var r=0;if(e+1>=(t=t.toString()).length)switch(n){case 1:t=new Array(e+1-t.length).join(i)+t;break;case 3:var s=Math.ceil((r=e-t.length)/2);t=new Array(r-s+1).join(i)+t+new Array(s+1).join(i);break;default:t+=new Array(e+1-t.length).join(i)}return t}},33628:t=>{t.exports=function(t,e){return 0===e?t.slice(1):t.slice(0,e)+t.slice(e+1)}},27671:t=>{t.exports=function(t){return t.split(\"\").reverse().join(\"\")}},45650:t=>{t.exports=function(){return\"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx\".replace(/[xy]/g,(function(t){var e=16*Math.random()|0;return(\"x\"===t?e:3&e|8).toString(16)}))}},35355:t=>{t.exports=function(t){return t&&t[0].toUpperCase()+t.slice(1)}},31749:(t,e,i)=>{\n/**\n * @author Richard Davey \n * @copyright 2013-2025 Phaser Studio Inc.\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\n */\nt.exports={Format:i(27902),Pad:i(41836),RemoveAt:i(33628),Reverse:i(27671),UppercaseFirst:i(35355),UUID:i(45650)}}},i={};function n(e){var r=i[e];if(void 0!==r)return r.exports;var s=i[e]={exports:{}};return t[e](s,s.exports,n),s.exports}return n.g=function(){if(\"object\"==typeof globalThis)return globalThis;try{return this||new Function(\"return this\")()}catch(t){if(\"object\"==typeof window)return window}}(),n(85454)})(),t.exports=i()}).call(this,i(\"8oxB\"))},\"1SDN\":function(t,e,i){\"use strict\";i.d(e,\"b\",(function(){return c})),i.d(e,\"a\",(function(){return d}));var n=i(\"8QvM\"),r=i(\"wsB2\"),s=i(\"9NLR\"),a=i(\"DUvB\"),o=i(\"Fa99\"),l=i(\"qN3V\"),h=i(\"Puhn\"),u=i(\"Rsh4\");function c(t){if(!t)return null;if(t.is_control)return r.a.fromJson(t);let e=t.type;null!=e&&(e=e.toUpperCase());const i=t.message,c=t.text_align_message,d=t.slide_from,f=t.extras,p=t.trigger_id,m=t.click_action,g=t.uri,v=t.open_target,y=t.message_close,b=t.duration,x=t.icon,w=t.image_url,T=t.image_style,S=t.icon_color,E=t.icon_bg_color,C=t.bg_color,A=t.text_color,_=t.close_btn_color,k=t.header,P=t.text_align_header,M=t.header_text_color,D=t.frame_color,O=[];let R=t.btns;null==R&&(R=[]);for(let t=0;t=0&&(u+=Math.max(0,Math.ceil(e[\"offset\"+i[0].toUpperCase()+i.slice(1)]-a-u-h-.5))||0),u+c}function x(e,i,r){var a=l(e),o=(!f.boxSizingReliable()||r)&&\"border-box\"===t.css(e,\"boxSizing\",!1,a),h=o,c=u(e,i,a),d=\"offset\"+i[0].toUpperCase()+i.slice(1);if(s.test(c)){if(!r)return c;c=\"auto\"}return(!f.boxSizingReliable()&&o||!f.reliableTrDimensions()&&n(e,\"tr\")||\"auto\"===c||!parseFloat(c)&&\"inline\"===t.css(e,\"display\",!1,a))&&e.getClientRects().length&&(o=\"border-box\"===t.css(e,\"boxSizing\",!1,a),(h=d in e)&&(c=e[d])),(c=parseFloat(c)||0)+b(e,i,r||(o?\"border\":\"content\"),h,a,c)+\"px\"}return t.extend({cssHooks:{opacity:{get:function(t,e){if(e){var i=u(t,\"opacity\");return\"\"===i?\"1\":i}}}},cssNumber:{animationIterationCount:!0,aspectRatio:!0,borderImageSlice:!0,columnCount:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,scale:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeMiterlimit:!0,strokeOpacity:!0},cssProps:{},style:function(e,n,s,o){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var l,h,u,d=i(n),m=a.test(n),g=e.style;if(m||(n=p(d)),u=t.cssHooks[n]||t.cssHooks[d],void 0===s)return u&&\"get\"in u&&void 0!==(l=u.get(e,!1,o))?l:g[n];\"string\"===(h=typeof s)&&(l=r.exec(s))&&l[1]&&(s=c(e,n,l),h=\"number\"),null!=s&&s==s&&(\"number\"!==h||m||(s+=l&&l[3]||(t.cssNumber[d]?\"\":\"px\")),f.clearCloneStyle||\"\"!==s||0!==n.indexOf(\"background\")||(g[n]=\"inherit\"),u&&\"set\"in u&&void 0===(s=u.set(e,s,o))||(m?g.setProperty(n,s):g[n]=s))}},css:function(e,n,r,s){var o,l,h,c=i(n);return a.test(n)||(n=p(c)),(h=t.cssHooks[n]||t.cssHooks[c])&&\"get\"in h&&(o=h.get(e,!0,r)),void 0===o&&(o=u(e,n,s)),\"normal\"===o&&n in v&&(o=v[n]),\"\"===r||r?(l=parseFloat(o),!0===r||isFinite(l)?l||0:o):o}}),t.each([\"height\",\"width\"],(function(e,i){t.cssHooks[i]={get:function(e,n,r){if(n)return!m.test(t.css(e,\"display\"))||e.getClientRects().length&&e.getBoundingClientRect().width?x(e,i,r):h(e,g,(function(){return x(e,i,r)}))},set:function(e,n,s){var a,o=l(e),h=!f.scrollboxSize()&&\"absolute\"===o.position,u=(h||s)&&\"border-box\"===t.css(e,\"boxSizing\",!1,o),c=s?b(e,i,s,u,o):0;return u&&h&&(c-=Math.ceil(e[\"offset\"+i[0].toUpperCase()+i.slice(1)]-parseFloat(o[i])-b(e,i,\"border\",!1,o)-.5)),c&&(a=r.exec(n))&&\"px\"!==(a[3]||\"px\")&&(e.style[i]=n,n=t.css(e,i)),y(0,n,c)}}})),t.cssHooks.marginLeft=d(f.reliableMarginLeft,(function(t,e){if(e)return(parseFloat(u(t,\"marginLeft\"))||t.getBoundingClientRect().left-h(t,{marginLeft:0},(function(){return t.getBoundingClientRect().left})))+\"px\"})),t.each({margin:\"\",padding:\"\",border:\"Width\"},(function(e,i){t.cssHooks[e+i]={expand:function(t){for(var n=0,r={},s=\"string\"==typeof t?t.split(\" \"):[t];n<4;n++)r[e+o[n]+i]=s[n]||s[n-2]||s[0];return r}},\"margin\"!==e&&(t.cssHooks[e+i].set=y)})),t.fn.extend({css:function(i,n){return e(this,(function(e,i,n){var r,s,a={},o=0;if(Array.isArray(i)){for(r=l(e),s=i.length;o1)}}),t}.apply(e,n))||(t.exports=r)},\"29L4\":function(t,e,i){var n;void 0===(n=function(){\"use strict\";return\"[\\\\x20\\\\t\\\\r\\\\n\\\\f]\"}.call(e,i,e,t))||(t.exports=n)},\"29qN\":function(t,e,i){var n,r,s;r=[i(\"rIKr\")],void 0===(s=\"function\"==typeof(n=function(t){var e,i=t.validator;function n(t,e,i){t.rules[e]=i,t.message&&(t.messages[e]=t.message)}function r(t){return t.replace(/([!\"#$%&'()*+,./:;<=>?@\\[\\\\\\]^`{|}~])/g,\"\\\\$1\")}function s(t){return t.substr(0,t.lastIndexOf(\".\")+1)}function a(t,e){return 0===t.indexOf(\"*.\")&&(t=t.replace(\"*.\",e)),t}function o(e,i){var n=t(this).find(\"[data-valmsg-for='\"+r(i[0].name)+\"']\"),s=n.attr(\"data-valmsg-replace\"),a=s?!1!==t.parseJSON(s):null;n.removeClass(\"field-validation-valid\").addClass(\"field-validation-error\"),e.data(\"unobtrusiveContainer\",n),a?(n.empty(),e.removeClass(\"input-validation-error\").appendTo(n)):e.hide()}function l(e,i){var n=t(this).find(\"[data-valmsg-summary=true]\"),r=n.find(\"ul\");r&&r.length&&i.errorList.length&&(r.empty(),n.addClass(\"validation-summary-errors\").removeClass(\"validation-summary-valid\"),t.each(i.errorList,(function(){t(\"
  • \").html(this.message).appendTo(r)})))}function h(e){var i=e.data(\"unobtrusiveContainer\");if(i){var n=i.attr(\"data-valmsg-replace\"),r=n?t.parseJSON(n):null;i.addClass(\"field-validation-valid\").removeClass(\"field-validation-error\"),e.removeData(\"unobtrusiveContainer\"),r&&i.empty()}}function u(e){var i=t(this),n=\"__jquery_unobtrusive_validation_form_reset\";if(!i.data(n)){i.data(n,!0);try{i.data(\"validator\").resetForm()}finally{i.removeData(n)}i.find(\".validation-summary-errors\").addClass(\"validation-summary-valid\").removeClass(\"validation-summary-errors\"),i.find(\".field-validation-error\").addClass(\"field-validation-valid\").removeClass(\"field-validation-error\").removeData(\"unobtrusiveContainer\").find(\">*\").removeData(\"unobtrusiveContainer\")}}function c(e){var n=t(e),r=n.data(\"unobtrusiveValidation\"),s=t.proxy(u,e),a=i.unobtrusive.options||{},c=function(i,n){var r=a[i];r&&t.isFunction(r)&&r.apply(e,n)};return r||(r={options:{errorClass:a.errorClass||\"input-validation-error\",errorElement:a.errorElement||\"span\",errorPlacement:function(){o.apply(e,arguments),c(\"errorPlacement\",arguments)},invalidHandler:function(){l.apply(e,arguments),c(\"invalidHandler\",arguments)},messages:{},rules:{},success:function(){h.apply(e,arguments),c(\"success\",arguments)}},attachValidation:function(){n.off(\"reset.unobtrusiveValidation\",s).on(\"reset.unobtrusiveValidation\",s).validate(this.options)},validate:function(){return n.validate(),n.valid()}},n.data(\"unobtrusiveValidation\",r)),r}return i.unobtrusive={adapters:[],parseElement:function(e,i){var n,r,s,a=t(e),o=a.parents(\"form\")[0];o&&((n=c(o)).options.rules[e.name]=r={},n.options.messages[e.name]=s={},t.each(this.adapters,(function(){var i=\"data-val-\"+this.name,n=a.attr(i),l={};void 0!==n&&(i+=\"-\",t.each(this.params,(function(){l[this]=a.attr(i+this)})),this.adapt({element:e,form:o,message:n,params:l,rules:r,messages:s}))})),t.extend(r,{__dummy__:!0}),i||n.attachValidation())},parse:function(e){var n=t(e),r=n.parents().addBack().filter(\"form\").add(n.find(\"form\")).has(\"[data-val=true]\");n.find(\"[data-val=true]\").each((function(){i.unobtrusive.parseElement(this,!0)})),r.each((function(){var t=c(this);t&&t.attachValidation()}))}},(e=i.unobtrusive.adapters).add=function(t,e,i){return i||(i=e,e=[]),this.push({name:t,params:e,adapt:i}),this},e.addBool=function(t,e){return this.add(t,(function(i){n(i,e||t,!0)}))},e.addMinMax=function(t,e,i,r,s,a){return this.add(t,[s||\"min\",a||\"max\"],(function(t){var s=t.params.min,a=t.params.max;s&&a?n(t,r,[s,a]):s?n(t,e,s):a&&n(t,i,a)}))},e.addSingleVal=function(t,e,i){return this.add(t,[e||\"val\"],(function(r){n(r,i||t,r.params[e])}))},i.addMethod(\"__dummy__\",(function(t,e,i){return!0})),i.addMethod(\"regex\",(function(t,e,i){var n;return!!this.optional(e)||(n=new RegExp(i).exec(t))&&0===n.index&&n[0].length===t.length})),i.addMethod(\"nonalphamin\",(function(t,e,i){var n;return i&&(n=(n=t.match(/\\W/g))&&n.length>=i),n})),i.methods.extension?(e.addSingleVal(\"accept\",\"mimtype\"),e.addSingleVal(\"extension\",\"extension\")):e.addSingleVal(\"extension\",\"extension\",\"accept\"),e.addSingleVal(\"regex\",\"pattern\"),e.addBool(\"creditcard\").addBool(\"date\").addBool(\"digits\").addBool(\"email\").addBool(\"number\").addBool(\"url\"),e.addMinMax(\"length\",\"minlength\",\"maxlength\",\"rangelength\").addMinMax(\"range\",\"min\",\"max\",\"range\"),e.addMinMax(\"minlength\",\"minlength\").addMinMax(\"maxlength\",\"minlength\",\"maxlength\"),e.add(\"equalto\",[\"other\"],(function(e){var i=s(e.element.name),o=a(e.params.other,i);n(e,\"equalTo\",t(e.form).find(\":input\").filter(\"[name='\"+r(o)+\"']\")[0])})),e.add(\"required\",(function(t){\"INPUT\"===t.element.tagName.toUpperCase()&&\"CHECKBOX\"===t.element.type.toUpperCase()||n(t,\"required\",!0)})),e.add(\"remote\",[\"url\",\"type\",\"additionalfields\"],(function(e){var i={url:e.params.url,type:e.params.type||\"GET\",data:{}},o=s(e.element.name);t.each(function(t){return t.replace(/^\\s+|\\s+$/g,\"\").split(/\\s*,\\s*/g)}(e.params.additionalfields||e.element.name),(function(n,s){var l=a(s,o);i.data[l]=function(){var i=t(e.form).find(\":input\").filter(\"[name='\"+r(l)+\"']\");return i.is(\":checkbox\")?i.filter(\":checked\").val()||i.filter(\":hidden\").val()||\"\":i.is(\":radio\")?i.filter(\":checked\").val()||\"\":i.val()}})),n(e,\"remote\",i)})),e.add(\"password\",[\"min\",\"nonalphamin\",\"regex\"],(function(t){t.params.min&&n(t,\"minlength\",t.params.min),t.params.nonalphamin&&n(t,\"nonalphamin\",t.params.nonalphamin),t.params.regex&&n(t,\"regex\",t.params.regex)})),e.add(\"fileextensions\",[\"extensions\"],(function(t){n(t,\"extension\",t.params.extensions)})),t((function(){i.unobtrusive.parse(document)})),i.unobtrusive})?n.apply(e,r):n)||(t.exports=s)},\"2SVd\":function(t,e,i){\"use strict\";t.exports=function(t){return/^([a-z][a-z\\d\\+\\-\\.]*:)?\\/\\//i.test(t)}},\"2Tf1\":function(t,e,i){var n,r;n=[i(\"mEBU\")],void 0===(r=function(i){\"use strict\";void 0===(r=function(){return i}.apply(e,n=[]))||(t.exports=r)}.apply(e,n))||(t.exports=r)},\"3PRc\":function(t,e,i){var n,r;n=[i(\"VK0Q\")],void 0===(r=function(t){\"use strict\";return function(e){return(e.match(t)||[]).join(\" \")}}.apply(e,n))||(t.exports=r)},\"3UD+\":function(t,e){t.exports=function(t){if(!t.webpackPolyfill){var e=Object.create(t);e.children||(e.children=[]),Object.defineProperty(e,\"loaded\",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,\"id\",{enumerable:!0,get:function(){return e.i}}),Object.defineProperty(e,\"exports\",{enumerable:!0}),e.webpackPolyfill=1}return e}},\"3dgQ\":function(t,e,i){\"use strict\";const n={kn:()=>\"serviceWorker\"in navigator&&\"undefined\"!=typeof ServiceWorkerRegistration&&\"showNotification\"in ServiceWorkerRegistration.prototype&&\"PushManager\"in window,Dn:()=>\"safari\"in window&&\"pushNotification\"in window.safari&&\"function\"==typeof window.safari.pushNotification.permission&&\"function\"==typeof window.safari.pushNotification.requestPermission,isPushSupported:()=>n.kn()||n.Dn(),isPushBlocked:()=>{const t=n.isPushSupported()&&\"Notification\"in window&&null!=window.Notification&&null!=window.Notification.permission&&\"denied\"===window.Notification.permission,e=n.isPushSupported()&&(!(\"Notification\"in window)||null==window.Notification);return t||e},isPushPermissionGranted:()=>n.isPushSupported()&&\"Notification\"in window&&null!=window.Notification&&null!=window.Notification.permission&&\"granted\"===window.Notification.permission,Gr:()=>!n.isPushBlocked()&&n.isPushSupported()&&!n.isPushPermissionGranted()};e.a=n},\"3j5g\":function(t,e,i){\"use strict\";e.a={Ra:\"invalid_api_key\",Xa:\"blacklisted\",Ea:\"no_device_identifier\",Zh:\"invalid_json_response\",Vh:\"empty_response\",__:\"sdk_auth_error\"}},\"4El3\":function(t,e,i){\"use strict\";(function(t){i.d(e,\"a\",(function(){return s})),i.d(e,\"c\",(function(){return a})),i.d(e,\"b\",(function(){return o}));var n=i(\"FXxO\"),r=null;function s(e){void 0===e&&(e=!0);var i=!1===e?null:r;return i||(typeof globalThis!==n.l&&(i=globalThis),i||typeof self===n.l||(i=self),i||typeof window===n.l||(i=window),i||typeof t===n.l||(i=t),r=i),i}function a(t){throw new TypeError(t)}function o(t){var e=n.c;if(e)return e(t);if(null==t)return{};var i=typeof t;function r(){}return i!==n.j&&i!==n.h&&a(\"Object prototype may only be an Object:\"+t),r[n.k]=t,new r}}).call(this,i(\"yLpj\"))},\"4WCC\":function(t,e,i){\"use strict\";var n={};t.exports={getItem:function(t){return t in n?n[t]:null},setItem:function(t,e){return n[t]=e,!0},removeItem:function(t){return!!(t in n)&&delete n[t]},clear:function(){return n={},!0}}},\"4f4o\":function(t,e,i){var n,r;n=[i(\"mEBU\"),i(\"0VMG\"),i(\"vY0G\")],void 0===(r=function(t){\"use strict\";return t.fn.delay=function(e,i){return e=t.fx&&t.fx.speeds[e]||e,i=i||\"fx\",this.queue(i,(function(t,i){var n=window.setTimeout(t,e);i.stop=function(){window.clearTimeout(n)}}))},t.fn.delay}.apply(e,n))||(t.exports=r)},\"4wmo\":function(t,e,i){var n,r;n=[i(\"082X\")],void 0===(r=function(t){\"use strict\";return function(e,i){for(var n=0,r=e.length;n=n&&!(i=t===e)){for(var s=r-1,a=n-1;a>=0;a--){if(t[s]!=e[a])return!1;s--}i=!0}return i}(t,e)),i}function O(t,e){return!(!t||!e)&&-1!==t.indexOf(e)}function R(t){return!(!t||\"[object Date]\"!==m.call(t))}var I=p||function(t){return!(!t||\"[object Array]\"!==m.call(t))};function F(t){return!(!t||\"[object Error]\"!==m.call(t))}function L(t){return\"string\"==typeof t}function N(t){return\"number\"==typeof t}function B(t){return\"boolean\"==typeof t}function z(t){var e=!1;if(t&&\"object\"==typeof t){var i=w?w(t):T(t);i?(i.constructor&&s.e.call(i,\"constructor\")&&(i=i.constructor),e=typeof i===s.h&&g.call(i)===v):e=!0}return e}function j(t){if(t)return f?t.toISOString():function(t){if(t&&t.getUTCFullYear){var e=function(t){var e=String(t);return 1===e.length&&(e=\"0\"+e),e};return t.getUTCFullYear()+\"-\"+e(t.getUTCMonth()+1)+\"-\"+e(t.getUTCDate())+\"T\"+e(t.getUTCHours())+\":\"+e(t.getUTCMinutes())+\":\"+e(t.getUTCSeconds())+\".\"+String((t.getUTCMilliseconds()/1e3).toFixed(3)).slice(2,5)+\"Z\"}}(t)}function U(t,e,i){var n=t.length;try{for(var r=0;r=0?r:n-Math.abs(r),0);s=3)n=arguments[2];else{for(;s0&&B(l)&&(u=l,l=o[c]||{},c++),_(l)||(l={});c0?s+\".\":\"\")+(r=r.length<2?\"0\"+r:r)+\":\"+n+\":\"+i+\".\"+e}function ft(t,e,i,n,r){return!r&&L(t)&&(\"Script error.\"===t||\"Script error\"===t)}var pt=null,mt=null,gt=!1,vt=null,yt=null;function bt(t,e){var i=!1;if(t){try{if(!(i=e in t)){var n=t[s.k];n&&(i=e in n)}}catch(t){}if(!i)try{i=!S((new t)[e])}catch(t){}}return i}function xt(t){var e=Object(a.a)();return e&&e[t]?e[t]:\"window\"===t&&wt()?window:null}function wt(){return Boolean(typeof window===s.j&&window)}function Tt(){return wt()?window:xt(\"window\")}function St(){return Boolean(typeof document===s.j&&document)}function Et(){return St()?document:xt(\"document\")}function Ct(){return Boolean(typeof navigator===s.j&&navigator)}function At(){return Ct()?navigator:xt(\"navigator\")}function _t(){return Boolean(typeof history===s.j&&history)}function kt(t){if(t&>){var e=xt(\"__mockLocation\");if(e)return e}return typeof location===s.j&&location?location:xt(\"location\")}function Pt(){return xt(\"performance\")}function Mt(){return Boolean(typeof JSON===s.j&&JSON||null!==xt(\"JSON\"))}function Dt(){return Mt()?JSON||xt(\"JSON\"):null}function Ot(){var t=At();if(t&&(t.userAgent!==mt||null===pt)){var e=((mt=t.userAgent)||\"\").toLowerCase();pt=O(e,\"msie\")||O(e,\"trident/\")}return pt}function Rt(t){if(void 0===t&&(t=null),!t){var e=At()||{};t=e?(e.userAgent||\"\").toLowerCase():\"\"}var i=(t||\"\").toLowerCase();if(O(i,\"msie\")){var n=Et()||{};return Math.max(parseInt(i.split(\"msie\")[1]),n.documentMode||0)}if(O(i,\"trident/\")){var r=parseInt(i.split(\"trident/\")[1]);if(r)return r+4}return null}function It(t){var e=Object[s.k].toString.call(t),i=\"\";return\"[object Error]\"===e?i=\"{ stack: '\"+t.stack+\"', message: '\"+t.message+\"', name: '\"+t.name+\"'\":Mt()&&(i=Dt().stringify(t)),e+i}function Ft(){return null===yt&&(yt=Ct()&&Boolean(At().sendBeacon)),yt}function Lt(t){var e=!1;try{e=!!xt(\"fetch\");var i=xt(\"Request\");e&&t&&i&&(e=bt(i,\"keepalive\"))}catch(t){}return e}function Nt(){return null===vt&&(vt=typeof XDomainRequest!==s.l)&&Bt()&&(vt=vt&&!bt(xt(\"XMLHttpRequest\"),\"withCredentials\")),vt}function Bt(){var t=!1;try{t=!!xt(\"XMLHttpRequest\")}catch(t){}return t}var zt,jt=[\"eventsSent\",\"eventsDiscarded\",\"eventsSendRequest\",\"perfEvent\"],Ut=null;function Vt(t,e){return function(){var i=arguments,n=Gt(e);if(n){var r=n.listener;r&&r[t]&&r[t].apply(r,i)}}}function Gt(t){var e,i=Ut;return i||!0===t.disableDbgExt||(i=Ut||((e=xt(\"Microsoft\"))&&(Ut=e.ApplicationInsights),Ut)),i?i.ChromeDbgExt:null}function Ht(t){return t?'\"'+t.replace(/\\\"/g,\"\")+'\"':\"\"}function Yt(t,e){var i=typeof console!==s.l?console:xt(\"console\");if(i){var n=\"log\";i[t]&&(n=t),k(i[n])&&i[n](e)}}var Xt=function(){function t(t,e,i,n){void 0===i&&(i=!1);this.messageId=t,this.message=(i?\"AI: \":\"AI (Internal): \")+t;var r=\"\";Mt()&&(r=Dt().stringify(n));var s=(e?\" message:\"+Ht(e):\"\")+(n?\" props:\"+Ht(r):\"\");this.message+=s}return t.dataType=\"MessageData\",t}();function Wt(t,e){return(t||{}).logger||new qt(e)}var qt=function(){function t(e){this.identifier=\"DiagnosticLogger\",this.queue=[];var i,r,s,a,o=0,l={};Object(n.a)(t,this,(function(t){function n(e,i){if(!(o>=s)){var n=!0,a=\"AITR_\"+i.messageId;if(l[a]?n=!1:l[a]=!0,n&&(e<=r&&(t.queue.push(i),o++,h(1===e?\"error\":\"warn\",i)),o===s)){var u=\"Internal events throttle limit per PageView reached for this app.\",c=new Xt(23,u,!1);t.queue.push(c),1===e?t.errorToConsole(u):t.warnToConsole(u)}}}function h(t,i){var n=Gt(e||{});n&&n.diagLog&&n.diagLog(t,i)}!function(t){i=nt(t.loggingLevelConsole,0),r=nt(t.loggingLevelTelemetry,1),s=nt(t.maxMessageLimit,25),a=nt(t.enableDebug,nt(t.enableDebugExceptions,!1))}(e||{}),t.consoleLoggingLevel=function(){return i},t.telemetryLoggingLevel=function(){return r},t.maxInternalMessageLimit=function(){return s},t.enableDebugExceptions=function(){return a},t.throwInternal=function(e,r,s,o,u){void 0===u&&(u=!1);var c=new Xt(r,s,u,o);if(a)throw It(c);var d=1===e?\"errorToConsole\":\"warnToConsole\";if(S(c.message))h(\"throw\"+(1===e?\"Critical\":\"Warning\"),c);else{if(u){var f=+c.messageId;!l[f]&&i>=e&&(t[d](c.message),l[f]=!0)}else i>=e&&t[d](c.message);n(e,c)}},t.warnToConsole=function(t){Yt(\"warn\",t),h(\"warning\",t)},t.errorToConsole=function(t){Yt(\"error\",t),h(\"error\",t)},t.resetInternalMessageCount=function(){o=0,l={}},t.logInternalMessage=n}))}return t.__ieDyn=1,t}();function $t(t){return t||new qt}function Kt(t,e,i,n,r,s){void 0===s&&(s=!1),$t(t).throwInternal(e,i,n,r,s)}function Jt(t,e){$t(t).warnToConsole(e)}function Zt(t){var e={};return M(t,(function(t,i){e[t]=i,e[i]=t})),J(e)}var Qt=Zt({LocalStorage:0,SessionStorage:1}),te=(Zt({AI:0,AI_AND_W3C:1,W3C:2}),void 0),ee=void 0,ie=\"\";function ne(){return le()?re(Qt.LocalStorage):null}function re(t){try{if(E(Object(a.a)()))return null;var e=(new Date).toString(),i=xt(t===Qt.LocalStorage?\"localStorage\":\"sessionStorage\"),n=ie+e;i.setItem(n,e);var r=i.getItem(n)!==e;if(i.removeItem(n),!r)return i}catch(t){}return null}function se(){return de()?re(Qt.SessionStorage):null}function ae(){te=!1,ee=!1}function oe(t){ie=t||\"\"}function le(t){return(t||void 0===te)&&(te=!!re(Qt.LocalStorage)),te}function he(t,e){var i=ne();if(null!==i)try{return i.getItem(e)}catch(e){te=!1,Kt(t,2,1,\"Browser failed read of local storage. \"+tt(e),{exception:It(e)})}return null}function ue(t,e,i){var n=ne();if(null!==n)try{return n.setItem(e,i),!0}catch(e){te=!1,Kt(t,2,3,\"Browser failed write to local storage. \"+tt(e),{exception:It(e)})}return!1}function ce(t,e){var i=ne();if(null!==i)try{return i.removeItem(e),!0}catch(e){te=!1,Kt(t,2,5,\"Browser failed removal of local storage item. \"+tt(e),{exception:It(e)})}return!1}function de(t){return(t||void 0===ee)&&(ee=!!re(Qt.SessionStorage)),ee}function fe(t,e){var i=se();if(null!==i)try{return i.getItem(e)}catch(e){ee=!1,Kt(t,2,2,\"Browser failed read of session storage. \"+tt(e),{exception:It(e)})}return null}function pe(t,e,i){var n=se();if(null!==n)try{return n.setItem(e,i),!0}catch(e){ee=!1,Kt(t,2,4,\"Browser failed write to session storage. \"+tt(e),{exception:It(e)})}return!1}function me(t,e){var i=se();if(null!==i)try{return i.removeItem(e),!0}catch(e){ee=!1,Kt(t,2,6,\"Browser failed removal of session storage item. \"+tt(e),{exception:It(e)})}return!1}var ge,ve=\"Microsoft_ApplicationInsights_BypassAjaxInstrumentation\";function ye(t,e,i){var n=e.length,r=be(t,e);if(r.length!==n){for(var s=0,a=r;void 0!==i[a];)s++,a=r.substring(0,147)+ke(s);r=a}return r}function be(t,e){var i;return e&&(e=Y(e.toString())).length>150&&(i=e.substring(0,150),Kt(t,2,57,\"name is too long. It has been truncated to 150 characters.\",{name:e},!0)),i||e}function xe(t,e,i){var n;return void 0===i&&(i=1024),e&&(i=i||1024,(e=Y(e)).toString().length>i&&(n=e.toString().substring(0,i),Kt(t,2,61,\"string value is too long. It has been truncated to \"+i+\" characters.\",{value:e},!0))),n||e}function we(t,e){return _e(t,e,2048,66)}function Te(t,e){var i;return e&&e.length>32768&&(i=e.substring(0,32768),Kt(t,2,56,\"message is too long, it has been truncated to 32768 characters.\",{message:e},!0)),i||e}function Se(t,e){var i;if(e){var n=\"\"+e;n.length>32768&&(i=n.substring(0,32768),Kt(t,2,52,\"exception is too long, it has been truncated to 32768 characters.\",{exception:e},!0))}return i||e}function Ee(t,e){if(e){var i={};M(e,(function(e,n){if(_(n)&&Mt())try{n=Dt().stringify(n)}catch(e){Kt(t,2,49,\"custom property is not valid\",{exception:e},!0)}n=xe(t,n,8192),e=ye(t,e,i),i[e]=n})),e=i}return e}function Ce(t,e){if(e){var i={};M(e,(function(e,n){e=ye(t,e,i),i[e]=n})),e=i}return e}function Ae(t,e){return e?_e(t,e,128,69).toString():e}function _e(t,e,i,n){var r;return e&&(e=Y(e)).length>i&&(r=e.substring(0,i),Kt(t,2,n,\"input is too long, it has been truncated to \"+i+\" characters.\",{data:e},!0)),r||e}function ke(t){var e=\"00\"+t;return e.substr(e.length-3)}(ge={MAX_NAME_LENGTH:150,MAX_ID_LENGTH:128,MAX_PROPERTY_LENGTH:8192,MAX_STRING_LENGTH:1024,MAX_URL_LENGTH:2048,MAX_MESSAGE_LENGTH:32768,MAX_EXCEPTION_LENGTH:32768}).sanitizeKeyAndAddUniqueness=ye,ge.sanitizeKey=be,ge.sanitizeString=xe,ge.sanitizeUrl=we,ge.sanitizeMessage=Te,ge.sanitizeException=Se,ge.sanitizeProperties=Ee,ge.sanitizeMeasurements=Ce,ge.sanitizeId=Ae,ge.sanitizeInput=_e,ge.padNumber=ke,ge.trim=Y;function Pe(t,e,i,n,r,s){var a;i=xe(n,i)||\"not_specified\",(E(t)||E(e)||E(i))&&st(\"Input doesn't contain all required fields\");var o=\"\";t.iKey&&(o=t.iKey,delete t.iKey);var l=((a={}).name=i,a.time=j(new Date),a.iKey=o,a.ext=s||{},a.tags=[],a.data={},a.baseType=e,a.baseData=t,a);return E(r)||M(r,(function(t,e){l.data[t]=e})),l}!function(){function t(){}t.create=Pe}();var Me=function(){function t(t,e,i,n){this.aiDataContract={ver:1,name:1,properties:0,measurements:0};this.ver=2,this.name=xe(t,e)||\"not_specified\",this.properties=Ee(t,i),this.measurements=Ce(t,n)}return t.envelopeType=\"Microsoft.ApplicationInsights.{0}.Event\",t.dataType=\"EventData\",t}(),De=function(){function t(t,e,i,n,r){this.aiDataContract={ver:1,message:1,severityLevel:0,properties:0};this.ver=2,e=e||\"not_specified\",this.message=Te(t,e),this.properties=Ee(t,n),this.measurements=Ce(t,r),i&&(this.severityLevel=i)}return t.envelopeType=\"Microsoft.ApplicationInsights.{0}.Message\",t.dataType=\"MessageData\",t}(),Oe=function(){this.aiDataContract={name:1,kind:0,value:1,count:0,min:0,max:0,stdDev:0},this.kind=0},Re=function(){function t(t,e,i,n,r,s,a,o,l){this.aiDataContract={ver:1,metrics:1,properties:0};this.ver=2;var h=new Oe;h.count=n>0?n:void 0,h.max=isNaN(s)||null===s?void 0:s,h.min=isNaN(r)||null===r?void 0:r,h.name=xe(t,e)||\"not_specified\",h.value=i,h.stdDev=isNaN(a)||null===a?void 0:a,this.metrics=[h],this.properties=Ee(t,o),this.measurements=Ce(t,l)}return t.envelopeType=\"Microsoft.ApplicationInsights.{0}.Metric\",t.dataType=\"MetricData\",t}(),Ie=function(){function t(t,e,i,n,r,s,a){this.aiDataContract={ver:1,name:0,url:0,duration:0,properties:0,measurements:0,id:0};this.ver=2,this.id=Ae(t,a),this.url=we(t,i),this.name=xe(t,e)||\"not_specified\",isNaN(n)||(this.duration=dt(n)),this.properties=Ee(t,r),this.measurements=Ce(t,s)}return t.envelopeType=\"Microsoft.ApplicationInsights.{0}.Pageview\",t.dataType=\"PageviewData\",t}(),Fe=function(){function t(t,e,i,n,r,s,a){this.aiDataContract={ver:1,name:0,url:0,duration:0,perfTotal:0,networkConnect:0,sentRequest:0,receivedResponse:0,domProcessing:0,properties:0,measurements:0};this.ver=2,this.url=we(t,i),this.name=xe(t,e)||\"not_specified\",this.properties=Ee(t,r),this.measurements=Ce(t,s),a&&(this.domProcessing=a.domProcessing,this.duration=a.duration,this.networkConnect=a.networkConnect,this.perfTotal=a.perfTotal,this.receivedResponse=a.receivedResponse,this.sentRequest=a.sentRequest)}return t.envelopeType=\"Microsoft.ApplicationInsights.{0}.PageviewPerformance\",t.dataType=\"PageviewPerformanceData\",t}();function Le(t,e){var i=t;return i&&!L(i)&&(JSON&&JSON.stringify?(i=JSON.stringify(t),!e||i&&\"{}\"!==i||(i=k(t.toString)?t.toString():\"\"+t)):i=t+\" - (Missing JSON.stringify)\"),i||\"\"}function Ne(t,e){var i=t;return t&&(i&&!L(i)&&(i=t.message||t.description||i),i&&!L(i)&&(i=Le(i,!0)),t.filename&&(i=i+\" @\"+(t.filename||\"\")+\":\"+(t.lineno||\"?\")+\":\"+(t.colno||\"?\"))),e&&\"String\"!==e&&\"Object\"!==e&&\"Error\"!==e&&-1===(i||\"\").indexOf(e)&&(i=e+\": \"+i),i||\"\"}function Be(t){return t&&t.src&&L(t.src)&&t.obj&&I(t.obj)}function ze(t){var e=t||\"\";L(e)||(e=L(e.stack)?e.stack:\"\"+e);var i=e.split(\"\\n\");return{src:e,obj:i}}function je(t){var e=null;if(t)try{if(t.stack)e=ze(t.stack);else if(t.error&&t.error.stack)e=ze(t.error.stack);else if(t.exception&&t.exception.stack)e=ze(t.exception.stack);else if(Be(t))e=t;else if(Be(t.stackDetails))e=t.stackDetails;else if(window&&window.opera&&t.message)e=function(t){for(var e=[],i=t.split(\"\\n\"),n=0;n1?i[1]:\"\"}catch(t){}return e}function Ve(t){if(t)try{if(!L(t)){var e=Ue(t),i=Le(t,!1);return i&&\"{}\"!==i||(t.error&&(e=Ue(t=t.error)),i=Le(t,!0)),0!==i.indexOf(e)&&\"String\"!==e?e+\":\"+i:i}}catch(t){}return\"\"+(t||\"\")}var Ge=function(){function t(t,e,i,n,r,s){this.aiDataContract={ver:1,exceptions:1,severityLevel:0,properties:0,measurements:0};this.ver=2,!function(t){try{if(_(t))return\"ver\"in t&&\"exceptions\"in t&&\"properties\"in t}catch(t){}return!1}(e)?(i||(i={}),this.exceptions=[new He(t,e,i)],this.properties=Ee(t,i),this.measurements=Ce(t,n),r&&(this.severityLevel=r),s&&(this.id=s)):(this.exceptions=e.exceptions||[],this.properties=e.properties,this.measurements=e.measurements,e.severityLevel&&(this.severityLevel=e.severityLevel),e.id&&(this.id=e.id),e.problemGroup&&(this.problemGroup=e.problemGroup),E(e.isManual)||(this.isManual=e.isManual))}return t.CreateAutoException=function(t,e,i,n,r,s,a,o){var l,h=Ue(r||s||t);return(l={}).message=Ne(t,h),l.url=e,l.lineNumber=i,l.columnNumber=n,l.error=Ve(r||s||t),l.evt=Ve(s||t),l.typeName=h,l.stackDetails=je(a||r||s),l.errorSrc=o,l},t.CreateFromInterface=function(e,i,n,s){var a=i.exceptions&&G(i.exceptions,(function(t){return He.CreateFromInterface(e,t)}));return new t(e,Object(r.a)(Object(r.a)({},i),{exceptions:a}),n,s)},t.prototype.toInterface=function(){var t,e=this,i=e.exceptions,n=e.properties,r=e.measurements,s=e.severityLevel,a=e.problemGroup,o=e.id,l=e.isManual,h=i instanceof Array&&G(i,(function(t){return t.toInterface()}))||void 0;return(t={ver:\"4.0\"}).exceptions=h,t.severityLevel=s,t.properties=n,t.measurements=r,t.problemGroup=a,t.id=o,t.isManual=l,t},t.CreateSimpleException=function(t,e,i,n,r,s){var a;return{exceptions:[(a={},a.hasFullStack=!0,a.message=t,a.stack=r,a.typeName=e,a)]}},t.envelopeType=\"Microsoft.ApplicationInsights.{0}.Exception\",t.dataType=\"ExceptionData\",t.formatError=Ve,t}(),He=function(){function t(t,e,i){this.aiDataContract={id:0,outerId:0,typeName:1,message:1,hasFullStack:0,stack:0,parsedStack:2};if(function(t){try{if(_(t))return\"hasFullStack\"in t&&\"typeName\"in t}catch(t){}return!1}(e))this.typeName=e.typeName,this.message=e.message,this.stack=e.stack,this.parsedStack=e.parsedStack||[],this.hasFullStack=e.hasFullStack;else{var n=e,r=n&&n.evt;F(n)||(n=n.error||r||n),this.typeName=xe(t,Ue(n))||\"not_specified\",this.message=Te(t,Ne(e||n,this.typeName))||\"not_specified\";var s=e.stackDetails||je(e);this.parsedStack=function(t){var e,i=t.obj;if(i&&i.length>0){e=[];var n=0,r=0;U(i,(function(t){var i=t.toString();if(Ye.regex.test(i)){var s=new Ye(i,n++);r+=s.sizeInBytes,e.push(s)}}));if(r>32768)for(var s=0,a=e.length-1,o=0,l=s,h=a;s32768){var u=h-l+1;e.splice(l,u);break}l=s,h=a,s++,a--}}return e}(s),I(this.parsedStack)&&G(this.parsedStack,(function(e){e.assembly=xe(t,e.assembly),e.fileName=xe(t,e.fileName)})),this.stack=Se(t,function(t){var e=\"\";return t&&(t.obj?U(t.obj,(function(t){e+=t+\"\\n\"})):e=t.src||\"\"),e}(s)),this.hasFullStack=I(this.parsedStack)&&this.parsedStack.length>0,i&&(i.typeName=i.typeName||this.typeName)}}return t.prototype.toInterface=function(){var t,e=this.parsedStack instanceof Array&&G(this.parsedStack,(function(t){return t.toInterface()}));return(t={id:this.id,outerId:this.outerId,typeName:this.typeName,message:this.message,hasFullStack:this.hasFullStack,stack:this.stack}).parsedStack=e||void 0,t},t.CreateFromInterface=function(e,i){var n=i.parsedStack instanceof Array&&G(i.parsedStack,(function(t){return Ye.CreateFromInterface(t)}))||i.parsedStack;return new t(e,Object(r.a)(Object(r.a)({},i),{parsedStack:n}))},t}(),Ye=function(){function t(e,i){this.aiDataContract={level:1,method:1,assembly:0,fileName:0,line:0};if(this.sizeInBytes=0,\"string\"==typeof e){var n=e;this.level=i,this.method=\"\",this.assembly=Y(n),this.fileName=\"\",this.line=0;var r=n.match(t.regex);r&&r.length>=5&&(this.method=Y(r[2])||this.method,this.fileName=Y(r[4]),this.line=parseInt(r[5])||0)}else this.level=e.level,this.method=e.method,this.assembly=e.assembly,this.fileName=e.fileName,this.line=e.line,this.sizeInBytes=0;this.sizeInBytes+=this.method.length,this.sizeInBytes+=this.fileName.length,this.sizeInBytes+=this.assembly.length,this.sizeInBytes+=t.baseSize,this.sizeInBytes+=this.level.toString().length,this.sizeInBytes+=this.line.toString().length}return t.CreateFromInterface=function(e){return new t(e,null)},t.prototype.toInterface=function(){return{level:this.level,method:this.method,assembly:this.assembly,fileName:this.fileName,line:this.line}},t.regex=/^([\\s]+at)?[\\s]{0,50}([^\\@\\()]+?)[\\s]{0,50}(\\@|\\()([^\\(\\n]+):([0-9]+):([0-9]+)(\\)?)$/,t.baseSize=58,t}(),Xe=null,We=null,qe=null,$e=Et(),Ke={},Je={};function Ze(t,e){var i=ii._ckMgr||Je._ckMgr;return i||(i=ii._ckMgr=ii(t,e),Je._ckMgr=i),i}function Qe(t){return!t||t.isEnabled()}function ti(t,e){return!!(e&&t&&I(t.ignoreCookies))&&-1!==t.ignoreCookies.indexOf(e)}function ei(t,e){var i;if(t)i=t.getCookieMgr();else if(e){var n=e.cookieCfg;i=n._ckMgr?n._ckMgr:ii(e)}return i||(i=Ze(e,(t||{}).logger)),i}function ii(t,e){var i,n=function(t){var e=t.cookieCfg=t.cookieCfg||{};if(et(e,\"domain\",t.cookieDomain,C,E),et(e,\"path\",t.cookiePath||\"/\",null,E),E(e.enabled)){var i=void 0;S(t.isCookieUseDisabled)||(i=!t.isCookieUseDisabled),S(t.disableCookiesUsage)||(i=!t.disableCookiesUsage),e.enabled=i}return e}(t||Je),r=n.path||\"/\",s=n.domain,a=!1!==n.enabled,o=((i={isEnabled:function(){var t=a&&ni(e),i=Je._ckMgr;return t&&i&&o!==i&&(t=Qe(i)),t}}).setEnabled=function(t){a=!1!==t},i.set=function(t,e,i,a,l){var h=!1;if(Qe(o)&&!function(t,e){return!!(e&&t&&I(t.blockedCookies)&&-1!==t.blockedCookies.indexOf(e))||ti(t,e)}(n,t)){var u={},c=Y(e||\"\"),d=c.indexOf(\";\");if(-1!==d&&(c=Y(e.substring(0,d)),u=ri(e.substring(d+1))),et(u,\"domain\",a||s,rt,S),!E(i)){var f=Ot();if(S(u.expires)){var p=Q()+1e3*i;if(p>0){var m=new Date;m.setTime(p),et(u,\"expires\",si(m,f?\"toGMTString\":\"toUTCString\")||si(m,f?\"toGMTString\":\"toUTCString\")||\"\",rt)}}f||et(u,\"max-age\",\"\"+i,null,S)}var g=kt();g&&\"https:\"===g.protocol&&(et(u,\"secure\",null,null,S),null===We&&(We=!hi((At()||{}).userAgent)),We&&et(u,\"SameSite\",\"None\",null,S)),et(u,\"path\",l||r,null,S),(n.setCookie||li)(t,ai(c,u)),h=!0}return h},i.get=function(t){var e=\"\";return Qe(o)&&!ti(n,t)&&(e=(n.getCookie||oi)(t)),e},i.del=function(t,e){var i=!1;return Qe(o)&&(i=o.purge(t,e)),i},i.purge=function(t,i){var r,s=!1;if(ni(e)){var a=((r={}).path=i||\"/\",r.expires=\"Thu, 01 Jan 1970 00:00:01 GMT\",r);Ot()||(a[\"max-age\"]=\"0\"),(n.delCookie||li)(t,ai(\"\",a)),s=!0}return s},i);return o._ckMgr=o,o}function ni(t){if(null===Xe){Xe=!1;try{Xe=void 0!==($e||{}).cookie}catch(e){Kt(t,2,68,\"Cannot access document.cookie - \"+tt(e),{exception:It(e)})}}return Xe}function ri(t){var e={};t&&t.length&&U(Y(t).split(\";\"),(function(t){if(t=Y(t||\"\")){var i=t.indexOf(\"=\");-1===i?e[t]=null:e[Y(t.substring(0,i))]=Y(t.substring(i+1))}}));return e}function si(t,e){return k(t[e])?t[e]():null}function ai(t,e){var i=t||\"\";return M(e,(function(t,e){i+=\"; \"+t+(E(e)?\"\":\"=\"+e)})),i}function oi(t){var e=\"\";if($e){var i=$e.cookie||\"\";qe!==i&&(Ke=ri(i),qe=i),e=Y(Ke[t]||\"\")}return e}function li(t,e){$e&&($e.cookie=t+\"=\"+e)}function hi(t){return!!L(t)&&(!(!O(t,\"CPU iPhone OS 12\")&&!O(t,\"iPad; CPU OS 12\"))||(!!(O(t,\"Macintosh; Intel Mac OS X 10_14\")&&O(t,\"Version/\")&&O(t,\"Safari\"))||(!(!O(t,\"Macintosh; Intel Mac OS X 10_14\")||!D(t,\"AppleWebKit/605.1.15 (KHTML, like Gecko)\"))||(!(!O(t,\"Chrome/5\")&&!O(t,\"Chrome/6\"))||(!(!O(t,\"UnrealEngine\")||O(t,\"Chrome\"))||!(!O(t,\"UCBrowser/12\")&&!O(t,\"UCBrowser/11\")))))))}var ui=!1,ci=123456789,di=987654321;function fi(t){t<0&&(t>>>=0),ci=123456789+t&4294967295,di=987654321-t&4294967295,ui=!0}function pi(){try{var t=2147483647&Q();fi((4294967296*Math.random()^t)+t)}catch(t){}}function mi(t){var e=0,i=xt(\"crypto\")||xt(\"msCrypto\");return i&&i.getRandomValues&&(e=4294967295&i.getRandomValues(new Uint32Array(1))[0]),0===e&&Ot()&&(ui||pi(),e=4294967295&gi()),0===e&&(e=Math.floor(4294967296*Math.random()|0)),t||(e>>>=0),e}function gi(t){var e=((di=36969*(65535&di)+(di>>16)&4294967295)<<16)+(65535&(ci=18e3*(65535&ci)+(ci>>16)&4294967295))>>>0&4294967295|0;return t||(e>>>=0),e}function vi(t){void 0===t&&(t=22);for(var e=mi()>>>0,i=0,n=\"\";n.length>>=6,5===i&&(e=(mi()<<2&4294967295|3&e)>>>0,i=0);return n}var yi=s.d,bi=\".\"+vi(6),xi=0;function wi(t){return 1===t.nodeType||9===t.nodeType||!+t.nodeType}function Ti(t,e){var i=e[t.id];if(!i){i={};try{wi(e)&&(function(t,e,i){if(yi)try{return yi(t,e,{value:i,enumerable:!1,configurable:!0}),!0}catch(t){}return!1}(e,t.id,i)||(e[t.id]=i))}catch(t){}}return i}function Si(t,e){return void 0===e&&(e=!1),P(t+xi+++(e?\".2.8.18\":\"\")+bi)}function Ei(t){var e={id:Si(\"_aiData-\"+(t||\"\")+\".2.8.18\"),accept:function(t){return wi(t)},get:function(t,i,n,r){var s=t[e.id];return s?s[P(i)]:(r&&((s=Ti(e,t))[P(i)]=n),n)},kill:function(t,e){if(t&&t[e])try{delete t[e]}catch(t){}}};return e}var Ci=Si(\"aiEvtPageHide\"),Ai=(Si(\"aiEvtPageShow\"),/\\.[\\.]+/g),_i=/[\\.]+$/,ki=1,Pi=Ei(\"events\"),Mi=/^([^.]*)(?:\\.(.+)|)/;function Di(t){return t&&t.replace?t.replace(/^[\\s\\.]+|(?=[\\s\\.])[\\.\\s]+$/g,\"\"):t}function Oi(t,e){var i;if(e){var n=\"\";I(e)?(n=\"\",U(e,(function(t){(t=Di(t))&&(\".\"!==t[0]&&(t=\".\"+t),n+=t)}))):n=Di(e),n&&(\".\"!==n[0]&&(n=\".\"+n),t=(t||\"\")+n)}var r=Mi.exec(t||\"\")||[];return(i={}).type=r[1],i.ns=(r[2]||\"\").replace(Ai,\".\").replace(_i,\"\").split(\".\").sort().join(\".\"),i}function Ri(t,e,i){void 0===i&&(i=!0);var n=Pi.get(t,\"events\",{},i),r=n[e];return r||(r=n[e]=[]),r}function Ii(t,e,i,n){t&&e&&e.type&&(t.removeEventListener?t.removeEventListener(e.type,i,n):t.detachEvent&&t.detachEvent(\"on\"+e.type,i))}function Fi(t,e,i,n){for(var r=e.length;r--;){var s=e[r];s&&(i.ns&&i.ns!==s.evtName.ns||n&&!n(s)||(Ii(t,s.evtName,s.handler,s.capture),e.splice(r,1)))}}function Li(t,e){return e?Oi(\"xx\",I(e)?[t].concat(e):[t,e]).ns.split(\".\"):t}function Ni(t,e,i,n,r){var s;void 0===r&&(r=!1);var a=!1;if(t)try{var o=Oi(e,n);if((a=function(t,e,i,n){var r=!1;return t&&e&&e.type&&i&&(t.addEventListener?(t.addEventListener(e.type,i,n),r=!0):t.attachEvent&&(t.attachEvent(\"on\"+e.type,i),r=!0)),r}(t,o,i,r))&&Pi.accept(t)){var l=((s={guid:ki++,evtName:o}).handler=i,s.capture=r,s);Ri(t,o.type).push(l)}}catch(t){}return a}function Bi(t,e,i,n,r){if(void 0===r&&(r=!1),t)try{var s=Oi(e,n),a=!1;!function(t,e,i){if(e.type)Fi(t,Ri(t,e.type),e,i);else{var n=Pi.get(t,\"events\",{});M(n,(function(n,r){Fi(t,r,e,i)})),0===q(n).length&&Pi.kill(t,\"events\")}}(t,s,(function(t){return!((!s.ns||i)&&t.handler!==i)&&(a=!0,!0)})),a||Ii(t,s,i,r)}catch(t){}}function zi(t,e,i){var n=!1,r=Tt();r&&(n=Ni(r,t,e,i),n=Ni(r.body,t,e,i)||n);var s=Et();return s&&(n=Ni(s,t,e,i)||n),n}function ji(t,e,i,n){var r=!1;return e&&t&&t.length>0&&U(t,(function(t){t&&(i&&-1!==V(i,t)||(r=zi(t,e,n)||r))})),r}function Ui(t,e,i){t&&I(t)&&U(t,(function(t){t&&function(t,e,i){var n=Tt();n&&(Bi(n,t,e,i),Bi(n.body,t,e,i));var r=Et();r&&Bi(r,t,e,i)}(t,e,i)}))}function Vi(t,e,i){return function(t,e,i,n){var r=!1;return e&&t&&I(t)&&!(r=ji(t,e,i,n))&&i&&i.length>0&&(r=ji(t,e,null,n)),r}([\"beforeunload\",\"unload\",\"pagehide\"],t,e,i)}function Gi(t,e,i){var n=Li(Ci,i),r=ji([\"pagehide\"],t,e,n);return e&&-1!==V(e,\"visibilitychange\")||(r=ji([\"visibilitychange\"],(function(e){var i=Et();t&&i&&\"hidden\"===i.visibilityState&&t(e)}),e,n)||r),!r&&e&&(r=Gi(t,null,i)),r}var Hi,Yi=null;s.l;function Xi(){for(var t,e=[\"0\",\"1\",\"2\",\"3\",\"4\",\"5\",\"6\",\"7\",\"8\",\"9\",\"a\",\"b\",\"c\",\"d\",\"e\",\"f\"],i=\"\",n=0;n<4;n++)i+=e[15&(t=mi())]+e[t>>4&15]+e[t>>8&15]+e[t>>12&15]+e[t>>16&15]+e[t>>20&15]+e[t>>24&15]+e[t>>28&15];var r=e[8+(3&mi())|0];return i.substr(0,8)+i.substr(9,4)+\"4\"+i.substr(13,3)+r+i.substr(16,3)+i.substr(19,12)}var Wi={_canUseCookies:void 0,isTypeof:function(t,e){return typeof t===e},isUndefined:S,isNullOrUndefined:E,hasOwnProperty:A,isFunction:k,isObject:_,isDate:R,isArray:I,isError:F,isString:L,isNumber:N,isBoolean:B,toISOString:j,arrForEach:U,arrIndexOf:V,arrMap:G,arrReduce:H,strTrim:Y,objCreate:a.b,objKeys:q,objDefineAccessors:$,addEventHandler:zi,dateNow:Q,isIE:Ot,disableCookies:$i,newGuid:function(){var t=Xi();return t.substring(0,8)+\"-\"+t.substring(8,12)+\"-\"+t.substring(12,16)+\"-\"+t.substring(16,20)+\"-\"+t.substring(20)},perfNow:function(){var t=Pt();return t&&t.now?t.now():Q()},newId:vi,randomValue:function(t){return t>0?Math.floor(mi()/4294967295*(t+1))>>>0:0},random32:mi,mwcRandomSeed:function(t){t?fi(t):pi()},mwcRandom32:gi,generateW3CId:Xi};function qi(t,e){var i=Ze(t,e),n=Wi._canUseCookies;return null===Yi&&(Yi=[],Hi=n,$(Wi,\"_canUseCookies\",(function(){return Hi}),(function(t){Hi=t,U(Yi,(function(e){e.setEnabled(t)}))}))),-1===V(Yi,i)&&Yi.push(i),B(n)&&i.setEnabled(n),B(Hi)&&i.setEnabled(Hi),i}function $i(){qi().setEnabled(!1)}var Ki=\"00000000000000000000000000000000\";function Ji(t,e,i){return!(!t||t.length!==e||t===i)&&!!t.match(/^[\\da-f]*$/i)}function Zi(t,e,i){return Ji(t,e)?t:i}function Qi(t){(isNaN(t)||t<0||t>255)&&(t=1);for(var e=t.toString(16);e.length<2;)e=\"0\"+e;return e}function tn(t,e,i,n){var r;return(r={}).version=Ji(n,2,\"ff\")?n:\"00\",r.traceId=en(t)?t:Xi(),r.spanId=nn(e)?e:Xi().substr(0,16),r.traceFlags=i>=0&&i<=255?i:1,r}function en(t){return Ji(t,32,Ki)}function nn(t){return Ji(t,16,\"0000000000000000\")}function rn(t){if(t){var e=Qi(t.traceFlags);Ji(e,2)||(e=\"01\");var i=t.version||\"00\";return\"00\"!==i&&\"ff\"!==i&&(i=\"00\"),\"\".concat(i.toLowerCase(),\"-\").concat(Zi(t.traceId,32,Ki).toLowerCase(),\"-\").concat(Zi(t.spanId,16,\"0000000000000000\").toLowerCase(),\"-\").concat(e.toLowerCase())}return\"\"}function sn(t){var e=null;if(k(Event))e=new Event(t);else{var i=Et();i&&i.createEvent&&(e=i.createEvent(\"Event\")).initEvent(t,!0,!0)}return e}var an,on=(an={},M({requestContextHeader:[0,\"Request-Context\"],requestContextTargetKey:[1,\"appId\"],requestContextAppIdFormat:[2,\"appId=cid-v1:\"],requestIdHeader:[3,\"Request-Id\"],traceParentHeader:[4,\"traceparent\"],traceStateHeader:[5,\"tracestate\"],sdkContextHeader:[6,\"Sdk-Context\"],sdkContextHeaderAppIdRequest:[7,\"appId\"],requestContextHeaderLowerCase:[8,\"request-context\"]},(function(t,e){an[t]=e[1],an[e[0]]=e[1]})),J(an)),ln=Et()||{},hn=0,un=[null,null,null,null,null];function cn(t){var e=hn,i=un,n=i[e];return ln.createElement?i[e]||(n=i[e]=ln.createElement(\"a\")):n={host:pn(t,!0)},n.href=t,++e>=i.length&&(e=0),hn=e,n}function dn(t){var e,i=cn(t);return i&&(e=i.href),e}function fn(t,e){return t?t.toUpperCase()+\" \"+e:e}function pn(t,e){var i=mn(t,e)||\"\";if(i){var n=i.match(/(www\\d{0,5}\\.)?([^\\/:]{1,256})(:\\d{1,20})?/i);if(null!=n&&n.length>3&&L(n[2])&&n[2].length>0)return n[2]+(n[3]||\"\")}return i}function mn(t,e){var i=null;if(t){var n=t.match(/(\\w{1,150}):\\/\\/([^\\/:]{1,256})(:\\d{1,20})?/i);if(null!=n&&n.length>2&&L(n[2])&&n[2].length>0&&(i=n[2]||\"\",e&&n.length>2)){var r=(n[1]||\"\").toLowerCase(),s=n[3]||\"\";(\"http\"===r&&\":80\"===s||\"https\"===r&&\":443\"===s)&&(s=\"\"),i+=s}}return i}var gn=[\"https://dc.services.visualstudio.com/v2/track\",\"https://breeze.aimon.applicationinsights.io/v2/track\",\"https://dc-int.services.visualstudio.com/v2/track\"];function vn(t){return-1!==V(gn,t.toLowerCase())}var yn={correlationIdPrefix:\"cid-v1:\",canIncludeCorrelationHeader:function(t,e,i){if(!e||t&&t.disableCorrelationHeaders)return!1;if(t&&t.correlationHeaderExcludePatterns)for(var n=0;n0},getCorrelationContext:function(t){if(t){var e=yn.getCorrelationContextValue(t,on[1]);if(e&&e!==yn.correlationIdPrefix)return e}},getCorrelationContextValue:function(t,e){if(t)for(var i=t.split(\",\"),n=0;n0)return e}return Q()}function xn(t,e){var i=null;return 0===t||0===e||E(t)||E(e)||(i=e-t),i}function wn(t,e){var i=t||{};return{getName:function(){return i.name},setName:function(t){e&&e.setName(t),i.name=t},getTraceId:function(){return i.traceID},setTraceId:function(t){e&&e.setTraceId(t),en(t)&&(i.traceID=t)},getSpanId:function(){return i.parentID},setSpanId:function(t){e&&e.setSpanId(t),nn(t)&&(i.parentID=t)},getTraceFlags:function(){return i.traceFlags},setTraceFlags:function(t){e&&e.setTraceFlags(t),i.traceFlags=t}}}var Tn=function(){function t(t,e,i,n,r,s,a,o,l,h,u,c){void 0===l&&(l=\"Ajax\"),this.aiDataContract={id:1,ver:1,name:0,resultCode:0,duration:0,success:0,data:0,target:0,type:0,properties:0,measurements:0,kind:0,value:0,count:0,min:0,max:0,stdDev:0,dependencyKind:0,dependencySource:0,commandName:0,dependencyTypeName:0};this.ver=2,this.id=e,this.duration=dt(r),this.success=s,this.resultCode=a+\"\",this.type=xe(t,l);var d=function(t,e,i,n){var r,s=n,a=n;if(e&&e.length>0){var o=cn(e);if(r=o.host,!s)if(null!=o.pathname){var l=0===o.pathname.length?\"/\":o.pathname;\"/\"!==l.charAt(0)&&(l=\"/\"+l),a=o.pathname,s=xe(t,i?i+\" \"+l:l)}else s=xe(t,e)}else r=n,s=n;return{target:r,name:s,data:a}}(t,i,o,n);this.data=we(t,n)||d.data,this.target=xe(t,d.target),h&&(this.target=\"\".concat(this.target,\" | \").concat(h)),this.name=xe(t,d.name),this.properties=Ee(t,u),this.measurements=Ce(t,c)}return t.envelopeType=\"Microsoft.ApplicationInsights.{0}.RemoteDependency\",t.dataType=\"RemoteDependencyData\",t}(),Sn=null,En=function(){function t(e,i,n){var r,s=this,a=!1;(s.start=Q(),s.name=e,s.isAsync=n,s.isChildEvt=function(){return!1},k(i))&&(a=$(s,\"payload\",(function(){return!r&&k(i)&&(r=i(),i=null),r})));s.getCtx=function(e){return e?e===t.ParentContextKey||e===t.ChildrenContextKey?s[e]:(s.ctx||{})[e]:null},s.setCtx=function(e,i){if(e)if(e===t.ParentContextKey)s[e]||(s.isChildEvt=function(){return!0}),s[e]=i;else if(e===t.ChildrenContextKey)s[e]=i;else{(s.ctx=s.ctx||{})[e]=i}},s.complete=function(){var e=0,n=s.getCtx(t.ChildrenContextKey);if(I(n))for(var r=0;r0&&(U(e,(function(t){try{t.func.call(t.self,t.args)}catch(t){Kt(i.logger,2,73,\"Unexpected Exception during onComplete - \"+It(t))}})),s=[])}return t},ctx:{core:function(){return i},diagLog:function(){return Wt(i,e)},getCfg:function(){return e},getExtCfg:o,getConfig:function(t,i,n){void 0===n&&(n=!1);var r,s=o(t,null);s&&!E(s[i])?r=s[i]:e&&!E(e[i])&&(r=e[i]);return E(r)?n:r},hasNext:function(){return!!r},getNext:function(){return r},setNext:function(t){r=t},iterate:function(t){var e;for(;e=a._next();){var i=e.getPlugin();i&&t(i)}},onComplete:function(t,e){for(var i=[],n=2;n0){var a=null;U(t,(function(t){if(s||n!==t||(s=!0),s&&t&&k(t.processTelemetry)){var o=function(t,e,i){var n,r=null,s=k(t.processTelemetry),a=k(t.setNextPlugin);n=t?t.identifier+\"-\"+t.priority+\"-\"+Dn++:\"Unknown-0-\"+Dn++;var o={getPlugin:function(){return t},getNext:function(){return r},processTelemetry:function(e,i){h(i=i||l(),(function(i){if(!t||!s)return!1;var n=kn(t);if(n.teardown||n.disabled)return!1;a&&t.setNextPlugin(r);return t.processTelemetry(e,i),!0}),\"processTelemetry\",(function(){return{item:e}}),!e.sync)||i.processNext(e)},unload:function(e,i){h(e,(function(){var n=!1;if(t){var r=kn(t),s=t.core||r.core;!t||s&&s!==e.core()||r.teardown||(r.core=null,r.teardown=!0,r.isInitialized=!1,t.teardown&&!0===t.teardown(e,i)&&(n=!0))}return n}),\"unload\",(function(){}),i.isAsync)||e.processNext(i)},update:function(e,i){h(e,(function(){var n=!1;if(t){var r=kn(t),s=t.core||r.core;!t||s&&s!==e.core()||r.teardown||t.update&&!0===t.update(e,i)&&(n=!0)}return n}),\"update\",(function(){}),!1)||e.processNext(i)},_id:n,_setNext:function(t){r=t}};function l(){var n;return t&&k(t._getTelCtx)&&(n=t._getTelCtx()),n||(n=Rn(o,e,i)),n}function h(e,i,s,a,o){var l=!1,h=t?t.identifier:\"TelemetryPluginChain\",u=e._hasRun;return u||(u=e._hasRun={}),e.setNext(r),t&&An(e.core(),(function(){return h+\":\"+s}),(function(){u[n]=!0;try{var t=r?r._id:\"\";t&&(u[t]=!1),l=i(e)}catch(t){var a=!r||u[r._id];a&&(l=!0),r&&a||Kt(e.diagLog(),1,73,\"Plugin [\"+h+\"] failed during \"+s+\" - \"+It(t)+\", run flags: \"+It(u))}}),a,o),l}return Z(o)}(t,e,i);r||(r=o),a&&a._setNext(o),a=o}}))}return n&&!r?Ln([n],e,i):r}var Nn=[\"req\",\"rsp\",\"hkErr\",\"fnErr\"];function Bn(t,e){if(t)for(var i=0;i=0&&r<=2&&Bn(t,(function(t,s){var a=t.cbks,o=a[Nn[r]];if(o){e.ctx=function(){return n[s]=n[s]||{}};try{o.apply(e.inst,i)}catch(t){var l=e.err;try{var h=a[Nn[2]];h&&(e.err=t,h.apply(e.inst,i))}catch(t){}finally{e.err=l}}}}))}function jn(t,e,i,n){var r=null;return t&&(A(t,e)?r=t:i&&(r=jn(T(t),e,n,!1))),r}function Un(t,e,i,n){var r=i&&i._aiHooks;if(!r){var s=function(t){return function(){var e,i=this,n=arguments,r=t.h,s=((e={}).name=t.n,e.inst=i,e.ctx=null,e.set=h,e),a=[],o=l([s],n);function l(t,e){return Bn(e,(function(e){t.push(e)})),t}function h(t,e){(n=l([],n))[t]=e,o=l([s],n)}s.evt=xt(\"event\"),zn(r,s,o,a,0);var u=t.f;if(u)try{s.rslt=u.apply(i,n)}catch(t){throw s.err=t,zn(r,s,o,a,3),t}return zn(r,s,o,a,1),s.rslt}}(r={i:0,n:e,f:i,h:[]});s._aiHooks=r,t[e]=s}var a={id:r.i,cbks:n,rm:function(){var t=this.id;Bn(r.h,(function(e,i){if(e.id===t)return r.h.splice(i,1),1}))}};return r.i++,r.h.push(a),a}function Vn(t,e,i,n,r){if(void 0===n&&(n=!0),t&&e&&i){var a=jn(t,e,n,r);if(a){var o=a[e];if(typeof o===s.h)return Un(a,e,o,i)}}return null}function Gn(t,e,i,n,r){if(t&&e&&i){var s=jn(t,e,n,r)||t;if(s)return Un(s,e,s[e],i)}return null}function Hn(){var t=[];return{add:function(e){e&&t.push(e)},run:function(e,i){U(t,(function(t){try{t(e,i)}catch(t){Kt(e.diagLog(),2,73,\"Unexpected error calling unload handler - \"+It(t))}})),t=[]}}}var Yn=function(){function t(){var e,i,r,s,a,o=this;function l(t){void 0===t&&(t=null);var e=t;if(!e){var n=i||Rn(null,{},o.core);e=r&&r.getPlugin?n.createNew(null,r.getPlugin):n.createNew(null,r)}return e}function h(t,e,n){t&&et(t,\"extensionConfig\",[],null,E),!n&&e&&(n=e.getProcessTelContext().getNext());var s=r;r&&r.getPlugin&&(s=r.getPlugin()),o.core=e,i=Rn(n,t,e,s)}function u(){e=!1,o.core=null,i=null,r=null,a=[],s=Hn()}u(),Object(n.a)(t,o,(function(t){t.initialize=function(t,i,n,r){h(t,i,r),e=!0},t.teardown=function(e,i){var n,o=t.core;if(o&&(!e||o===e.core())){var l,h=!1,c=e||In(null,o,r&&r.getPlugin?r.getPlugin():r),d=i||((n={reason:0}).isAsync=!1,n);return t._doTeardown&&!0===t._doTeardown(c,d,f)?l=!0:f(),l}function f(){if(!h){h=!0,s.run(c,i);var t=a;a=[],U(t,(function(t){t.rm()})),!0===l&&c.processNext(d),u()}}},t.update=function(e,i){var n=t.core;if(n&&(!e||n===e.core())){var s,a=!1,o=e||Fn(null,n,r&&r.getPlugin?r.getPlugin():r),l=i||{reason:0};return t._doUpdate&&!0===t._doUpdate(o,l,u)?s=!0:u(),s}function u(){a||(a=!0,h(o.getCfg(),o.core(),o.getNext()))}},t._addHook=function(t){t&&(I(t)?a=a.concat(t):a.push(t))},ot(t,\"_addUnloadCb\",(function(){return s}),\"add\")})),o.diagLog=function(t){return l(t).diagLog()},o.isInitialized=function(){return e},o.setInitialized=function(t){e=t},o.setNextPlugin=function(t){r=t},o.processNext=function(t,e){e?e.processNext(t):r&&k(r.processTelemetry)&&r.processTelemetry(t,null)},o._getTelCtx=l}return t.__ieDyn=1,t}(),Xn=null;var Wn=function(){function t(e,i,r,s){Object(n.a)(t,this,(function(t){var n,a=null,o=[],l=!1;function h(t){r&&r.flush(t)}function u(t){o.push(t),function t(){a||(a=setTimeout((function(){a=null;var e=o.slice(0),i=!1;o=[],U(e,(function(t){t()?i=!0:o.push(t)})),o.length>0&&t(),i&&h(!0)}),100))}()}r&&(n=r.logger),t.trackPageView=function(t,r){var a=t.name;if(E(a)||\"string\"!=typeof a){var o=Et();a=t.name=o&&o.title||\"\"}var c=t.uri;if(E(c)||\"string\"!=typeof c){var d=kt();c=t.uri=d&&d.href||\"\"}if(!s.isPerformanceTimingSupported())return e.sendPageViewInternal(t,r),h(!0),void(function(){if(null==Xn)try{Xn=!!(self&&self instanceof WorkerGlobalScope)}catch(t){Xn=!1}return Xn}()||Kt(n,2,25,\"trackPageView: navigation timing API used for calculation of page duration is not supported in this browser. This page view will be collected without duration and timing info.\"));var f,p,m=!1,g=s.getPerformanceTiming().navigationStart;g>0&&(f=xn(g,+new Date),s.shouldCollectDuration(f)||(f=void 0)),E(r)||E(r.duration)||(p=r.duration),!i&&isNaN(p)||(isNaN(p)&&(r||(r={}),r.duration=f),e.sendPageViewInternal(t,r),h(!0),m=!0);r||(r={}),u((function(){var i=!1;try{if(s.isPerformanceTimingDataReady()){i=!0;var o={name:a,uri:c};s.populatePageViewPerformanceEvent(o),o.isValid||m?(m||(r.duration=o.durationMs,e.sendPageViewInternal(t,r)),l||(e.sendPageViewPerformanceInternal(o,r),l=!0)):(r.duration=f,e.sendPageViewInternal(t,r))}else g>0&&xn(g,+new Date)>6e4&&(i=!0,m||(r.duration=6e4,e.sendPageViewInternal(t,r)))}catch(t){Kt(n,1,38,\"trackPageView failed on page load calculation: \"+tt(t),{exception:It(t)})}return i}))},t.teardown=function(t,e){if(a){clearTimeout(a),a=null;var i=o.slice(0);o=[],U(i,(function(t){t()&&!0}))}}}))}return t.__ieDyn=1,t}(),qn=[\"googlebot\",\"adsbot-google\",\"apis-google\",\"mediapartners-google\"];function $n(){var t=Pt();return t&&!!t.timing}function Kn(){var t=Pt(),e=t?t.timing:0;return e&&e.domainLookupStart>0&&e.navigationStart>0&&e.responseStart>0&&e.requestStart>0&&e.loadEventEnd>0&&e.responseEnd>0&&e.connectEnd>0&&e.domLoading>0}function Jn(){return $n()?Pt().timing:null}function Zn(){return(t=Pt())&&t.getEntriesByType&&t.getEntriesByType(\"navigation\").length>0?Pt().getEntriesByType(\"navigation\")[0]:null;var t}function Qn(){for(var t=[],e=0;e=36e5)return!1;return!0}var tr=function(){function t(e){var i=Wt(e);Object(n.a)(t,this,(function(t){t.populatePageViewPerformanceEvent=function(e){e.isValid=!1;var n=Zn(),r=Jn(),s=0,a=0,o=0,l=0,h=0;(n||r)&&(n?(s=n.duration,a=0===n.startTime?n.connectEnd:xn(n.startTime,n.connectEnd),o=xn(n.requestStart,n.responseStart),l=xn(n.responseStart,n.responseEnd),h=xn(n.responseEnd,n.loadEventEnd)):(s=xn(r.navigationStart,r.loadEventEnd),a=xn(r.navigationStart,r.connectEnd),o=xn(r.requestStart,r.responseStart),l=xn(r.responseStart,r.responseEnd),h=xn(r.responseEnd,r.loadEventEnd)),0===s?Kt(i,2,10,\"error calculating page view performance.\",{total:s,network:a,request:o,response:l,dom:h}):t.shouldCollectDuration(s,a,o,l,h)?s=100)&&(t.samplingPercentage=100),t.isStorageUseDisabled=ct(t.isStorageUseDisabled),t.isBrowserLinkTrackingEnabled=ct(t.isBrowserLinkTrackingEnabled),t.enableAutoRouteTracking=ct(t.enableAutoRouteTracking),t.namePrefix=t.namePrefix||\"\",t.enableDebug=ct(t.enableDebug),t.disableFlushOnBeforeUnload=ct(t.disableFlushOnBeforeUnload),t.disableFlushOnUnload=ct(t.disableFlushOnUnload,t.disableFlushOnBeforeUnload),t}function or(t){S(t.isStorageUseDisabled)||(t.isStorageUseDisabled?ae():(te=le(!0),ee=de(!0)))}var lr=function(t){function e(){var i,a,o,l,h,u,c,d,f,p,m,g,v,y,b=t.call(this)||this;b.identifier=\"ApplicationInsightsAnalytics\",b.priority=180,b.autoRoutePVDelay=500;var x,w,T;return Object(n.a)(e,b,(function(t,e){var n=e._addHook;function b(e,i,n,r,s){t.diagLog().throwInternal(e,i,n,r,s)}function S(){i=null,a=null,o=null,l=null,h=null,u=null,c=!1,d=!1,f=!1,p=!1,m=!1,g=!1,v=!1,y=!1,0;var t=kt(!0);x=t&&t.href||\"\",w=null,T=null}S(),t.getCookieMgr=function(){return ei(t.core)},t.processTelemetry=function(e,i){t.processNext(e,i)},t.trackEvent=function(e,i){try{var n=Pe(e,Me.dataType,Me.envelopeType,t.diagLog(),i);t.core.track(n)}catch(t){b(2,39,\"trackTrace failed, trace will not be collected: \"+tt(t),{exception:It(t)})}},t.startTrackEvent=function(t){try{i.start(t)}catch(t){b(1,29,\"startTrackEvent failed, event will not be collected: \"+tt(t),{exception:It(t)})}},t.stopTrackEvent=function(t,e,n){try{i.stop(t,void 0,e,n)}catch(t){b(1,30,\"stopTrackEvent failed, event will not be collected: \"+tt(t),{exception:It(t)})}},t.trackTrace=function(e,i){try{var n=Pe(e,De.dataType,De.envelopeType,t.diagLog(),i);t.core.track(n)}catch(t){b(2,39,\"trackTrace failed, trace will not be collected: \"+tt(t),{exception:It(t)})}},t.trackMetric=function(e,i){try{var n=Pe(e,Re.dataType,Re.envelopeType,t.diagLog(),i);t.core.track(n)}catch(t){b(1,36,\"trackMetric failed, metric will not be collected: \"+tt(t),{exception:It(t)})}},t.trackPageView=function(e,i){try{var n=e||{};o.trackPageView(n,Object(r.a)(Object(r.a)(Object(r.a)({},n.properties),n.measurements),i)),t.config.autoTrackPageVisitTime&&h.trackPreviousPageVisit(n.name,n.uri)}catch(t){b(1,37,\"trackPageView failed, page view will not be collected: \"+tt(t),{exception:It(t)})}},t.sendPageViewInternal=function(e,i,n){var r=Et();r&&(e.refUri=void 0===e.refUri?r.referrer:e.refUri);var s=Pe(e,Ie.dataType,Ie.envelopeType,t.diagLog(),i,n);t.core.track(s),0},t.sendPageViewPerformanceInternal=function(e,i,n){var r=Pe(e,Fe.dataType,Fe.envelopeType,t.diagLog(),i,n);t.core.track(r)},t.trackPageViewPerformance=function(e,i){var n=e||{};try{l.populatePageViewPerformanceEvent(n),t.sendPageViewPerformanceInternal(n,i)}catch(t){b(1,37,\"trackPageViewPerformance failed, page view will not be collected: \"+tt(t),{exception:It(t)})}},t.startTrackPage=function(t){try{if(\"string\"!=typeof t){var e=Et();t=e&&e.title||\"\"}a.start(t)}catch(t){b(1,31,\"startTrackPage failed, page view may not be collected: \"+tt(t),{exception:It(t)})}},t.stopTrackPage=function(e,i,n,r){try{if(\"string\"!=typeof e){var s=Et();e=s&&s.title||\"\"}if(\"string\"!=typeof i){var o=kt();i=o&&o.href||\"\"}a.stop(e,i,n,r),t.config.autoTrackPageVisitTime&&h.trackPreviousPageVisit(e,i)}catch(t){b(1,32,\"stopTrackPage failed, page view will not be collected: \"+tt(t),{exception:It(t)})}},t.sendExceptionInternal=function(e,i,n){var r=e&&(e.exception||e.error)||F(e)&&e||{name:e&&typeof e,message:e||\"not_specified\"};e=e||{};var s=Pe(new Ge(t.diagLog(),r,e.properties||i,e.measurements,e.severityLevel,e.id).toInterface(),Ge.dataType,Ge.envelopeType,t.diagLog(),i,n);t.core.track(s)},t.trackException=function(e,i){e&&!e.exception&&e.error&&(e.exception=e.error);try{t.sendExceptionInternal(e,i)}catch(t){b(1,35,\"trackException failed, exception will not be collected: \"+tt(t),{exception:It(t)})}},t._onerror=function(e){var i=e&&e.error,n=e&&e.evt;try{if(!n){var r=Tt();r&&(n=r.event)}var s=e&&e.url||(Et()||{}).URL,a=e.errorSrc||\"window.onerror@\"+s+\":\"+(e.lineNumber||0)+\":\"+(e.columnNumber||0),o={errorSrc:a,url:s,lineNumber:e.lineNumber||0,columnNumber:e.columnNumber||0,message:e.message};ft(e.message,e.url,e.lineNumber,e.columnNumber,e.error)?function(e,i){var n=Pe(e,Ge.dataType,Ge.envelopeType,t.diagLog(),i);t.core.track(n)}(Ge.CreateAutoException(\"Script error: The browser's same-origin policy prevents us from getting the details of this exception. Consider using the 'crossorigin' attribute.\",s,e.lineNumber||0,e.columnNumber||0,i,n,null,a),o):(e.errorSrc||(e.errorSrc=a),t.trackException({exception:e,severityLevel:3},o))}catch(t){var l=i?i.name+\", \"+i.message:\"null\";b(1,11,\"_onError threw exception while logging error, error will not be collected: \"+tt(t),{exception:It(t),errorString:l})}},t.addTelemetryInitializer=function(e){if(t.core)return t.core.addTelemetryInitializer(e);u||(u=[]),u.push(e)},t.initialize=function(r,b,S,C){if(!t.isInitialized()){E(b)&&st(\"Error initializing\"),e.initialize(r,b,S,C),r.storagePrefix&&oe(r.storagePrefix);try{T=Li(Si(t.identifier),b.evtNamespace&&b.evtNamespace()),u&&(U(u,(function(t){b.addTelemetryInitializer(t)})),u=null);var A=function(e){var i=Rn(null,e,t.core),n=t.identifier,r=ar(e),s=t.config=i.getExtCfg(n);void 0!==r&&M(r,(function(t,e){s[t]=i.getConfig(n,t,e),void 0===s[t]&&(s=e)}));return s}(r);or(A),l=new tr(t.core),o=new Wn(t,A.overridePageViewDuration,t.core,l),h=new er(t.diagLog(),(function(e,i,n){return function(e,i,n){var r={PageName:e,PageUrl:i};t.trackMetric({name:\"PageVisitTime\",average:n,max:n,min:n,sampleCount:1},r)}(e,i,n)})),function(e,i){c=e.isBrowserLinkTrackingEnabled||i.isBrowserLinkTrackingEnabled,function(){if(!d&&c){var e=[\"/browserLinkSignalR/\",\"/__browserLink/\"];t.addTelemetryInitializer((function(t){if(c&&t.baseType===Tn.dataType){var i=t.baseData;if(i)for(var n=0;n=0)return!1}return!0})),d=!0}}()}(A,r),(i=new nr(t.diagLog(),\"trackEvent\")).action=function(e,i,n,r,s){r||(r={}),s||(s={}),r.duration=n.toString(),t.trackEvent({name:e,properties:r,measurements:s})},(a=new nr(t.diagLog(),\"trackPageView\")).action=function(e,i,n,r,s){E(r)&&(r={}),r.duration=n.toString();var a={name:e,uri:i,properties:r,measurements:s};t.sendPageViewInternal(a,r)},wt()&&(function(e){var i=Tt(),r=kt(!0);(m=e.disableExceptionTracking)||g||e.autoExceptionInstrumented||(n(Gn(i,\"onerror\",{ns:T,rsp:function(e,i,n,r,s,a){m||!0===e.rslt||t._onerror(Ge.CreateAutoException(i,n,r,s,a,e.evt))}},!1)),g=!0);!function(e,i,r){(v=!0===e.enableUnhandledPromiseRejectionTracking)&&!y&&(n(Gn(i,\"onunhandledrejection\",{ns:T,rsp:function(e,i){v&&!0!==e.rslt&&t._onerror(Ge.CreateAutoException(function(t){if(t&&t.reason){var e=t.reason;return!L(e)&&k(e.toString)?e.toString():It(e)}return t||\"\"}(i),r?r.href:\"\",0,0,i,e.evt))}},!1)),y=!0,e.autoUnhandledPromiseInstrumented=y)}(e,i,r)}(A),function(e){var i=Tt(),r=kt(!0);if(f=!0===e.enableAutoRouteTracking,i&&f&&_t()){var a=_t()?history:xt(\"history\");k(a.pushState)&&k(a.replaceState)&&typeof Event!==s.l&&function(e,i,r,s){var a=e.namePrefix||\"\";p||(n(Gn(r,\"pushState\",{ns:T,rsp:function(){f&&(rr(i,sn(a+\"pushState\")),rr(i,sn(a+\"locationchange\")))}},!0)),n(Gn(r,\"replaceState\",{ns:T,rsp:function(){f&&(rr(i,sn(a+\"replaceState\")),rr(i,sn(a+\"locationchange\")))}},!0)),Ni(i,a+\"popstate\",(function(){f&&rr(i,sn(a+\"locationchange\"))}),T),Ni(i,a+\"locationchange\",(function(){if(w?(x=w,w=s&&s.href||\"\"):w=s&&s.href||\"\",f){var e=function(){var e=null;t.core&&t.core.getTraceCtx&&(e=t.core.getTraceCtx(!1));if(!e){var i=t.core.getPlugin(\"AppInsightsPropertiesPlugin\");if(i){var n=i.plugin.context;n&&(e=wn(n.telemetryTrace))}}return e}();if(e){e.setTraceId(Xi());var i=\"_unknown_\";s&&s.pathname&&(i=s.pathname+(s.hash||\"\")),e.setName(xe(t.diagLog(),i))}setTimeout(function(e){t.trackPageView({refUri:e,properties:{duration:0}})}.bind(t,x),t.autoRoutePVDelay)}}),T),p=!0)}(e,i,a,r)}}(A))}catch(e){throw t.setInitialized(!1),e}}},t._doTeardown=function(t,e){o&&o.teardown(t,e),Bi(window,null,null,T),S()},$(t,\"_pageViewManager\",(function(){return o})),$(t,\"_pageViewPerformanceManager\",(function(){return l})),$(t,\"_pageVisitTimeManager\",(function(){return h})),$(t,\"_evtNamespace\",(function(){return\".\"+T}))})),b}return Object(r.b)(e,t),e.Version=\"2.8.18\",e.getDefaultConfig=ar,e}(Yn);function hr(t){var e=\"ai.\"+t+\".\";return function(t){return e+t}}var ur,cr=hr(\"application\"),dr=hr(\"device\"),fr=hr(\"location\"),pr=hr(\"operation\"),mr=hr(\"session\"),gr=hr(\"user\"),vr=hr(\"cloud\"),yr=hr(\"internal\"),br=function(t){function e(){return t.call(this)||this}return Object(r.b)(e,t),e}((ur={applicationVersion:cr(\"ver\"),applicationBuild:cr(\"build\"),applicationTypeId:cr(\"typeId\"),applicationId:cr(\"applicationId\"),applicationLayer:cr(\"layer\"),deviceId:dr(\"id\"),deviceIp:dr(\"ip\"),deviceLanguage:dr(\"language\"),deviceLocale:dr(\"locale\"),deviceModel:dr(\"model\"),deviceFriendlyName:dr(\"friendlyName\"),deviceNetwork:dr(\"network\"),deviceNetworkName:dr(\"networkName\"),deviceOEMName:dr(\"oemName\"),deviceOS:dr(\"os\"),deviceOSVersion:dr(\"osVersion\"),deviceRoleInstance:dr(\"roleInstance\"),deviceRoleName:dr(\"roleName\"),deviceScreenResolution:dr(\"screenResolution\"),deviceType:dr(\"type\"),deviceMachineName:dr(\"machineName\"),deviceVMName:dr(\"vmName\"),deviceBrowser:dr(\"browser\"),deviceBrowserVersion:dr(\"browserVersion\"),locationIp:fr(\"ip\"),locationCountry:fr(\"country\"),locationProvince:fr(\"province\"),locationCity:fr(\"city\"),operationId:pr(\"id\"),operationName:pr(\"name\"),operationParentId:pr(\"parentId\"),operationRootId:pr(\"rootId\"),operationSyntheticSource:pr(\"syntheticSource\"),operationCorrelationVector:pr(\"correlationVector\"),sessionId:mr(\"id\"),sessionIsFirst:mr(\"isFirst\"),sessionIsNew:mr(\"isNew\"),userAccountAcquisitionDate:gr(\"accountAcquisitionDate\"),userAccountId:gr(\"accountId\"),userAgent:gr(\"userAgent\"),userId:gr(\"id\"),userStoreRegion:gr(\"storeRegion\"),userAuthUserId:gr(\"authUserId\"),userAnonymousUserAcquisitionDate:gr(\"anonUserAcquisitionDate\"),userAuthenticatedUserAcquisitionDate:gr(\"authUserAcquisitionDate\"),cloudName:vr(\"name\"),cloudRole:vr(\"role\"),cloudRoleVer:vr(\"roleVer\"),cloudRoleInstance:vr(\"roleInstance\"),cloudEnvironment:vr(\"environment\"),cloudLocation:vr(\"location\"),cloudDeploymentUnit:vr(\"deploymentUnit\"),internalNodeName:yr(\"nodeName\"),internalSdkVersion:yr(\"sdkVersion\"),internalAgentVersion:yr(\"agentVersion\"),internalSnippet:yr(\"snippet\"),internalSdkSrc:yr(\"sdkSrc\")},function(){var t=this;ur&&M(ur,(function(e,i){t[e]=i}))})),xr={UserExt:\"user\",DeviceExt:\"device\",TraceExt:\"trace\",WebExt:\"web\",AppExt:\"app\",OSExt:\"os\",SessionExt:\"ses\",SDKExt:\"sdk\"},wr=new br,Tr=function(t,e,i){var n=this;this.ver=1,this.sampleRate=100,this.tags={},this.name=xe(t,i)||\"not_specified\",this.data=e,this.time=j(new Date),this.aiDataContract={time:1,iKey:1,name:1,sampleRate:function(){return 100===n.sampleRate?4:1},tags:1,data:1}},Sr=function(t,e){this.aiDataContract={baseType:1,baseData:1},this.baseType=t,this.baseData=e};function Er(t,e,i){return et(t,e,i,rt)}function Cr(t,e,i){E(t)||M(t,(function(t,n){N(n)?i[t]=n:L(n)?e[t]=n:Mt()&&(e[t]=Dt().stringify(n))}))}function Ar(t,e){E(t)||M(t,(function(i,n){t[i]=n||e}))}function _r(t,e,i,n){var s=new Tr(t,n,e);Er(s,\"sampleRate\",i.sampleRate),(i.baseData||{}).startTime&&(s.time=j(i.baseData.startTime)),s.iKey=i.iKey;var a=i.iKey.replace(/-/g,\"\");return s.name=s.name.replace(\"{0}\",a),function(t,e,i){var n=i.tags=i.tags||{},s=e.ext=e.ext||{},a=e.tags=e.tags||[],o=s.user;o&&(Er(n,wr.userAuthUserId,o.authId),Er(n,wr.userId,o.id||o.localId));var l=s.app;l&&Er(n,wr.sessionId,l.sesId);var h=s.device;h&&(Er(n,wr.deviceId,h.id||h.localId),Er(n,wr.deviceType,h.deviceClass),Er(n,wr.deviceIp,h.ip),Er(n,wr.deviceModel,h.model),Er(n,wr.deviceType,h.deviceType));var u=e.ext.web;if(u){Er(n,wr.deviceLanguage,u.browserLang),Er(n,wr.deviceBrowserVersion,u.browserVer),Er(n,wr.deviceBrowser,u.browser);var c=i.data=i.data||{},d=c.baseData=c.baseData||{},f=d.properties=d.properties||{};Er(f,\"domain\",u.domain),Er(f,\"isManual\",u.isManual?\"true\":null),Er(f,\"screenRes\",u.screenRes),Er(f,\"userConsent\",u.userConsent?\"true\":null)}var p=s.os;p&&Er(n,wr.deviceOS,p.name);var m=s.trace;m&&(Er(n,wr.operationParentId,m.parentID),Er(n,wr.operationName,xe(t,m.name)),Er(n,wr.operationId,m.traceID));for(var g={},v=a.length-1;v>=0;v--){M(a[v],(function(t,e){g[t]=e})),a.splice(v,1)}M(a,(function(t,e){g[t]=e}));var y=Object(r.a)(Object(r.a)({},n),g);y[wr.internalSdkVersion]||(y[wr.internalSdkVersion]=xe(t,\"javascript:\".concat(Pr.Version),64)),i.tags=ht(y)}(t,i,s),i.tags=i.tags||[],ht(s)}function kr(t,e){E(e.baseData)&&Kt(t,1,46,\"telemetryItem.baseData cannot be null.\")}var Pr={Version:\"2.8.18\"};function Mr(t,e,i){kr(t,e);var n={},r={};e.baseType!==Me.dataType&&(n.baseTypeSource=e.baseType),e.baseType===Me.dataType?(n=e.baseData.properties||{},r=e.baseData.measurements||{}):e.baseData&&Cr(e.baseData,n,r),Cr(e.data,n,r),E(i)||Ar(n,i);var s=e.baseData.name,a=new Me(t,s,n,r),o=new Sr(Me.dataType,a);return _r(t,Me.envelopeType,e,o)}function Dr(t,e){Bi(t,null,null,e)}var Or,Rr=function(){function t(e,i){var r=[],s=!1;this._get=function(){return r},this._set=function(t){return r=t},Object(n.a)(t,this,(function(t){t.enqueue=function(n){t.count()>=i.eventsLimitInMem()?s||(Kt(e,2,105,\"Maximum in-memory buffer size reached: \"+t.count(),!0),s=!0):r.push(n)},t.count=function(){return r.length},t.size=function(){for(var t=r.length,e=0;e0?i.emitLineDelimitedJson()?t.join(\"\\n\"):\"[\"+t.join(\",\")+\"]\":null}}))}return t.__ieDyn=1,t}(),Ir=function(t){function e(i,r){var s=t.call(this,i,r)||this;return Object(n.a)(e,s,(function(t,e){t.markAsSent=function(t){e.clear()},t.clearSent=function(t){}})),s}return Object(r.b)(e,t),e.__ieDyn=1,e}(Rr),Fr=function(t){function e(i,r){var s=t.call(this,i,r)||this,a=!1,o=r.bufferOverride()||{getItem:fe,setItem:pe},l=o.getItem,h=o.setItem;return Object(n.a)(e,s,(function(t,n){var s=d(e.BUFFER_KEY),o=d(e.SENT_BUFFER_KEY),u=t._set(s.concat(o));function c(t,e){var i=[];return U(e,(function(e){k(e)||-1!==V(t,e)||i.push(e)})),i}function d(t){var e=t;try{e=r.namePrefix&&r.namePrefix()?r.namePrefix()+\"_\"+e:e;var n=l(i,e);if(n){var s=Dt().parse(n);if(L(s)&&(s=Dt().parse(s)),s&&I(s))return s}}catch(t){Kt(i,1,42,\" storage key: \"+e+\", \"+tt(t),{exception:It(t)})}return[]}function f(t,e){var n=t;try{n=r.namePrefix&&r.namePrefix()?r.namePrefix()+\"_\"+n:n;var s=JSON.stringify(e);h(i,n,s)}catch(t){h(i,n,JSON.stringify([])),Kt(i,2,41,\" storage key: \"+n+\", \"+tt(t)+\". Buffer cleared\",{exception:It(t)})}}u.length>e.MAX_BUFFER_SIZE&&(u.length=e.MAX_BUFFER_SIZE),f(e.SENT_BUFFER_KEY,[]),f(e.BUFFER_KEY,u),t.enqueue=function(r){t.count()>=e.MAX_BUFFER_SIZE?a||(Kt(i,2,67,\"Maximum buffer size reached: \"+t.count(),!0),a=!0):(n.enqueue(r),f(e.BUFFER_KEY,t._get()))},t.clear=function(){n.clear(),f(e.BUFFER_KEY,t._get()),f(e.SENT_BUFFER_KEY,[]),a=!1},t.markAsSent=function(n){f(e.BUFFER_KEY,t._set(c(n,t._get())));var r=d(e.SENT_BUFFER_KEY);r instanceof Array&&n instanceof Array&&((r=r.concat(n)).length>e.MAX_BUFFER_SIZE&&(Kt(i,1,67,\"Sent buffer reached its maximum size: \"+r.length,!0),r.length=e.MAX_BUFFER_SIZE),f(e.SENT_BUFFER_KEY,r))},t.clearSent=function(t){var i=d(e.SENT_BUFFER_KEY);i=c(t,i),f(e.SENT_BUFFER_KEY,i)}})),s}return Object(r.b)(e,t),e.BUFFER_KEY=\"AI_buffer\",e.SENT_BUFFER_KEY=\"AI_sentBuffer\",e.MAX_BUFFER_SIZE=2e3,e}(Rr),Lr=function(){function t(e){Object(n.a)(t,this,(function(t){function i(t,s){var a={};if(!t)return Kt(e,1,48,\"cannot serialize object because it is null or undefined\",{name:s},!0),a;if(t.__aiCircularRefCheck)return Kt(e,2,50,\"Circular reference detected while serializing object\",{name:s},!0),a;if(!t.aiDataContract){if(\"measurements\"===s)a=r(t,\"number\",s);else if(\"properties\"===s)a=r(t,\"string\",s);else if(\"tags\"===s)a=r(t,\"string\",s);else if(I(t))a=n(t,s);else{Kt(e,2,49,\"Attempting to serialize an object which does not implement ISerializable\",{name:s},!0);try{Dt().stringify(t),a=t}catch(t){Kt(e,1,48,t&&k(t.toString)?t.toString():\"Error serializing object\",null,!0)}}return a}return t.__aiCircularRefCheck=!0,M(t.aiDataContract,(function(r,o){var l=k(o)?1&o():1&o,h=k(o)?4&o():4&o,u=2&o,c=void 0!==t[r],d=_(t[r])&&null!==t[r];if(!l||c||u){if(!h){var f=void 0;void 0!==(f=d?u?n(t[r],r):i(t[r],r):t[r])&&(a[r]=f)}}else Kt(e,1,24,\"Missing required field specification. The field is required but not present on source\",{field:r,name:s})})),delete t.__aiCircularRefCheck,a}function n(t,n){var r;if(t)if(I(t)){r=[];for(var s=0;s100||t<0)&&(i.throwInternal(2,58,\"Sampling rate is out of range (0..100). Sampling will be disabled, you may be sending too much data which may affect your AI service level.\",{samplingRate:t},!0),t=100),this.sampleRate=t,this.samplingScoreGenerator=new Br}return t.prototype.isSampledIn=function(t){var e=this.sampleRate;return null==e||e>=100||(t.baseType===Re.dataType||this.samplingScoreGenerator.getSamplingScore(t)=300)&&0!==e){if((301===e||307===e||308===e)&&!y(r))return void t._onError(n,a);!t._senderConfig.isRetryDisabled()&&R(e)?(P(n),Kt(t.diagLog(),2,40,\". Response code \"+e+\". Will retry to send \"+n.length+\" items.\")):t._onError(n,a)}else if(f&&!f.isOnline()){if(!t._senderConfig.isRetryDisabled()){P(n,10),Kt(t.diagLog(),2,40,\". Offline - Response Code: \".concat(e,\". Offline status: \").concat(!f.isOnline(),\". Will retry to send \").concat(n.length,\" items.\"))}}else y(r),206===e?(l||(l=k(o)),l&&!t._senderConfig.isRetryDisabled()?t._onPartialSuccess(n,l):t._onError(n,a)):(i=0,t._onSuccess(n,s))}function y(e){return!(l>=10)&&(!E(e)&&\"\"!==e&&e!==t._senderConfig.endpointUrl()&&(t._senderConfig.endpointUrl=function(){return e},++l,!0))}function b(t,e){d?d(t,!1):w(t,e)}function x(e){var i=At(),n=t._buffer,r=t._senderConfig.endpointUrl(),s=t._buffer.batchPayloads(e),a=new Blob([s],{type:\"text/plain;charset=UTF-8\"}),o=i.sendBeacon(r,a);return o&&(n.markAsSent(e),t._onSuccess(e,e.length)),o}function w(e,i){if(I(e)&&e.length>0&&!x(e)){for(var n=[],r=0;r0&&(c&&c(n,!0),Kt(t.diagLog(),2,40,\". Failed to send telemetry with Beacon API, retried with normal sender.\"))}}function T(e,i){var n=new XMLHttpRequest,r=t._senderConfig.endpointUrl();try{n[ve]=!0}catch(t){}n.open(\"POST\",r,i),n.setRequestHeader(\"Content-type\",\"application/json\"),vn(r)&&n.setRequestHeader(on[6],on[7]),U(q(h),(function(t){n.setRequestHeader(t,h[t])})),n.onreadystatechange=function(){return t._xhrReadyStateChange(n,e,e.length)},n.onerror=function(i){return t._onError(e,F(n),i)};var s=t._buffer.batchPayloads(e);n.send(s),t._buffer.markAsSent(e)}function C(e,i){if(I(e)){for(var n=e.length,r=0;r=i.itemsAccepted&&i.itemsReceived-i.itemsAccepted===i.errors.length)return i}}catch(i){Kt(t.diagLog(),1,43,\"Cannot parse the response. \"+tt(i),{response:e})}return null}function P(e,n){if(void 0===n&&(n=1),e&&0!==e.length){var s=t._buffer;s.clearSent(e),i++;for(var a=0,o=e;a-1}function F(t,e){return t?\"XMLHttpRequest,Status:\"+t.status+\",Response:\"+jr(t)||!1:e}function L(e,i){var n=t._buffer,r=Tt(),s=new XDomainRequest;s.onload=function(){return t._xdrOnLoad(s,e)},s.onerror=function(i){return t._onError(e,N(s),i)};var a=r&&r.location&&r.location.protocol||\"\";if(0!==t._senderConfig.endpointUrl().lastIndexOf(a,0))return Kt(t.diagLog(),2,40,\". Cannot send XDomain request. The endpoint URL protocol doesn't match the hosting page protocol.\"),void n.clear();var o=t._senderConfig.endpointUrl().replace(/^(https?:)/,\"\");s.open(\"POST\",o);var l=n.batchPayloads(e);s.send(l),n.markAsSent(e)}function N(t,e){return t?\"XDomainRequest,Response:\"+jr(t)||!1:e}function B(){t._sender=null,t._buffer=null,t._appId=null,t._sample=null,h={},f=null,i=0,r=null,null,s=!1,a=null,o=null,l=0,g=0,c=null,d=null,p=null}B(),t.pause=function(){O(),s=!0},t.resume=function(){s&&(s=!1,r=null,t._buffer.size()>t._senderConfig.maxBatchSizeInBytes()&&t.triggerSend(!0,null,10),D())},t.flush=function(e,i,n){if(void 0===e&&(e=!0),!s){O();try{t.triggerSend(e,null,n||1)}catch(e){Kt(t.diagLog(),1,22,\"flush failed, telemetry will not be collected: \"+tt(e),{exception:It(e)})}}},t.onunloadFlush=function(){if(!s)if(!1!==t._senderConfig.onunloadDisableBeacon()&&!1!==t._senderConfig.isBeaconApiDisabled()||!Ft())t.flush();else try{t.triggerSend(!0,b,2)}catch(e){Kt(t.diagLog(),1,20,\"failed to flush with beacon sender on page unload, telemetry will not be collected: \"+tt(e),{exception:It(e)})}},t.addHeader=function(t,e){h[t]=e},t.initialize=function(e,s,a,h){t.isInitialized()&&Kt(t.diagLog(),1,28,\"Sender is already initialized\"),n.initialize(e,s,a,h);var g=t._getTelCtx(),v=t.identifier;o=new Lr(s.logger),i=0,r=null,0,t._sender=null,l=0;var y=t.diagLog();p=Li(Si(\"Sender\"),s.evtNamespace&&s.evtNamespace()),f=function(t){var e,i=Et(),n=At(),r=!1,s=!0,a=Li(Si(\"OfflineListener\"),t);try{if(l(Tt())&&(r=!0),i){var o=i.body||i;o.ononline&&l(o)&&(r=!0)}r&&n&&!E(n.onLine)&&(s=n.onLine)}catch(t){r=!1}function l(t){var e=!1;return t&&(e=Ni(t,\"online\",h,a))&&Ni(t,\"offline\",u,a),e}function h(){s=!0}function u(){s=!1}return(e={}).isOnline=function(){var t=!0;return r?t=s:n&&!E(n.onLine)&&(t=n.onLine),t},e.isListening=function(){return r},e.unload=function(){var t=Tt();if(t&&r){if(Dr(t,a),i){var e=i.body||i;S(e.ononline)||Dr(e,a)}r=!1}},e}(p),M(Ur(),(function(e,i){t._senderConfig[e]=function(){var t=g.getConfig(v,e,i());return t||\"endpointUrl\"!==e||(t=i()),t}})),m=t._senderConfig.retryCodes(),e.storagePrefix&&oe(e.storagePrefix);var b=t._senderConfig.enableSessionStorageBuffer()&&!(!t._senderConfig.bufferOverride()&&!de());t._buffer=b?new Fr(y,t._senderConfig):new Ir(y,t._senderConfig),t._sample=new zr(t._senderConfig.samplingPercentage(),y),function(t){if(!E(t.disableInstrumentationKeyValidation)&&t.disableInstrumentationKeyValidation)return!0;return new RegExp(\"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$\").test(t.instrumentationKey)}(e)||Kt(y,1,100,\"Invalid Instrumentation key \"+e.instrumentationKey),!vn(t._senderConfig.endpointUrl())&&t._senderConfig.customHeaders()&&t._senderConfig.customHeaders().length>0&&U(t._senderConfig.customHeaders(),(function(t){u.addHeader(t.header,t.value)}));var x=t._senderConfig,_=null;!x.disableXhr()&&Nt()?_=L:!x.disableXhr()&&Bt()&&(_=T),!_&&Lt()&&(_=A),c=_||T,!x.isBeaconApiDisabled()&&Ft()&&(_=w),t._sender=_||T,d=!x.onunloadDisableFetch()&&Lt(!0)?C:Ft()?w:!x.disableXhr()&&Nt()?L:!x.disableXhr()&&Bt()?T:c},t.processTelemetry=function(i,n){var r,s=(n=t._getTelCtx(n)).diagLog();try{if(t._senderConfig.disableTelemetry())return;if(!i)return void Kt(s,1,7,\"Cannot send empty telemetry\");if(i.baseData&&!i.baseType)return void Kt(s,1,70,\"Cannot send telemetry without baseData and baseType\");if(i.baseType||(i.baseType=\"EventData\"),!t._sender)return void Kt(s,1,28,\"Sender was not initialized\");if(r=i,!t._sample.isSampledIn(r))return void Kt(s,2,33,\"Telemetry item was sampled out and not sent\",{SampleRate:t._sample.sampleRate});i.sampleRate=t._sample.sampleRate;var a=t._senderConfig.convertUndefined()||void 0,l=i.iKey||t._senderConfig.instrumentationKey(),h=e.constructEnvelope(i,l,s,a);if(!h)return void Kt(s,1,47,\"Unable to create an AppInsights envelope\");var u=!1;if(i.tags&&i.tags.ProcessLegacy&&(U(i.tags.ProcessLegacy,(function(t){try{t&&!1===t(h)&&(u=!0,Jt(s,\"Telemetry processor check returns false\"))}catch(t){Kt(s,1,64,\"One of telemetry initializers failed, telemetry item will not be sent: \"+tt(t),{exception:It(t)},!0)}})),delete i.tags.ProcessLegacy),u)return;var c=o.serialize(h),d=t._buffer;d.size()+c.length>t._senderConfig.maxBatchSizeInBytes()&&(f&&!f.isOnline()||t.triggerSend(!0,null,10)),d.enqueue(c),D()}catch(t){Kt(s,2,12,\"Failed adding telemetry to the sender's buffer, some telemetry will be lost: \"+tt(t),{exception:It(t)})}t.processNext(i,n)},t._xhrReadyStateChange=function(t,e,i){4===t.readyState&&v(t.status,e,t.responseURL,i,F(t),jr(t)||t.response)},t.triggerSend=function(e,i,n){if(void 0===e&&(e=!0),!s)try{var r=t._buffer;if(t._senderConfig.disableTelemetry())r.clear();else{if(r.count()>0){var a=r.getItems();!function(e,i){var n=function(){if(t.core.getNotifyMgr)return t.core.getNotifyMgr();return t.core._notificationManager}();if(n&&n.eventsSendRequest)try{n.eventsSendRequest(e,i)}catch(e){Kt(t.diagLog(),1,74,\"send request notification failed: \"+tt(e),{exception:It(e)})}}(n||0,e),i?i.call(t,a,e):t._sender(a,e)}+new Date}O()}catch(e){var o=Rt();(!o||o>9)&&Kt(t.diagLog(),1,40,\"Telemetry transmission failed, some telemetry will be lost: \"+tt(e),{exception:It(e)})}},t._doTeardown=function(e,i){t.onunloadFlush(),f.unload(),B()},t._onError=function(e,i,n){Kt(t.diagLog(),2,26,\"Failed to send telemetry.\",{message:i}),t._buffer&&t._buffer.clearSent(e)},t._onPartialSuccess=function(e,i){for(var n=[],r=[],s=0,a=i.errors.reverse();s0&&t._onSuccess(e,i.itemsAccepted),n.length>0&&t._onError(n,F(null,[\"partial success\",i.itemsAccepted,\"of\",i.itemsReceived].join(\" \"))),r.length>0&&(P(r),Kt(t.diagLog(),2,40,\"Partial success. Delivered: \"+e.length+\", Failed: \"+n.length+\". Will retry to send \"+r.length+\" our of \"+i.itemsReceived+\" items\"))},t._onSuccess=function(e,i){t._buffer&&t._buffer.clearSent(e)},t._xdrOnLoad=function(e,n){var r=jr(e);if(!e||r+\"\"!=\"200\"&&\"\"!==r){var s=k(r);s&&s.itemsReceived&&s.itemsReceived>s.itemsAccepted&&!t._senderConfig.isRetryDisabled()?t._onPartialSuccess(n,s):t._onError(n,N(e))}else i=0,t._onSuccess(n,0)}})),u}return Object(r.b)(e,t),e.constructEnvelope=function(t,e,i,n){var s;return s=e===t.iKey||E(e)?t:Object(r.a)(Object(r.a)({},t),{iKey:e}),(Vr[s.baseType]||Mr)(i,s,n)},e}(Yn);function Hr(t){if(!t)return{};var e=H(t.split(\";\"),(function(t,e){var i=e.split(\"=\");if(2===i.length){var n=i[0].toLowerCase(),r=i[1];t[n]=r}return t}),{});if(q(e).length>0){if(e.endpointsuffix){var i=e.location?e.location+\".\":\"\";e.ingestionendpoint=e.ingestionendpoint||\"https://\"+i+\"dc.\"+e.endpointsuffix,D(e.ingestionendpoint,\"/\")&&(e.ingestionendpoint=e.ingestionendpoint.slice(0,-1))}e.ingestionendpoint=e.ingestionendpoint||\"https://dc.services.visualstudio.com\"}return e}Zt({Verbose:0,Information:1,Warning:2,Error:3,Critical:4}),function(){function t(){}t.getConfig=function(t,e,i,n){var r;return void 0===n&&(n=!1),r=i&&t.extensionConfig&&t.extensionConfig[i]&&!E(t.extensionConfig[i][e])?t.extensionConfig[i][e]:t[e],E(r)?n:r}}();function Yr(t,e,i){e&&I(e)&&e.length>0&&(U(e=e.sort((function(t,e){return t.priority-e.priority})),(function(t){t.priority<500&&st(\"Channel has invalid priority - \"+t.identifier)})),t.push({queue:Z(e),chain:Ln(e,i.config,i)}))}var Xr=function(t){function e(){var i,r,s=t.call(this)||this;function a(){i=0,r=[]}return s.identifier=\"TelemetryInitializerPlugin\",s.priority=199,a(),Object(n.a)(e,s,(function(t,e){t.addTelemetryInitializer=function(t){var e={id:i++,fn:t};return r.push(e),{remove:function(){U(r,(function(t,i){if(t.id===e.id)return r.splice(i,1),-1}))}}},t.processTelemetry=function(e,i){for(var n=!1,s=r.length,a=0;a0)){var n=nt(e.diagnosticLogInterval);n&&n>0||(n=1e4),C=setInterval((function(){clearInterval(C),C=0,I()}),n)}return C}function _(){i=!1,e=ut(!0,{},Wr),t.config=e,t.logger=new qt(e),t._extensions=[],y=new Xr,s=[],o=null,l=null,h=null,u=null,c=null,f=null,d=[],p=null,m=null,g=null,v=!1,b=null,x=Si(\"AIBaseCore\",!0),w=Hn(),S=null}function P(){var i=Rn(O(),e,t);return i.onComplete(n),i}function M(i){var r=function(t,e,i){var n,r=[],s={};return U(i,(function(i){(E(i)||E(i.initialize))&&st(\"Plugins must provide initialize method\");var n=i.priority,a=i.identifier;i&&n&&(E(s[n])?s[n]=a:Jt(t,\"Two extensions have same priority #\"+n+\" - \"+s[n]+\", \"+a)),(!n||n500&&r.push(t)})),Yr(n,r,i)}return n}(m,s,t)),p){var a=V(s,p);-1!==a&&s.splice(a,1),-1!==(a=V(f,p))&&f.splice(a,1),p._setQueue(g)}else p=function(t,e){function i(){return Rn(null,e.config,e,null)}function n(t,e,i,n){var r=t?t.length+1:1;function s(){0===--r&&(n&&n(),n=null)}r>0&&U(t,(function(t){if(t&&t.queue.length>0){var n=t.chain,a=e.createNew(n);a.onComplete(s),i(a)}else r--})),s()}var r=!1;return{identifier:\"ChannelControllerPlugin\",priority:500,initialize:function(e,i,n,s){r=!0,U(t,(function(t){t&&t.queue.length>0&&Pn(Rn(t.chain,e,i),n)}))},isInitialized:function(){return r},processTelemetry:function(e,r){n(t,r||i(),(function(t){t.processNext(e)}),(function(){r.processNext(e)}))},update:function(e,i){var r=i||{reason:0};return n(t,e,(function(t){t.processNext(r)}),(function(){e.processNext(r)})),!0},pause:function(){n(t,i(),(function(t){t.iterate((function(t){t.pause&&t.pause()}))}),null)},resume:function(){n(t,i(),(function(t){t.iterate((function(t){t.resume&&t.resume()}))}),null)},teardown:function(e,i){var s=i||{reason:0,isAsync:!1};return n(t,e,(function(t){t.processNext(s)}),(function(){e.processNext(s),r=!1})),!0},getChannel:function(e){var i=null;return t&&t.length>0&&U(t,(function(t){if(t&&t.queue.length>0&&(U(t.queue,(function(t){if(t.identifier===e)return i=t,-1})),i))return-1})),i},flush:function(e,r,s,a){var o=1,l=!1,h=null;function u(){o--,l&&0===o&&(h&&(clearTimeout(h),h=null),r&&r(l),r=null)}return a=a||5e3,n(t,i(),(function(t){t.iterate((function(t){if(t.flush){o++;var i=!1;t.flush(e,(function(){i=!0,u()}),s)||i||(e&&null==h?h=setTimeout((function(){h=null,u()}),a):u())}}))}),(function(){l=!0,u()})),!0},_setQueue:function(e){t=e}}}(g,t);s.push(p),f.push(p),t._extensions=Mn(s),p.initialize(e,t,s),Pn(P(),s),t._extensions=Z(Mn(f||[])).slice(),i&&function(e){var i=Fn(O(),t);i.onComplete(n),t._updateHook&&!0===t._updateHook(i,e)||i.processNext(e)}(i)}function D(e){var i,n=null,r=null;return U(t._extensions,(function(t){if(t.identifier===e&&t!==p&&t!==y)return r=t,-1})),!r&&p&&(r=p.getChannel(e)),r&&((i={plugin:r}).setEnabled=function(t){kn(r).disabled=!t},i.isEnabled=function(){var t=kn(r);return!t.teardown&&!t.disabled},i.remove=function(t,e){var i;void 0===t&&(t=!0);var n=[r],s=((i={reason:1}).isAsync=t,i);R(n,s,(function(t){t&&M({reason:32,removed:n}),e&&e(t)}))},n=i),n}function O(){if(!c){var i=(f||[]).slice();-1===V(i,y)&&i.push(y),c=Ln(Mn(i),e,t)}return c}function R(i,r,s){if(i&&i.length>0){var a=In(Ln(i,e,t),t);a.onComplete((function(){var t=!1,e=[];U(d,(function(n,r){$r(n,i)?t=!0:e.push(n)})),d=e;var r=[];m&&(U(m,(function(e,n){var s=[];U(e,(function(e){$r(e,i)?t=!0:s.push(e)})),r.push(s)})),m=r),s&&s(t),n()})),a.processNext(r)}else s(!1)}function I(){if(t.logger&&t.logger.queue){var i=t.logger.queue.slice(0);t.logger.queue.length=0,U(i,(function(i){var n,r=((n={}).name=b||\"InternalMessageId: \"+i.messageId,n.iKey=nt(e.instrumentationKey),n.time=j(new Date),n.baseType=Xt.dataType,n.baseData={message:i.message},n);t.track(r)}))}}function F(t,e,i,n){return p?p.flush(t,e,i||6,n):(e&&e(!1),!0)}function L(e){var i=t.logger;i?(Kt(i,2,73,e),n()):st(e)}_(),t.isInitialized=function(){return i},t.initialize=function(n,s,a,l){v&&st(\"SDK is still unloading...\"),t.isInitialized()&&st(\"Core should not be initialized more than once\"),e=n||{},t.config=e,E(n.instrumentationKey)&&st(\"Please provide instrumentation key\"),o=l,t._notificationManager=l,function(){var t=nt(e.disableDbgExt);!0===t&&T&&(o.removeNotificationListener(T),T=null);o&&!T&&!0!==t&&(T=function(t){if(!zt){zt={};for(var e=0;e0){var t=s;s=[],U(t,(function(t){P().processNext(t)}))}},t.pollInternalLogs=function(t){return b=t||null,A=!1,C&&(clearInterval(C),C=null),n(!0)},t.stopPollingInternalLogs=function(){A=!0,C&&(clearInterval(C),C=0,I())},lt(t,(function(){return y}),[\"addTelemetryInitializer\"]),t.unload=function(e,n,r){var s;void 0===e&&(e=!0),i||st(\"SDK is not initialized\"),v&&st(\"SDK is still unloading...\");var a=((s={reason:50}).isAsync=e,s.flushComplete=!1,s),o=In(O(),t);function l(e){a.flushComplete=e,v=!0,w.run(o,a),t.stopPollingInternalLogs(),o.processNext(a)}o.onComplete((function(){_(),n&&n(a)}),t),I(),F(e,l,6,r)||l(!1)},t.getPlugin=D,t.addPlugin=function(t,e,i,n){if(!t)return n&&n(!1),void L(\"Plugins must provide initialize method\");var r=D(t.identifier);if(r&&!e)return n&&n(!1),void L(\"Plugin [\"+t.identifier+\"] is already loaded!\");var s={reason:16};function a(e){d.push(t),s.added=[t],M(s),n&&n(!0)}if(r){var o=[r.plugin];R(o,{reason:2,isAsync:!!i},(function(t){t?(s.removed=o,s.reason|=32,a()):n&&n(!1)}))}else a()},t.evtNamespace=function(){return x},t.flush=F,t.getTraceCtx=function(t){var e,i;return S||(i={},S={getName:function(){return i.name},setName:function(t){e&&e.setName(t),i.name=t},getTraceId:function(){return i.traceId},setTraceId:function(t){e&&e.setTraceId(t),en(t)&&(i.traceId=t)},getSpanId:function(){return i.spanId},setSpanId:function(t){e&&e.setSpanId(t),nn(t)&&(i.spanId=t)},getTraceFlags:function(){return i.traceFlags},setTraceFlags:function(t){e&&e.setTraceFlags(t),i.traceFlags=t}}),S},t.setTraceCtx=function(t){S=t||null},ot(t,\"addUnloadCb\",(function(){return w}),\"add\")}))}return t.__ieDyn=1,t}();function Jr(t,e,i,n){U(t,(function(t){if(t&&t[e])if(i)setTimeout((function(){return n(t)}),0);else try{n(t)}catch(t){}}))}var Zr=function(){function t(e){this.listeners=[];var i=!!(e||{}).perfEvtsSendAll;Object(n.a)(t,this,(function(t){t.addNotificationListener=function(e){t.listeners.push(e)},t.removeNotificationListener=function(e){for(var i=V(t.listeners,e);i>-1;)t.listeners.splice(i,1),i=V(t.listeners,e)},t.eventsSent=function(e){Jr(t.listeners,\"eventsSent\",!0,(function(t){t.eventsSent(e)}))},t.eventsDiscarded=function(e,i){Jr(t.listeners,\"eventsDiscarded\",!0,(function(t){t.eventsDiscarded(e,i)}))},t.eventsSendRequest=function(e,i){Jr(t.listeners,\"eventsSendRequest\",i,(function(t){t.eventsSendRequest(e,i)}))},t.perfEvent=function(e){e&&(!i&&e.isChildEvt()||Jr(t.listeners,\"perfEvent\",!1,(function(t){e.isAsync?setTimeout((function(){return t.perfEvent(e)}),0):t.perfEvent(e)})))}}))}return t.__ieDyn=1,t}(),Qr=function(t){function e(){var i=t.call(this)||this;return Object(n.a)(e,i,(function(t,e){function i(e){var i=t.getNotifyMgr();i&&i.eventsDiscarded([e],2)}t.initialize=function(t,i,n,r){e.initialize(t,i,n||new qt(t),r||new Zr(t))},t.track=function(n){An(t.getPerfMgr(),(function(){return\"AppInsightsCore:track\"}),(function(){null===n&&(i(n),st(\"Invalid telemetry item\")),function(t){E(t.name)&&(i(t),st(\"telemetry name required\"))}(n),e.track(n)}),(function(){return{item:n}}),!n.sync)}})),i}return Object(r.b)(e,t),e.__ieDyn=1,e}(Kr);function ts(t,e,i){var n=0,r=t[e],s=t[i];return r&&s&&(n=xn(r,s)),n}function es(t,e,i,n,r){var s=0,a=ts(i,n,r);return a&&(s=is(t,e,dt(a))),s}function is(t,e,i){var n=0;t&&e&&i&&((t.ajaxPerf=t.ajaxPerf||{})[e]=i,n=1);return n}var ns=function(){this.openDone=!1,this.setRequestHeaderDone=!1,this.sendDone=!1,this.abortDone=!1,this.stateChangeAttached=!1},rs=function(){function t(e,i,r,s){var a,o=r;this.perfMark=null,this.completed=!1,this.requestHeadersSize=null,this.requestHeaders=null,this.responseReceivingDuration=null,this.callbackDuration=null,this.ajaxTotalDuration=null,this.aborted=0,this.pageUrl=null,this.requestUrl=null,this.requestSize=0,this.method=null,this.status=null,this.requestSentTime=null,this.responseStartedTime=null,this.responseFinishedTime=null,this.callbackFinishedTime=null,this.endTime=null,this.xhrMonitoringState=new ns,this.clientFailure=0,this.traceID=e,this.spanID=i,this.traceFlags=null==s?void 0:s.getTraceFlags(),this.eventTraceCtx=s?((a={}).traceId=s.getTraceId(),a.spanId=s.getSpanId(),a.traceFlags=s.getTraceFlags(),a):null,Object(n.a)(t,this,(function(t){t.getAbsoluteUrl=function(){return t.requestUrl?dn(t.requestUrl):null},t.getPathName=function(){return t.requestUrl?we(o,fn(t.method,t.requestUrl)):null},t.CreateTrackItem=function(e,i,n){var r;if(t.ajaxTotalDuration=Math.round(1e3*xn(t.requestSentTime,t.responseFinishedTime))/1e3,t.ajaxTotalDuration<0)return null;var s=((r={id:\"|\"+t.traceID+\".\"+t.spanID,target:t.getAbsoluteUrl()}).name=t.getPathName(),r.type=e,r.startTime=null,r.duration=t.ajaxTotalDuration,r.success=+t.status>=200&&+t.status<400,r.responseCode=+t.status,r.properties={HttpMethod:t.method},r),a=s.properties;if(t.aborted&&(a.aborted=!0),t.requestSentTime&&(s.startTime=new Date,s.startTime.setTime(t.requestSentTime)),function(t,e){var i=t.perfTiming,n=e.properties||{},r=0,s=\"redirect\",a=s+\"Start\",o=s=\"End\";if(i){r|=es(n,s,i,a,o),r|=es(n,\"domainLookup\",i,\"domainLookupStart\",\"domainLookupEnd\"),r|=es(n,\"connect\",i,\"connectStart\",\"connectEnd\"),r|=es(n,\"request\",i,\"requestStart\",\"requestEnd\"),r|=es(n,\"response\",i,\"responseStart\",\"responseEnd\"),r|=es(n,\"networkConnect\",i,\"startTime\",\"connectEnd\"),r|=es(n,\"sentRequest\",i,\"requestStart\",\"responseEnd\");var l=i.duration;l||(l=ts(i,\"startTime\",\"responseEnd\")||0),r|=is(n,\"duration\",l),r|=is(n,\"perfTotal\",l);var h=i.serverTiming;if(h){var u={};U(h,(function(t,e){var i=P(t.name||\"\"+e),n=u[i]||{};M(t,(function(t,e){(\"name\"!==t&&L(e)||N(e))&&(n[t]&&(e=n[t]+\";\"+e),!e&&L(e)||(n[t]=e))})),u[i]=n})),r|=is(n,\"serverTiming\",u)}r|=is(n,\"transferSize\",i.transferSize),r|=is(n,\"encodedBodySize\",i.encodedBodySize),r|=is(n,\"decodedBodySize\",i.decodedBodySize)}else t.perfMark&&(r|=is(n,\"missing\",t.perfAttempts));r&&(e.properties=n)}(t,s),i&&q(t.requestHeaders).length>0&&(a.requestHeaders=t.requestHeaders),n){var o=n();if(o){var l=o.correlationContext;if(l&&(s.correlationContext=l),o.headerMap&&q(o.headerMap).length>0&&(a.responseHeaders=o.headerMap),t.errorStatusText)if(t.status>=400){var h=o.type;\"\"!==h&&\"text\"!==h||(a.responseText=o.responseText?o.statusText+\" - \"+o.responseText:o.statusText),\"json\"===h&&(a.responseText=o.response?o.statusText+\" - \"+JSON.stringify(o.response):o.statusText)}else 0===t.status&&(a.responseText=o.statusText||\"\")}}return s},t.getPartAProps=function(){var e,i=null,n=t.eventTraceCtx;if(n&&(n.traceId||n.spanId)){var r=(i={})[xr.TraceExt]=((e={}).traceID=n.traceId,e.parentID=n.spanId,e);E(n.traceFlags)||(r.traceFlags=n.traceFlags)}return i}}))}return t.__ieDyn=1,t}(),ss=\"Failed to monitor XMLHttpRequest\",as=\", monitoring data for this ajax call \",os=as+\"may be incorrect.\",ls=as+\"won't be sent.\",hs=\"Failed to get Request-Context correlation header as it may be not included in the response or not accessible.\",us=\"Failed to add custom defined request context as configured call back may missing a null check.\",cs=0;var ds=null;var fs=function(t,e){return t&&e&&t._ajaxData?(t._ajaxData.i||{})[e]:null},ps=function(t,e){var i=!1;if(t){var n=(t._ajaxData||{}).xh;n&&U(n,(function(t){if(t.n===e)return i=!0,-1}))}return i};function ms(t,e){var i=\"\";try{var n=fs(t,e);n&&n.requestUrl&&(i+=\"(url: '\"+n.requestUrl+\"')\")}catch(t){}return i}function gs(t,e,i,n,r){Kt(t.diagLog(),1,e,i,n,r)}function vs(t,e,i,n,r){Kt(t.diagLog(),2,e,i,n,r)}function ys(t,e,i){return function(n){gs(t,e,i,{ajaxDiagnosticsMessage:ms(n.inst,t._ajaxDataId),exception:It(n.err)})}}function bs(t,e){return t&&e?t.indexOf(e):-1}function xs(t,e,i){var n={id:e,fn:i};return t.push(n),{remove:function(){U(t,(function(e,i){if(e.id===n.id)return t.splice(i,1),-1}))}}}function ws(t,e,i,n){var r=!0;return U(e,(function(e,s){try{!1===e.fn.call(null,i)&&(r=!1)}catch(e){Kt(t&&t.logger,1,64,\"Dependency \"+n+\" [#\"+s+\"] failed: \"+tt(e),{exception:It(e)},!0)}})),r}var Ts=J([\"*.blob.core.windows.net\",\"*.blob.core.chinacloudapi.cn\",\"*.blob.core.cloudapi.de\",\"*.blob.core.usgovcloudapi.net\"]),Ss=[/https:\\/\\/[^\\/]*(\\.pipe\\.aria|aria\\.pipe|events\\.data|collector\\.azure)\\.[^\\/]+\\/(OneCollector\\/1|Collector\\/3)\\.0/i];function Es(){return{maxAjaxCallsPerView:500,disableAjaxTracking:!1,disableFetchTracking:!1,excludeRequestFromAutoTrackingPatterns:void 0,disableCorrelationHeaders:!1,distributedTracingMode:1,correlationHeaderExcludedDomains:Ts,correlationHeaderDomains:void 0,correlationHeaderExcludePatterns:void 0,appId:void 0,enableCorsCorrelation:!1,enableRequestHeaderTracking:!1,enableResponseHeaderTracking:!1,enableAjaxErrorStatusText:!1,enableAjaxPerfTracking:!1,maxAjaxPerfLookupAttempts:3,ajaxPerfLookupDelay:25,ignoreHeaders:[\"Authorization\",\"X-API-Key\",\"WWW-Authenticate\"],addRequestContext:void 0,addIntEndpoints:!0}}function Cs(){var t=Es();return M(t,(function(e){t[e]=void 0})),t}var As=function(t){function e(){var i,o,l,h,u,c,d,f,p,m,g,v,y,b,x,w,T,S,C,A,_,P,D,O,R=t.call(this)||this;return R.identifier=e.identifier,R.priority=120,Object(n.a)(e,R,(function(t,n){var R=n._addHook;function I(){var n=kt();i=!1,o=!1,l=n&&n.host&&n.host.toLowerCase(),h=e.getEmptyConfig(),u=!1,c=!1,d=0,f=null,p=!1,m=!1,g=null,v=!1,y=0,b=!1,x={},w=!1,T=!1,S=null,C=null,A=null,P=0,D=[],O=[],_=Si(\"ajaxData\"),t._ajaxDataId=_}function F(t){var e=!0;return(t||h.ignoreHeaders)&&U(h.ignoreHeaders,(function(i){if(i.toLowerCase()===t.toLowerCase())return e=!1,-1})),e}function N(t,e,i){R(function(t,e,i){return t?Vn(t[s.k],e,i,!1):null}(t,e,i))}function B(t,e,i){var n=!1,r=((L(e)?e:(e||{}).url||\"\")||\"\").toLowerCase();if(U(S,(function(t){var e=t;L(t)&&(e=new RegExp(t)),n||(n=e.test(r))})),n)return n;var s=bs(r,\"?\"),a=bs(r,\"#\");return(-1===s||-1!==a&&a=0;f--){var p=d[f];if(p){if(\"resource\"===p.entryType)p.initiatorType!==t||-1===bs(p.name,l)&&-1===bs(l,p.name)||(c=p);else if(\"mark\"===p.entryType&&p.name===r.name){e.perfTiming=c;break}if(p.startTime=a||!1===e.async?(r&&k(s.clearMarks)&&s.clearMarks(r.name),e.perfAttempts=u,i()):setTimeout(h,o)}catch(t){n(t)}}()}function W(e){var i=\"\";try{E(e)||(L(e)?i+=\"(url: '\".concat(e,\"')\"):i+=\"(url: '\".concat(e.url,\"')\"))}catch(e){gs(t,15,\"Failed to grab failed fetch diagnostics message\",{exception:It(e)})}return i}function q(e,i,n,s,a,o,l){function h(e,i,r){var s=r||{};s.fetchDiagnosticsMessage=W(n),i&&(s.exception=It(i)),vs(t,e,\"Failed to calculate the duration of the fetch call\"+ls,s)}a&&(a.responseFinishedTime=bn(),a.status=i,X(\"fetch\",a,(function(){var e,l=a.CreateTrackItem(\"Fetch\",u,o);try{C&&(e=C({status:i,request:n,response:s}))}catch(e){vs(t,104,us)}if(l){void 0!==e&&(l.properties=Object(r.a)(Object(r.a)({},l.properties),e));var c=a.getPartAProps();K(O,t.core,a,l,null,c)}else h(14,null,{requestSentTime:a.requestSentTime,responseFinishedTime:a.responseFinishedTime})}),(function(t){h(18,t,null)})))}function $(e){if(e&&e.headers)try{var i=e.headers.get(on[0]);return yn.getCorrelationContext(i)}catch(i){vs(t,18,hs,{fetchDiagnosticsMessage:W(e),exception:It(i)})}}function K(e,i,n,r,s,a){var o=!0;e.length>0&&(o=ws(i,e,{item:r,properties:s,sysProperties:a,context:n?n.context:null,aborted:!!n&&!!n.aborted},\"initializer\"));o&&t.trackDependencyDataInternal(r,s,a)}I(),t.initialize=function(l,d,x,k){var P;t.isInitialized()||(n.initialize(l,d,x,k),A=Li(Si(\"ajax\"),d&&d.evtNamespace&&d.evtNamespace()),function(i){var n=Rn(null,i,t.core);h=Cs(),M(Es(),(function(t,i){h[t]=n.getConfig(e.identifier,t,i)}));var r=h.distributedTracingMode;if(u=h.enableRequestHeaderTracking,c=h.enableAjaxErrorStatusText,v=h.enableAjaxPerfTracking,y=h.maxAjaxCallsPerView,b=h.enableResponseHeaderTracking,S=[].concat(h.excludeRequestFromAutoTrackingPatterns||[],!1!==h.addIntEndpoints?Ss:[]),C=h.addRequestContext,m=0===r||1===r,p=1===r||2===r,v){var s=i.instrumentationKey||\"unkwn\";g=s.length>5?\"ai.ajxmn.\"+s.substring(s.length-5)+\".\":\"ai.ajxmn.\"+s+\".\"}w=!!h.disableAjaxTracking,T=!!h.disableFetchTracking}(l),!function(t,e){var i,n=!1;if(Bt()){var r=XMLHttpRequest[s.k];n=!(E(r)||E(r.open)||E(r.send)||E(r.abort))}var a=Rt();if(a&&a<9&&(n=!1),n)try{var o=new XMLHttpRequest,l={xh:[],i:(i={},i[e]={},i)};o._ajaxData=l;var h=XMLHttpRequest[s.k].open;XMLHttpRequest[s.k].open=h}catch(e){n=!1,gs(t,15,\"Failed to enable XMLHttpRequest monitoring, extension is not supported\",{exception:It(e)})}return n}(t,_)||w||o||(N(XMLHttpRequest,\"open\",{ns:A,req:function(e,i,n,s){if(!w){var a=e.inst,o=fs(a,_);!B(a,n)&&z(a,o,!0)&&(o&&o.xhrMonitoringState.openDone||(o=function(e,i,n,r){var s,a=j(),o=a&&a.getTraceId()||Xi(),l=Xi().substr(0,16),h=e._ajaxData=e._ajaxData||{xh:[],i:{}},u=h.i=h.i||{},d=u[_]=u[_]||new rs(o,l,t.diagLog(),null===(s=t.core)||void 0===s?void 0:s.getTraceCtx());return d.traceFlags=a&&a.getTraceFlags(),d.method=i,d.requestUrl=n,d.xhrMonitoringState.openDone=!0,d.requestHeaders={},d.async=r,d.errorStatusText=c,d}(a,i,n,s)),function(e,i){i.xhrMonitoringState.stateChangeAttached=Ni(e,\"readystatechange\",(function(){try{e&&4===e.readyState&&z(e,i)&&function(e){var i=fs(e,_);function n(i,n){var r=n||{};r.ajaxDiagnosticsMessage=ms(e,_),i&&(r.exception=It(i)),vs(t,14,\"Failed to calculate the duration of the ajax call\"+ls,r)}i.responseFinishedTime=bn(),i.status=e.status,X(\"xmlhttprequest\",i,(function(){try{var s=i.CreateTrackItem(\"Ajax\",u,(function(){var t={statusText:e.statusText,headerMap:null,correlationContext:G(e),type:e.responseType,responseText:V(e),response:e.response};if(b){var i=e.getAllResponseHeaders();if(i){var n=Y(i).split(/[\\r\\n]+/),r={};U(n,(function(t){var e=t.split(\": \"),i=e.shift(),n=e.join(\": \");F(i)&&(r[i]=n)})),t.headerMap=r}}return t})),a=void 0;try{C&&(a=C({status:e.status,xhr:e}))}catch(e){vs(t,104,us)}if(s){void 0!==a&&(s.properties=Object(r.a)(Object(r.a)({},s.properties),a));var o=i.getPartAProps();K(O,t.core,i,s,null,o)}else n(null,{requestSentTime:i.requestSentTime,responseFinishedTime:i.responseFinishedTime})}finally{try{var l=(e._ajaxData||{i:{}}).i||{};l[_]&&(l[_]=null)}catch(t){}}}),(function(t){n(t,null)}))}(e)}catch(i){var n=It(i);n&&-1!==bs(n.toLowerCase(),\"c00c023f\")||gs(t,16,ss+\" 'readystatechange' event handler\"+os,{ajaxDiagnosticsMessage:ms(e,_),exception:n})}}),A)}(a,o))}},hkErr:ys(t,15,ss+\".open\"+os)}),N(XMLHttpRequest,\"send\",{ns:A,req:function(e,i){if(!w){var n=e.inst,r=fs(n,_);z(n,r)&&!r.xhrMonitoringState.sendDone&&(H(\"xhr\",r),r.requestSentTime=bn(),t.includeCorrelationHeaders(r,void 0,void 0,n),r.xhrMonitoringState.sendDone=!0)}},hkErr:ys(t,17,ss+os)}),N(XMLHttpRequest,\"abort\",{ns:A,req:function(t){if(!w){var e=t.inst,i=fs(e,_);z(e,i)&&!i.xhrMonitoringState.abortDone&&(i.aborted=1,i.xhrMonitoringState.abortDone=!0)}},hkErr:ys(t,13,ss+\".abort\"+os)}),N(XMLHttpRequest,\"setRequestHeader\",{ns:A,req:function(t,e,i){if(!w){var n=t.inst,r=fs(n,_);r&&z(n,r)&&(function(t,e,i){if(t){var n=(t._ajaxData||{}).xh;n&&n.push({n:e,v:i})}}(n,e,i),u&&F(e)&&r&&(r.requestHeaders[e]=i))}},hkErr:ys(t,71,ss+\".setRequestHeader\"+os)}),o=!0),function(){var e=(n=Object(a.a)(),!n||E(n.Request)||E(n.Request[s.k])||E(n.fetch)?null:n.fetch);var n;if(!e)return;var r=Object(a.a)(),l=e.polyfill;T||i?l&&R(Vn(r,\"fetch\",{ns:A,req:function(t,e,i){B(null,e,i)}})):(R(Vn(r,\"fetch\",{ns:A,req:function(e,n,r){var s;if(!T&&i&&!B(null,n,r)&&(!l||!o)){var a=e.ctx();s=function(e,i){var n,r=j(),s=r&&r.getTraceId()||Xi(),a=Xi().substr(0,16),o=new rs(s,a,t.diagLog(),null===(n=t.core)||void 0===n?void 0:n.getTraceCtx());o.traceFlags=r&&r.getTraceFlags(),o.requestSentTime=bn(),o.errorStatusText=c,e instanceof Request?o.requestUrl=e?e.url:\"\":o.requestUrl=e;var l=\"GET\";i&&i.method?l=i.method:e&&e instanceof Request&&(l=e.method);o.method=l;var h={};if(u){new Headers((i?i.headers:0)||e instanceof Request&&e.headers||{}).forEach((function(t,e){F(e)&&(h[e]=t)}))}return o.requestHeaders=h,H(\"fetch\",o),o}(n,r);var h=t.includeCorrelationHeaders(s,n,r);h!==r&&e.set(1,h),a.data=s}},rsp:function(t,e){if(!T){var i=t.ctx().data;i&&(t.rslt=t.rslt.then((function(n){return q(t,(n||{}).status,e,n,i,(function(){var t={statusText:(n||{}).statusText,headerMap:null,correlationContext:$(n)};if(b&&n){var e={};n.headers.forEach((function(t,i){F(i)&&(e[i]=t)})),t.headerMap=e}return t})),n})).catch((function(n){throw q(t,0,e,null,i,null,{error:n.message||It(n)}),n})))}},hkErr:ys(t,15,\"Failed to monitor Window.fetch\"+os)},!0,function(){if(null==ds)try{ds=!!(self&&self instanceof WorkerGlobalScope)}catch(t){ds=!1}return ds}())),i=!0);l&&(r.fetch.polyfill=l)}(),(P=t.core.getPlugin(\"AppInsightsPropertiesPlugin\"))&&(f=P.plugin.context))},t._doTeardown=function(){I()},t.trackDependencyData=function(e,i){K(O,t.core,null,e,i)},t.includeCorrelationHeaders=function(e,i,n,r){var s=t._currentWindowHost||l;if(function(t,e,i,n,r,s){if(t.length>0){var a={core:e,xhr:n,input:r,init:s,traceId:i.traceID,spanId:i.spanID,traceFlags:i.traceFlags,context:i.context||{},aborted:!!i.aborted};ws(e,t,a,\"listener\"),i.traceID=a.traceId,i.spanID=a.spanId,i.traceFlags=a.traceFlags,i.context=a.context}}(D,t.core,e,r,i,n),i||\"\"===i){if(yn.canIncludeCorrelationHeader(h,e.getAbsoluteUrl(),s)){n||(n={});var a=new Headers(n.headers||i instanceof Request&&i.headers||{});if(m){var o=\"|\"+e.traceID+\".\"+e.spanID;a.set(on[3],o),u&&(e.requestHeaders[on[3]]=o)}if((d=h.appId||f&&f.appId())&&(a.set(on[0],on[2]+d),u&&(e.requestHeaders[on[0]]=on[2]+d)),p){E(g=e.traceFlags)&&(g=1);var c=rn(tn(e.traceID,e.spanID,g));a.set(on[4],c),u&&(e.requestHeaders[on[4]]=c)}n.headers=a}return n}if(r){if(yn.canIncludeCorrelationHeader(h,e.getAbsoluteUrl(),s)){if(m)if(ps(r,on[3]))vs(t,71,\"Unable to set [\"+on[3]+\"] as it has already been set by another instance\");else{o=\"|\"+e.traceID+\".\"+e.spanID;r.setRequestHeader(on[3],o),u&&(e.requestHeaders[on[3]]=o)}var d,g;if((d=h.appId||f&&f.appId())&&(ps(r,on[0])?vs(t,71,\"Unable to set [\"+on[0]+\"] as it has already been set by another instance\"):(r.setRequestHeader(on[0],on[2]+d),u&&(e.requestHeaders[on[0]]=on[2]+d))),p)if(E(g=e.traceFlags)&&(g=1),ps(r,on[4]))vs(t,71,\"Unable to set [\"+on[4]+\"] as it has already been set by another instance\");else{c=rn(tn(e.traceID,e.spanID,g));r.setRequestHeader(on[4],c),u&&(e.requestHeaders[on[4]]=c)}}return r}},t.trackDependencyDataInternal=function(e,i,n){if(-1===y||d=2)try{var r=+n[1]||0,s=+n[2]||0;isNaN(r)||r<=0?Kt(a,2,27,\"AI session acquisition date is 0, session will be reset\"):isNaN(s)||s<=0?Kt(a,2,27,\"AI session renewal date is 0, session will be reset\"):n[0]&&(t.id=n[0],t.acquisitionDate=r,t.renewalDate=s,i=!0)}catch(t){Kt(a,1,9,\"Error parsing ai_session value [\"+(e||\"\")+\"], session will be reset - \"+tt(t),{exception:It(t)})}return i}function h(t,e){var n=t.acquisitionDate;t.renewalDate=e;var a=i.config,l=a.sessionRenewalMs(),h=n+a.sessionExpirationMs()-e,u=[t.id,n,e],c=0;c=h0?c:null,d),s=e}r=function(){return\"ai_session\"+n},i.automaticSession=new Ds,i.update=function(){var e=Q(),n=!1,u=i.automaticSession;u.id||(n=!function(t,e){var i=!1,n=o.get(r());if(n&&k(n.split))i=l(t,n);else{var s=he(a,r());s&&(i=l(t,s))}return i||!!t.id}(u));var c=i.config.sessionExpirationMs();if(!n&&c>0){var d=i.config.sessionRenewalMs(),f=e-u.acquisitionDate,p=e-u.renewalDate;n=(n=(n=f<0||p<0)||f>c)||p>d}n?function(t){var e=i.config||{},n=(e.getNewId?e.getNewId():null)||vi;i.automaticSession.id=n(e.idLength?e.idLength():22),i.automaticSession.acquisitionDate=t,h(i.automaticSession,t),le()||Kt(a,2,0,\"Browser does not support local storage. Session durations will be inaccurate.\")}(e):(!s||e-s>t.cookieUpdateInterval)&&h(u,e)},i.backup=function(){var t,e,n,s=i.automaticSession;t=s.id,e=s.acquisitionDate,n=s.renewalDate,ue(a,r(),[t,e,n].join(\"|\"))}}))}return t.acquisitionSpan=864e5,t.renewalSpan=18e5,t.cookieUpdateInterval=6e4,t}(),Rs=function(t,e,i,n){this.traceID=t||Xi(),this.parentID=e;var r=kt();!i&&r&&r.pathname&&(i=r.pathname),this.name=xe(n,i)};function Is(t){return!(\"string\"!=typeof t||!t||t.match(/,|;|=| |\\|/))}var Fs=function(){function t(e,i){this.isNewUser=!1,this.isUserCookieSet=!1;var r,s=Wt(i),a=ei(i);Object(n.a)(t,this,(function(i){i.config=e;var n=i.config.userCookiePostfix&&i.config.userCookiePostfix()?i.config.userCookiePostfix():\"\";r=function(){return t.userCookieName+n};var o=a.get(r());if(o){i.isNewUser=!1;var l=o.split(t.cookieSeparator);l.length>0&&(i.id=l[0],i.isUserCookieSet=!!i.id)}function h(){var t=e||{};return((t.getNewId?t.getNewId():null)||vi)(t.idLength?e.idLength():22)}function u(t){var e=j(new Date);return i.accountAcquisitionDate=e,i.isNewUser=!0,[t,e]}function c(t){i.isUserCookieSet=a.set(r(),t,31536e3)}if(!i.id){i.id=h(),c(u(i.id).join(t.cookieSeparator));var d=e.namePrefix&&e.namePrefix()?e.namePrefix()+\"ai_session\":\"ai_session\";ce(s,d)}i.accountId=e.accountId?e.accountId():void 0;var f=a.get(t.authUserCookieName);if(f){var p=(f=decodeURI(f)).split(t.cookieSeparator);p[0]&&(i.authenticatedId=p[0]),p.length>1&&p[1]&&(i.accountId=p[1])}i.setAuthenticatedUserContext=function(e,n,r){if(void 0===r&&(r=!1),!Is(e)||n&&!Is(n))Kt(s,2,60,\"Setting auth user context failed. User auth/account id should be of type string, and not contain commas, semi-colons, equal signs, spaces, or vertical-bars.\",!0);else{i.authenticatedId=e;var o=i.authenticatedId;n&&(i.accountId=n,o=[i.authenticatedId,i.accountId].join(t.cookieSeparator)),r&&a.set(t.authUserCookieName,encodeURI(o))}},i.clearAuthenticatedUserContext=function(){i.authenticatedId=null,i.accountId=null,a.del(t.authUserCookieName)},i.update=function(e){i.id===e&&i.isUserCookieSet||c(u(e||h()).join(t.cookieSeparator))}}))}return t.cookieSeparator=\"|\",t.userCookieName=\"ai_user\",t.authUserCookieName=\"ai_authUser\",t}();function Ls(t,e){t&&t[e]&&0===q(t[e]).length&&delete t[e]}var Ns,Bs=function(){function t(e,i,r){var s=this,a=e.logger;this.appId=function(){return null},this.getSessionId=function(){return null},Object(n.a)(t,this,(function(t){if(t.application=new _s,t.internal=new Ps(i),wt()){t.sessionManager=new Os(i,e),t.device=new ks,t.location=new Ms,t.user=new Fs(i,e);var n,o=void 0,l=void 0;r&&(o=r.getTraceId(),l=r.getSpanId(),n=r.getName()),t.telemetryTrace=new Rs(o,l,n,a),t.session=new Ds}t.getSessionId=function(){var e=t.session,i=null;if(e&&L(e.id))i=e.id;else{var n=(t.sessionManager||{}).automaticSession;i=n&&L(n.id)?n.id:null}return i},t.applySessionContext=function(e,i){et(it(e.ext,xr.AppExt),\"sesId\",t.getSessionId(),L)},t.applyOperatingSystemContxt=function(e,i){et(e.ext,xr.OSExt,t.os)},t.applyApplicationContext=function(e,i){var n=t.application;if(n){var r=it(e,\"tags\");et(r,wr.applicationVersion,n.ver,L),et(r,wr.applicationBuild,n.build,L)}},t.applyDeviceContext=function(e,i){var n=t.device;if(n){var r=it(it(e,\"ext\"),xr.DeviceExt);et(r,\"localId\",n.id,L),et(r,\"ip\",n.ip,L),et(r,\"model\",n.model,L),et(r,\"deviceClass\",n.deviceClass,L)}},t.applyInternalContext=function(e,i){var n=t.internal;if(n){var r=it(e,\"tags\");et(r,wr.internalAgentVersion,n.agentVersion,L),et(r,wr.internalSdkVersion,xe(a,n.sdkVersion,64),L),e.baseType!==Xt.dataType&&e.baseType!==Ie.dataType||(et(r,wr.internalSnippet,n.snippetVer,L),et(r,wr.internalSdkSrc,n.sdkSrc,L))}},t.applyLocationContext=function(t,e){var i=s.location;i&&et(it(t,\"tags\",[]),wr.locationIp,i.ip,L)},t.applyOperationContext=function(e,i){var n=t.telemetryTrace;if(n){var r=it(it(e,\"ext\"),xr.TraceExt,{traceID:void 0,parentID:void 0});et(r,\"traceID\",n.traceID,L,E),et(r,\"name\",n.name,L,E),et(r,\"parentID\",n.parentID,L,E)}},t.applyWebContext=function(t,e){var i=s.web;i&&et(it(t,\"ext\"),xr.WebExt,i)},t.applyUserContext=function(e,i){var n=t.user;if(n){et(it(e,\"tags\",[]),wr.userAccountId,n.accountId,L);var r=it(it(e,\"ext\"),xr.UserExt);et(r,\"id\",n.id,L),et(r,\"authId\",n.authenticatedId,L)}},t.cleanUp=function(t,e){var i=t.ext;i&&(Ls(i,xr.DeviceExt),Ls(i,xr.UserExt),Ls(i,xr.WebExt),Ls(i,xr.OSExt),Ls(i,xr.AppExt),Ls(i,xr.TraceExt))}}))}return t.__ieDyn=1,t}(),zs=function(t){function e(){var i,r,s,a=t.call(this)||this;return a.priority=110,a.identifier=\"AppInsightsPropertiesPlugin\",Object(n.a)(e,a,(function(t,n){function a(){i=null,r=null,s=null}a(),t.initialize=function(a,o,l,h){n.initialize(a,o,l,h),function(n){var a=t.identifier,o=t.core,l=Rn(null,n,o),h=e.getDefaultConfig();i=i||{},M(h,(function(t,e){i[t]=function(){return l.getConfig(a,t,e())}})),n.storagePrefix&&oe(n.storagePrefix);s=o.getTraceCtx(!1),t.context=new Bs(o,i,s),r=wn(t.context.telemetryTrace,s),o.setTraceCtx(r),t.context.appId=function(){var t=o.getPlugin(\"AppInsightsChannelPlugin\");return t?t.plugin._appId:null},t._extConfig=i}(a)},t.processTelemetry=function(e,i){if(E(e));else{i=t._getTelCtx(i),e.name===Ie.envelopeType&&i.diagLog().resetInternalMessageCount();var n=t.context||{};n.session&&\"string\"!=typeof t.context.session.id&&n.sessionManager&&n.sessionManager.update();var r=n.user;if(r&&!r.isUserCookieSet&&r.update(n.user.id),function(e,i){it(e,\"tags\",[]),it(e,\"ext\",{});var n=t.context;n.applySessionContext(e,i),n.applyApplicationContext(e,i),n.applyDeviceContext(e,i),n.applyOperationContext(e,i),n.applyUserContext(e,i),n.applyOperatingSystemContxt(e,i),n.applyWebContext(e,i),n.applyLocationContext(e,i),n.applyInternalContext(e,i),n.cleanUp(e,i)}(e,i),r&&r.isNewUser){r.isNewUser=!1;var s=new Xt(72,(At()||{}).userAgent||\"\");!function(t,e,i){$t(t).logInternalMessage(e,i)}(i.diagLog(),1,s)}t.processNext(e,i)}},t._doTeardown=function(t,e){var i=(t||{}).core();i&&i.getTraceCtx&&(i.getTraceCtx(!1)===r&&i.setTraceCtx(s));a()}})),a}return Object(r.b)(e,t),e.getDefaultConfig=function(){var t;return(t={instrumentationKey:function(){}}).accountId=function(){return null},t.sessionRenewalMs=function(){return 18e5},t.samplingPercentage=function(){return 100},t.sessionExpirationMs=function(){return 864e5},t.cookieDomain=function(){return null},t.sdkExtension=function(){return null},t.isBrowserLinkTrackingEnabled=function(){return!1},t.appId=function(){return null},t.getSessionId=function(){return null},t.namePrefix=function(){},t.sessionCookiePostfix=function(){},t.userCookiePostfix=function(){},t.idLength=function(){return 22},t.getNewId=function(){return null},t},e}(Yn),js=[\"snippet\",\"dependencies\",\"properties\",\"_snippetVersion\",\"appInsightsNew\",\"getSKUDefaults\"],Us=function(){function t(e){var i,r,s,a,o,l,h,u=this;Object(n.a)(t,this,(function(t){o=Si(\"AISKU\"),l=null,i=null,r=null,s=null,a=null,a=\"\"+(e.sv||e.version||\"\"),e.queue=e.queue||[],e.version=e.version||2;var n=e.config||{};if(n.connectionString){var c=Hr(n.connectionString),d=c.ingestionendpoint;n.endpointUrl=d?d+\"/v2/track\":n.endpointUrl,n.instrumentationKey=c.instrumentationkey||n.instrumentationKey}t.appInsights=new lr,r=new zs,i=new As,s=new Gr,h=new Qr,t.core=h;var f=!!E(n.disableIkeyDeprecationMessage)||n.disableIkeyDeprecationMessage;n.connectionString||f||Kt(h.logger,1,106,\"Instrumentation key support will end soon, see aka.ms/IkeyMigrate\"),t.snippet=e,t.config=n,t.config.diagnosticLogInterval=t.config.diagnosticLogInterval&&t.config.diagnosticLogInterval>0?t.config.diagnosticLogInterval:1e4,t.flush=function(t){void 0===t&&(t=!0),An(h,(function(){return\"AISKU.flush\"}),(function(){U(h.getTransmissionControls(),(function(e){U(e,(function(e){e.flush(t)}))}))}),null,t)},t.onunloadFlush=function(t){void 0===t&&(t=!0),U(h.getTransmissionControls(),(function(e){U(e,(function(e){e.onunloadFlush?e.onunloadFlush():e.flush(t)}))}))},t.loadAppInsights=function(e,n,o){return void 0===e&&(e=!1),e&&t.config.extensions&&t.config.extensions.length>0&&st(\"Extensions not allowed in legacy mode\"),An(t.core,(function(){return\"AISKU.loadAppInsights\"}),(function(){var l=[];l.push(s),l.push(r),l.push(i),l.push(t.appInsights),h.initialize(t.config,l,n,o),t.context=r.context,Ns&&t.context&&(t.context.internal.sdkSrc=Ns),function(i){if(i){var n=\"\";E(a)||(n+=a),e&&(n+=\".lg\"),t.context&&t.context.internal&&(t.context.internal.snippetVer=n||\"-\"),M(t,(function(t,e){L(t)&&!k(e)&&t&&\"_\"!==t[0]&&-1===V(js,t)&&(i[t]=e)}))}}(t.snippet),t.emptyQueue(),t.pollInternalLogs(),t.addHousekeepingBeforeUnload(t)})),t},t.updateSnippetDefinitions=function(e){!function(t,e,i){if(t&&e&&_(t)&&_(e)){var n=function(n){if(L(n)){var r=e[n];k(r)?i&&!i(n,!0,e,t)||(t[n]=at(e,n)):i&&!i(n,!1,e,t)||(A(t,n)&&delete t[n],$(t,n,(function(){return e[n]}),(function(t){e[n]=t}))||(t[n]=r))}};for(var r in e)n(r)}}(e,t,(function(t){return t&&-1===V(js,t)}))},t.emptyQueue=function(){try{if(I(t.snippet.queue)){for(var e=t.snippet.queue.length,i=0;i4}Ae(){return this.Ne()&&null!=this.css&&this.css.length>0}Ce(){if(this.Ne()&&this.Ae())return this.htmlId+\"-css\"}M(){return!this.Th&&(this.Th=!0,!0)}so(){return this.Th}p(t){return!this.do&&(this.do=!0,this.ht.Et(),!0)}F(){return!this.oh&&(this.oh=!0,this.rh.Et(),!0)}hide(t){if(t&&t.parentNode){let e=t.closest(\".ab-iam-root\");if(null==e&&(e=t),this.xe()&&null!=e.parentNode){const t=e.parentNode.classList;t&&t.contains(h.lh)&&t.remove(h.lh),document.body.removeEventListener(\"touchmove\",h.uh)}e.className=e.className.replace(h.ah,h.Ih)}return this.animateOut||!1}ye(t,e){if(null==t)return;let i;this.Me=null,i=-1===t.className.indexOf(\"ab-in-app-message\")?t.getElementsByClassName(\"ab-in-app-message\")[0]:t;let n=!1;i&&(n=this.hide(i));const s=document.body;let a;null!=s&&(a=s.scrollTop);const o=()=>{if(t&&t.parentNode){let e=t.closest(\".ab-iam-root\");null==e&&(e=t),e.parentNode&&e.parentNode.removeChild(e)}const i=this.Ce();if(null!=i){const t=document.getElementById(i);t&&t.parentNode&&t.parentNode.removeChild(t)}null!=s&&\"Safari\"===r.a.browser&&(s.scrollTop=a),e?e():this.F()};n?setTimeout(o,h.Oh):o(),this.ke&&this.ke.focus()}Ge(){return document.createTextNode(this.message||\"\")}Be(t){let e=\"\";this.message||this.header||!this.xe()||(e=\"Modal Image\"),t.setAttribute(\"alt\",e)}static uh(t){if(t.targetTouches&&t.targetTouches.length>1)return;const e=t.target;e&&e.classList&&e.classList.contains(\"ab-message-text\")&&e.scrollHeight>e.clientHeight||document.querySelector(\".\"+h.lh)&&t.preventDefault()}Ah(t){const e=t.parentNode;this.xe()&&null!=e&&this.orientation!==h.Orientation.LANDSCAPE&&(null!=e.classList&&e.classList.add(h.lh),document.body.addEventListener(\"touchmove\",h.uh,!!Object(s.h)()&&{passive:!1})),t.className+=\" \"+h.ah}static Lh(t){if(t.keyCode===a.a._h&&!n.b.nn(n.a.mh)&&document.querySelectorAll(\".ab-modal-interactions\").length>0){const t=document.getElementsByClassName(\"ab-html-message\");let e=!1;for(const i of t){let t=null;Object(l.a)(i)&&i.contentWindow&&(t=i.contentWindow.document.getElementsByClassName(\"ab-programmatic-close-button\")[0]),null!=t&&(Object(s.f)(t),e=!0)}if(!e){const t=document.querySelectorAll(\".ab-modal-interactions > .ab-close-button\")[0];null!=t&&Object(s.f)(t)}}}Nh(){this.nh||n.b.nn(n.a.mh)||(document.addEventListener(\"keydown\",h.Lh,!1),n.b.Rh(()=>{document.removeEventListener(\"keydown\",h.Lh)}),this.nh=!0)}ss(t){const e={};return t?(e[h.hs.ea]=this.message,e[h.hs.ra]=this.messageAlignment,e[h.hs.Sh]=this.slideFrom,e[h.hs.xs]=this.extras,e[h.hs.sa]=this.triggerId,e[h.hs.ta]=this.clickAction,e[h.hs.URI]=this.uri,e[h.hs.ia]=this.openTarget,e[h.hs.oa]=this.dismissType,e[h.hs.pa]=this.duration,e[h.hs.ma]=this.icon,e[h.hs.os]=this.imageUrl,e[h.hs.na]=this.imageStyle,e[h.hs.ua]=this.iconColor,e[h.hs.ca]=this.iconBackgroundColor,e[h.hs.fa]=this.backgroundColor,e[h.hs.da]=this.textColor,e[h.hs.la]=this.closeButtonColor,e[h.hs.ga]=this.animateIn,e[h.hs.ja]=this.animateOut,e[h.hs.xa]=this.header,e[h.hs.za]=this.headerAlignment,e[h.hs.ha]=this.headerTextColor,e[h.hs.va]=this.frameColor,e[h.hs.wa]=this.buttons,e[h.hs.ya]=this.cropType,e[h.hs.Sa]=this.orientation,e[h.hs.ba]=this.htmlId,e[h.hs.CSS]=this.css,e[h.hs.ts]=t,e):e}}h.th={hh:4281545523,ih:4294967295,sh:4278219733,Dh:4293914607,Mh:4283782485,Eh:3224580915,eh:4288387995},h.Ie={Ch:\"hd\",Le:\"ias\",dh:\"of\",Uh:\"do\",Xr:\"umt\",Qr:\"tf\",bh:\"te\"},h.SlideFrom={TOP:\"TOP\",BOTTOM:\"BOTTOM\"},h.ClickAction={NEWS_FEED:\"NEWS_FEED\",URI:\"URI\",NONE:\"NONE\"},h.DismissType={AUTO_DISMISS:\"AUTO_DISMISS\",MANUAL:\"SWIPE\"},h.OpenTarget={NONE:\"NONE\",BLANK:\"BLANK\"},h.ImageStyle={TOP:\"TOP\",GRAPHIC:\"GRAPHIC\"},h.Orientation={PORTRAIT:\"PORTRAIT\",LANDSCAPE:\"LANDSCAPE\"},h.TextAlignment={START:\"START\",CENTER:\"CENTER\",END:\"END\"},h.CropType={CENTER_CROP:\"CENTER_CROP\",FIT_CENTER:\"FIT_CENTER\"},h.qe={pn:\"SLIDEUP\",un:\"MODAL\",Se:\"MODAL_STYLED\",on:\"FULL\",ln:\"WEB_HTML\",Ee:\"HTML\",Ue:\"HTML_FULL\"},h.Oh=500,h.Ph=200,h.ah=\"ab-show\",h.Ih=\"ab-hide\",h.lh=\"ab-pause-scrolling\",h.hs={ea:\"m\",ra:\"ma\",Sh:\"sf\",xs:\"e\",sa:\"ti\",ta:\"ca\",URI:\"u\",ia:\"oa\",oa:\"dt\",pa:\"d\",ma:\"i\",os:\"iu\",na:\"is\",ua:\"ic\",ca:\"ibc\",fa:\"bc\",da:\"tc\",la:\"cbc\",ga:\"ai\",ja:\"ao\",xa:\"h\",za:\"ha\",ha:\"htc\",va:\"fc\",wa:\"b\",ya:\"ct\",Sa:\"o\",ba:\"hi\",CSS:\"css\",ts:\"type\",vo:\"messageFields\"}},\"8g73\":function(t,e,i){var n,r;n=[i(\"mEBU\"),i(\"MT+g\"),i(\"F83J\"),i(\"dyyg\")],void 0===(r=function(t,e,i){\"use strict\";var n=/^(?:input|select|textarea|button)$/i,r=/^(?:a|area)$/i;t.fn.extend({prop:function(i,n){return e(this,t.prop,i,n,arguments.length>1)},removeProp:function(e){return this.each((function(){delete this[t.propFix[e]||e]}))}}),t.extend({prop:function(e,i,n){var r,s,a=e.nodeType;if(3!==a&&8!==a&&2!==a)return 1===a&&t.isXMLDoc(e)||(i=t.propFix[i]||i,s=t.propHooks[i]),void 0!==n?s&&\"set\"in s&&void 0!==(r=s.set(e,n,i))?r:e[i]=n:s&&\"get\"in s&&null!==(r=s.get(e,i))?r:e[i]},propHooks:{tabIndex:{get:function(e){var i=t.find.attr(e,\"tabindex\");return i?parseInt(i,10):n.test(e.nodeName)||r.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:\"htmlFor\",class:\"className\"}}),i.optSelected||(t.propHooks.selected={get:function(t){var e=t.parentNode;return e&&e.parentNode&&e.parentNode.selectedIndex,null},set:function(t){var e=t.parentNode;e&&(e.selectedIndex,e.parentNode&&e.parentNode.selectedIndex)}}),t.each([\"tabIndex\",\"readOnly\",\"maxLength\",\"cellSpacing\",\"cellPadding\",\"rowSpan\",\"colSpan\",\"useMap\",\"frameBorder\",\"contentEditable\"],(function(){t.propFix[this.toLowerCase()]=this}))}.apply(e,n))||(t.exports=r)},\"8oxB\":function(t,e){var i,n,r=t.exports={};function s(){throw new Error(\"setTimeout has not been defined\")}function a(){throw new Error(\"clearTimeout has not been defined\")}function o(t){if(i===setTimeout)return setTimeout(t,0);if((i===s||!i)&&setTimeout)return i=setTimeout,setTimeout(t,0);try{return i(t,0)}catch(e){try{return i.call(null,t,0)}catch(e){return i.call(this,t,0)}}}!function(){try{i=\"function\"==typeof setTimeout?setTimeout:s}catch(t){i=s}try{n=\"function\"==typeof clearTimeout?clearTimeout:a}catch(t){n=a}}();var l,h=[],u=!1,c=-1;function d(){u&&l&&(u=!1,l.length?h=l.concat(h):c=-1,h.length&&f())}function f(){if(!u){var t=o(d);u=!0;for(var e=h.length;e;){for(l=h,h=[];++c1)for(var i=1;i0)for(var r=0;r=0;i--)if(t[i]===e)return!0;return!1}function b(t,e,i,n){var r=null;if(t&&u(i,\"_dynClass\")){var s=t._dynInstFuncs||v();if((r=(s[i._dynClass]||v())[e])||g(\"Missing [\"+e+\"] function\"),!r._dynInstChk&&!1!==s._dynInstChk){for(var a=!u(t,e),o=f(t),l=[];a&&o&&!d(o)&&!y(l,o);){var h=o[e];if(h){a=h===n;break}l.push(o),o=f(o)}try{a&&(t[e]=r),r._dynInstChk=1}catch(t){s._dynInstChk=!1}}}return r}function x(t,e,i){var n=e[t];return n===i&&(n=f(e)[t]),\"function\"!=typeof n&&g(\"[\"+t+\"] is not a function\"),n}function w(t,e,i,n,r){if(!c(t)){var s=i._dynInstFuncs=i._dynInstFuncs||v();if(!c(s)){var a=s[e]=s[e]||v();!1!==s._dynInstChk&&(s._dynInstChk=!!r),c(a)||p(i,(function(e){m(i,e,!1)&&i[e]!==n[e]&&(a[e]=i[e],delete i[e],(!u(t,e)||t[e]&&!t[e]._isDynProxy)&&(t[e]=function(t,e){var i=function(){var n=b(this,e,t,i)||x(e,t,i);return n.apply(this,arguments)};return i._isDynProxy=1,i}(t,e)))}))}}}function T(t,e){return u(t,\"prototype\")?t.name||e||\"_unknown_\":((t||{}).constructor||{}).name||e||\"_unknown_\"}function S(t,e,i,n){u(t,\"prototype\")||g(\"theClass is an invalid class definition.\");var r=t.prototype;(function(t,e){if(s){for(var i=[],n=f(e);n&&!d(n)&&!y(i,n);){if(n===t)return!0;i.push(n),n=f(n)}return!1}return!0})(r,e)||g(\"[\"+T(t)+\"] not in hierarchy of [\"+T(e)+\"]\");var a=null;u(r,\"_dynClass\")?a=r._dynClass:(a=\"_dynCls$\"+T(t,\"_\")+\"$\"+h.n,h.n++,r._dynClass=a);var o=S._dfOpts,l=!!o.useBaseInst;l&&n&&void 0!==n.useBaseInst&&(l=!!n.useBaseInst);var c=function(t){var e=v();return p(t,(function(i){!e[i]&&m(t,i,!1)&&(e[i]=t[i])})),e}(e);i(e,function(t,e,i,n){function r(t,e,i){var r=e[i];if(r._isDynProxy&&n){var s=t._dynInstFuncs||{};!1!==s._dynInstChk&&(r=(s[e._dynClass]||{})[i]||r)}return function(){return r.apply(t,arguments)}}var a=v();p(i,(function(t){a[t]=r(e,i,t)}));for(var o=f(t),l=[];o&&!d(o)&&!y(l,o);)p(o,(function(t){!a[t]&&m(o,t,!s)&&(a[t]=r(e,o,t))})),l.push(o),o=f(o);return a}(r,e,c,l));var b=!!s&&!!o.setInstFuncs;b&&n&&(b=!!n.setInstFuncs),w(r,a,e,c,!1!==b)}S._dfOpts=h.o}).call(this,i(\"yLpj\"))},\"93Oc\":function(t,e,i){\"use strict\";i.d(e,\"a\",(function(){return r}));var n=i(\"o+FD\");class r extends n.a{constructor(t,e,i,n,r,s,a,o,l,h,u,c,d,f,p,m){super(t,e,i,n,r,s,a,o,l,h,u,c,d,f,p,m),this.U=\"ab-captioned-image\",this.V=!0,this.test=!1}ss(){const t={};return t[n.a.hs.ts]=n.a.es.tt,t[n.a.hs.ns]=this.id,t[n.a.hs.ls]=this.viewed,t[n.a.hs.st]=this.title,t[n.a.hs.os]=this.imageUrl,t[n.a.hs.it]=this.description,t[n.a.hs.us]=this.updated,t[n.a.hs.cs]=this.created,t[n.a.hs.bs]=this.categories,t[n.a.hs.ds]=this.expiresAt,t[n.a.hs.URL]=this.url,t[n.a.hs.ps]=this.linkText,t[n.a.hs.fs]=this.aspectRatio,t[n.a.hs.xs]=this.extras,t[n.a.hs.gs]=this.pinned,t[n.a.hs.js]=this.dismissible,t[n.a.hs.ys]=this.clicked,t[n.a.hs.zs]=this.test,t}}},\"9NLR\":function(t,e,i){\"use strict\";i.d(e,\"a\",(function(){return s}));var n=i(\"1SDN\"),r=i(\"8QvM\");class s extends r.a{constructor(t,e,i,n,s,a,o,l,h,u,c,d,f,p,m,g,v,y,b,x,w,T,S,E,C,A,_,k){l=l||r.a.DismissType.MANUAL,A=A||r.a.Orientation.PORTRAIT,super(t,e,void 0,i,n,s,a,o,l,h,u,c,d,f,p,m,g,v,y,b,x,w,T,S,E,C=C||r.a.CropType.CENTER_CROP,A,_,k),this.Te=r.a.TextAlignment.CENTER}ss(){return super.ss(s.es)}static an(t){return new s(t[r.a.hs.ea],t[r.a.hs.ra],t[r.a.hs.xs],t[r.a.hs.sa],t[r.a.hs.ta],t[r.a.hs.URI],t[r.a.hs.ia],t[r.a.hs.oa],t[r.a.hs.pa],t[r.a.hs.ma],t[r.a.hs.os],t[r.a.hs.na],t[r.a.hs.ua],t[r.a.hs.ca],t[r.a.hs.fa],t[r.a.hs.da],t[r.a.hs.la],t[r.a.hs.ga],t[r.a.hs.ja],t[r.a.hs.xa],t[r.a.hs.za],t[r.a.hs.ha],t[r.a.hs.va],Object(n.a)(t[r.a.hs.wa]),t[r.a.hs.ya],t[r.a.hs.Sa],t[r.a.hs.ba],t[r.a.hs.CSS])}}s.es=r.a.qe.on},\"9Pyl\":function(t,e,i){var n,r;n=[i(\"mEBU\"),i(\"MT+g\"),i(\"tz86\"),i(\"s44h\"),i(\"xLti\"),i(\"Qvwh\"),i(\"fcmK\"),i(\"T4+F\"),i(\"16XX\"),i(\"MsD2\"),i(\"1wM/\"),i(\"dyyg\")],void 0===(r=function(t,e,i,n,r,s,a,o,l){\"use strict\";return t.offset={setOffset:function(e,i,r){var s,a,o,l,h,u,c=t.css(e,\"position\"),d=t(e),f={};\"static\"===c&&(e.style.position=\"relative\"),h=d.offset(),o=t.css(e,\"top\"),u=t.css(e,\"left\"),(\"absolute\"===c||\"fixed\"===c)&&(o+u).indexOf(\"auto\")>-1?(l=(s=d.position()).top,a=s.left):(l=parseFloat(o)||0,a=parseFloat(u)||0),n(i)&&(i=i.call(e,r,t.extend({},h))),null!=i.top&&(f.top=i.top-h.top+l),null!=i.left&&(f.left=i.left-h.left+a),\"using\"in i?i.using.call(e,f):d.css(f)}},t.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each((function(i){t.offset.setOffset(this,e,i)}));var i,n,r=this[0];return r?r.getClientRects().length?(i=r.getBoundingClientRect(),n=r.ownerDocument.defaultView,{top:i.top+n.pageYOffset,left:i.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,i,n,r=this[0],s={top:0,left:0};if(\"fixed\"===t.css(r,\"position\"))i=r.getBoundingClientRect();else{for(i=this.offset(),n=r.ownerDocument,e=r.offsetParent||n.documentElement;e&&(e===n.body||e===n.documentElement)&&\"static\"===t.css(e,\"position\");)e=e.parentNode;e&&e!==r&&1===e.nodeType&&((s=t(e).offset()).top+=t.css(e,\"borderTopWidth\",!0),s.left+=t.css(e,\"borderLeftWidth\",!0))}return{top:i.top-s.top-t.css(r,\"marginTop\",!0),left:i.left-s.left-t.css(r,\"marginLeft\",!0)}}},offsetParent:function(){return this.map((function(){for(var e=this.offsetParent;e&&\"static\"===t.css(e,\"position\");)e=e.offsetParent;return e||i}))}}),t.each({scrollLeft:\"pageXOffset\",scrollTop:\"pageYOffset\"},(function(i,n){var r=\"pageYOffset\"===n;t.fn[i]=function(t){return e(this,(function(t,e,i){var s;if(l(t)?s=t:9===t.nodeType&&(s=t.defaultView),void 0===i)return s?s[n]:t[e];s?s.scrollTo(r?s.pageXOffset:i,r?i:s.pageYOffset):t[e]=i}),i,t,arguments.length)}})),t.each([\"top\",\"left\"],(function(e,i){t.cssHooks[i]=a(o.pixelPosition,(function(e,n){if(n)return n=s(e,i),r.test(n)?t(e).position()[i]+\"px\":n}))})),t}.apply(e,n))||(t.exports=r)},\"9rSQ\":function(t,e,i){\"use strict\";var n=i(\"xTJ+\");function r(){this.handlers=[]}r.prototype.use=function(t,e){return this.handlers.push({fulfilled:t,rejected:e}),this.handlers.length-1},r.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)},r.prototype.forEach=function(t){n.forEach(this.handlers,(function(e){null!==e&&t(e)}))},t.exports=r},\"9tPo\":function(t,e){t.exports=function(t){var e=\"undefined\"!=typeof window&&window.location;if(!e)throw new Error(\"fixUrls requires window.location\");if(!t||\"string\"!=typeof t)return t;var i=e.protocol+\"//\"+e.host,n=i+e.pathname.replace(/\\/[^\\/]*$/,\"/\");return t.replace(/url\\s*\\(((?:[^)(]|\\((?:[^)(]+|\\([^)(]*\\))*\\))*)\\)/gi,(function(t,e){var r,s=e.trim().replace(/^\"(.*)\"$/,(function(t,e){return e})).replace(/^'(.*)'$/,(function(t,e){return e}));return/^(#|data:|http:\\/\\/|https:\\/\\/|file:\\/\\/\\/|\\s*$)/i.test(s)?t:(r=0===s.indexOf(\"//\")?s:0===s.indexOf(\"/\")?i+s:n+s.replace(/^\\.\\//,\"\"),\"url(\"+JSON.stringify(r)+\")\")}))}},AyXh:function(t,e,i){\"use strict\";i.d(e,\"a\",(function(){return r}));var n=i(\"jTrT\");class r{constructor(t,e){this.cards=t,this.lastUpdated=e,this.cards=t,this.lastUpdated=e}getUnreadCardCount(){let t=0;for(const e of this.cards)e.viewed||e instanceof n.a||t++;return t}ur(){throw new Error(\"Must be implemented in a subclass\")}logCardImpressions(t){throw new Error(\"Must be implemented in a subclass\")}logCardClick(t){throw new Error(\"Must be implemented in a subclass\")}sr(){throw new Error(\"Must be implemented in a subclass\")}}r.mr=6e4,r.Oh=500,r.uo=1e4},B3g1:function(t,e,i){\"use strict\";i.d(e,\"a\",(function(){return r}));var n=i(\"Rsh4\");class r{constructor(){this.Ve={}}lt(t){if(\"function\"!=typeof t)return null;const e=n.a.Z.Y();return this.Ve[e]=t,e}removeSubscription(t){delete this.Ve[t]}removeAllSubscriptions(){this.Ve={}}tc(){return Object.keys(this.Ve).length}Et(t){const e=[];for(const i in this.Ve){const n=this.Ve[i];e.push(n(t))}return e}}},B9Yq:function(t,e){t.exports=function(){throw new Error(\"define cannot be used indirect\")}},BEtg:function(t,e){\n/*!\n * Determine if an object is a Buffer\n *\n * @author Feross Aboukhadijeh \n * @license MIT\n */\nt.exports=function(t){return null!=t&&null!=t.constructor&&\"function\"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)}},Bnag:function(t,e){t.exports=function(){throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")},t.exports.__esModule=!0,t.exports.default=t.exports},\"C+G9\":function(t,e,i){\"use strict\";i.d(e,\"b\",(function(){return r})),i.d(e,\"a\",(function(){return s}));var n=i(\"Rsh4\");function r(t){let e=t.length;for(let i=t.length-1;i>=0;i--){const n=t.charCodeAt(i);n>127&&n<=2047?e++:n>2047&&n<=65535&&(e+=2),n>=56320&&n<=57343&&i--}return e}function s(t){try{t=t.replace(/-/g,\"+\").replace(/_/g,\"/\");const e=window.atob(t),i=new Uint8Array(e.length);for(let t=0;tMath.min(e,i)&&t=e),r&&t.push(this.cards[i])}return new s.a(t,this.Ai)}Ms(){this.ki&&this.ki.requestFeedRefresh()}ri(t){return this.yt.lt(t)}clearData(t){null==t&&(t=!1),this.cards=[],this.Ai=null,t&&this.u&&(this.u.ni(l.a.k.Bi),this.u.ni(l.a.k.Ei)),this.yt.Et(new s.a(this.cards.slice(),this.Ai))}}const c={t:!1,provider:null,er:()=>(c.o(),c.provider||(c.provider=new u(n.b.l(),n.b.cr()),n.b.dr(c.provider)),c.provider),o:()=>{c.t||(n.b.g(c),c.t=!0)},destroy:()=>{c.provider=null,c.t=!1}};e.a=c},CgaS:function(t,e,i){\"use strict\";var n=i(\"JEQr\"),r=i(\"xTJ+\"),s=i(\"9rSQ\"),a=i(\"UnBK\");function o(t){this.defaults=t,this.interceptors={request:new s,response:new s}}o.prototype.request=function(t){\"string\"==typeof t&&(t=r.merge({url:arguments[0]},arguments[1])),(t=r.merge(n,{method:\"get\"},this.defaults,t)).method=t.method.toLowerCase();var e=[a,void 0],i=Promise.resolve(t);for(this.interceptors.request.forEach((function(t){e.unshift(t.fulfilled,t.rejected)})),this.interceptors.response.forEach((function(t){e.push(t.fulfilled,t.rejected)}));e.length;)i=i.then(e.shift(),e.shift());return i},r.forEach([\"delete\",\"get\",\"head\",\"options\"],(function(t){o.prototype[t]=function(e,i){return this.request(r.merge(i||{},{method:t,url:e}))}})),r.forEach([\"post\",\"put\",\"patch\"],(function(t){o.prototype[t]=function(e,i,n){return this.request(r.merge(n||{},{method:t,url:e,data:i}))}})),t.exports=o},D0Jr:function(t,e,i){var n,r;n=[i(\"FDjK\")],void 0===(r=function(t){\"use strict\";return t.hasOwnProperty}.apply(e,n))||(t.exports=r)},DRAz:function(t,e,i){\"use strict\";i.r(e),i.d(e,\"logCustomEvent\",(function(){return u}));var n=i(\"iMpH\"),r=i(\"qxgu\"),s=i(\"Rsh4\"),a=i(\"p/tc\"),o=i(\"eAt7\"),l=i(\"iy71\"),h=i(\"1nra\");function u(t,e){if(!n.b.rr())return!1;if(null==t||t.length<=0)return s.a.j.error(`logCustomEvent requires a non-empty eventName, got \"${t}\". Ignoring event.`),!1;if(!Object(l.h)(t,\"log custom event\",\"the event name\"))return!1;const[i,u]=Object(l.g)(e,h.f,\"eventProperties\",`log custom event \"${t}\"`,\"event\");if(!i)return!1;const c=n.b.tr();if(c&&c.ge(t))return s.a.j.info(`Custom Event \"${t}\" is blocklisted, ignoring.`),!1;const d=r.a.N(s.a.q.CustomEvent,{n:t,p:u});if(d.O){s.a.j.info(`Logged custom event \"${t}\".`);for(const i of d.ve)o.a.er().be(a.a.$e,[t,e],i)}return d.O}},DUvB:function(t,e,i){\"use strict\";i.d(e,\"a\",(function(){return r}));var n=i(\"8QvM\");class r extends n.a{constructor(t,e,i,r,s,a,o,l,h,u,c){super(t,void 0,void 0,e,i,void 0,void 0,void 0,r=r||n.a.DismissType.MANUAL,s,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,a,o,void 0,void 0,void 0,l,void 0,void 0,void 0,h,u),this.messageFields=c,this.messageFields=c}io(){return!1}p(t){if(this.Pe===n.a.qe.ln){if(this.do)return!1;this.do=!0}return this.ht.Et(t),!0}ss(){const t=super.ss(r.es);return t[n.a.hs.vo]=this.messageFields,t}static an(t){return new r(t[n.a.hs.ea],t[n.a.hs.xs],t[n.a.hs.sa],t[n.a.hs.oa],t[n.a.hs.pa],t[n.a.hs.ga],t[n.a.hs.ja],t[n.a.hs.va],t[n.a.hs.ba],t[n.a.hs.CSS],t[n.a.hs.vo])}}r.es=n.a.qe.ln},Dc8T:function(t,e,i){var n;void 0===(n=function(){\"use strict\";return/\\?/}.call(e,i,e,t))||(t.exports=n)},DfZB:function(t,e,i){\"use strict\";t.exports=function(t){return function(e){return t.apply(null,e)}}},EbDI:function(t,e){t.exports=function(t){if(\"undefined\"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t[\"@@iterator\"])return Array.from(t)},t.exports.__esModule=!0,t.exports.default=t.exports},\"Es+0\":function(t,e,i){var n=i(\"Q7AB\");\"string\"==typeof n&&(n=[[t.i,n,\"\"]]);var r={hmr:!0,transform:void 0,insertInto:void 0};i(\"aET+\")(n,r);n.locals&&(t.exports=n.locals)},Et7R:function(t,e,i){var n=i(\"r0a0\");\"string\"==typeof n&&(n=[[t.i,n,\"\"]]);var r={hmr:!0,transform:void 0,insertInto:void 0};i(\"aET+\")(n,r);n.locals&&(t.exports=n.locals)},F83J:function(t,e,i){var n,r;n=[i(\"iprW\"),i(\"hFd1\")],void 0===(r=function(t,e){\"use strict\";var i,n;return i=t.createElement(\"input\"),n=t.createElement(\"select\").appendChild(t.createElement(\"option\")),i.type=\"checkbox\",e.checkOn=\"\"!==i.value,e.optSelected=n.selected,(i=t.createElement(\"input\")).value=\"t\",i.type=\"radio\",e.radioValue=\"t\"===i.value,e}.apply(e,n))||(t.exports=r)},FDjK:function(t,e,i){var n;void 0===(n=function(){\"use strict\";return{}}.call(e,i,e,t))||(t.exports=n)},FRvr:function(t,e,i){\"use strict\";i.d(e,\"b\",(function(){return s})),i.d(e,\"a\",(function(){return a})),i.d(e,\"h\",(function(){return o})),i.d(e,\"c\",(function(){return l})),i.d(e,\"i\",(function(){return h})),i.d(e,\"d\",(function(){return u})),i.d(e,\"f\",(function(){return c})),i.d(e,\"g\",(function(){return d})),i.d(e,\"e\",(function(){return f}));var n=i(\"Rsh4\"),r=i(\"HJ5q\");const s={lc:null,no:function(t,e=!1,i=!1,n=!1){if(null==t)return!1;e=e||!1,i=i||!1;const r=t.getBoundingClientRect();return null!=r&&(r.top>=0&&r.top<=(window.innerHeight||document.documentElement.clientHeight)||!e)&&(r.left>=0||!n)&&(r.bottom>=0&&r.bottom<=(window.innerHeight||document.documentElement.clientHeight)||!i)&&(r.right<=(window.innerWidth||document.documentElement.clientWidth)||!n)}},a={Oe:\"up\",Qe:\"down\",W:\"left\",X:\"right\"};function o(){if(null==s.lc){s.lc=!1;try{const t=Object.defineProperty({},\"passive\",{get:()=>{s.lc=!0}});window.addEventListener(\"testPassive\",()=>{},t),window.removeEventListener(\"testPassive\",()=>{},t)}catch(t){n.a.j.error(Object(r.a)(t))}}return s.lc}function l(t,e,i=(()=>{})){t.addEventListener(e,i,!!o()&&{passive:!0})}function h(t){return s.no(t,!0,!1,!1)}function u(t){return s.no(t,!1,!0,!1)}function c(t){if(t.onclick){const e=document.createEvent(\"MouseEvents\");e.initEvent(\"click\",!0,!0),t.onclick.apply(t,[e])}}function d(t,e,i){let n=null,r=null;l(t,\"touchstart\",t=>{n=t.touches[0].clientX,r=t.touches[0].clientY}),l(t,\"touchmove\",s=>{if(null==n||null==r)return;const o=n-s.touches[0].clientX,l=r-s.touches[0].clientY;Math.abs(o)>Math.abs(l)&&Math.abs(o)>=25?((o>0&&e===a.W||o<0&&e===a.X)&&i(s),n=null,r=null):Math.abs(l)>=25&&((l>0&&e===a.Oe&&t.scrollTop===t.scrollHeight-t.offsetHeight||l<0&&e===a.Qe&&0===t.scrollTop)&&i(s),n=null,r=null)})}function f(t,e,i){const n=\"http://www.w3.org/2000/svg\",r=document.createElementNS(n,\"svg\");r.setAttribute(\"viewBox\",t),r.setAttribute(\"xmlns\",n);const s=document.createElementNS(n,\"path\");return s.setAttribute(\"d\",e),null!=i&&s.setAttribute(\"fill\",i),r.appendChild(s),r}},FXxO:function(t,e,i){\"use strict\";i.d(e,\"h\",(function(){return n})),i.d(e,\"j\",(function(){return r})),i.d(e,\"l\",(function(){return s})),i.d(e,\"k\",(function(){return a})),i.d(e,\"i\",(function(){return o})),i.d(e,\"g\",(function(){return l})),i.d(e,\"b\",(function(){return h})),i.d(e,\"f\",(function(){return u})),i.d(e,\"a\",(function(){return c})),i.d(e,\"c\",(function(){return d})),i.d(e,\"d\",(function(){return f})),i.d(e,\"e\",(function(){return p}));var n=\"function\",r=\"object\",s=\"undefined\",a=\"prototype\",o=\"hasOwnProperty\",l=\"default\",h=Object,u=h[a],c=h.assign,d=h.create,f=h.defineProperty,p=u[o]},Fa99:function(t,e,i){\"use strict\";i.d(e,\"a\",(function(){return s}));var n=i(\"8QvM\"),r=i(\"B3g1\");class s{constructor(t,e,i,a,o,l,h){this.text=t,this.backgroundColor=e,this.textColor=i,this.borderColor=a,this.clickAction=o,this.uri=l,this.id=h,this.text=t||\"\",this.backgroundColor=e||n.a.th.sh,this.textColor=i||n.a.th.ih,this.borderColor=a||this.backgroundColor,this.clickAction=o||n.a.ClickAction.NONE,this.uri=l,null==h&&(h=s.Yi),this.id=h,this.do=!1,this.ht=new r.a}subscribeToClickedEvent(t){return this.ht.lt(t)}removeSubscription(t){this.ht.removeSubscription(t)}removeAllSubscriptions(){this.ht.removeAllSubscriptions()}p(){return!this.do&&(this.do=!0,this.ht.Et(),!0)}static fromJson(t){return new s(t.text,t.bg_color,t.text_color,t.border_color,t.click_action,t.uri,t.id)}}s.Yi=-1},FbHE:function(t,e,i){var n,r;n=[i(\"UQHn\")],void 0===(r=function(t){\"use strict\";return new RegExp(\"^(?:([+-])=|)(\"+t+\")([a-z%]*)$\",\"i\")}.apply(e,n))||(t.exports=r)},G5n7:function(t,e,i){var n,r;n=[i(\"mEBU\"),i(\"s44h\"),i(\"QQxG\"),i(\"hX6M\")],void 0===(r=function(t,e,i){\"use strict\";function n(t){return t}function r(t){throw t}function s(t,i,n,r){var s;try{t&&e(s=t.promise)?s.call(t).done(i).fail(n):t&&e(s=t.then)?s.call(t,i,n):i.apply(void 0,[t].slice(r))}catch(t){n.apply(void 0,[t])}}return t.extend({Deferred:function(i){var s=[[\"notify\",\"progress\",t.Callbacks(\"memory\"),t.Callbacks(\"memory\"),2],[\"resolve\",\"done\",t.Callbacks(\"once memory\"),t.Callbacks(\"once memory\"),0,\"resolved\"],[\"reject\",\"fail\",t.Callbacks(\"once memory\"),t.Callbacks(\"once memory\"),1,\"rejected\"]],a=\"pending\",o={state:function(){return a},always:function(){return l.done(arguments).fail(arguments),this},catch:function(t){return o.then(null,t)},pipe:function(){var i=arguments;return t.Deferred((function(n){t.each(s,(function(t,r){var s=e(i[r[4]])&&i[r[4]];l[r[1]]((function(){var t=s&&s.apply(this,arguments);t&&e(t.promise)?t.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[r[0]+\"With\"](this,s?[t]:arguments)}))})),i=null})).promise()},then:function(i,a,o){var l=0;function h(i,s,a,o){return function(){var u=this,c=arguments,d=function(){var t,d;if(!(i=l&&(a!==r&&(u=void 0,c=[e]),s.rejectWith(u,c))}};i?f():(t.Deferred.getErrorHook?f.error=t.Deferred.getErrorHook():t.Deferred.getStackHook&&(f.error=t.Deferred.getStackHook()),window.setTimeout(f))}}return t.Deferred((function(t){s[0][3].add(h(0,t,e(o)?o:n,t.notifyWith)),s[1][3].add(h(0,t,e(i)?i:n)),s[2][3].add(h(0,t,e(a)?a:r))})).promise()},promise:function(e){return null!=e?t.extend(e,o):o}},l={};return t.each(s,(function(t,e){var i=e[2],n=e[5];o[e[1]]=i.add,n&&i.add((function(){a=n}),s[3-t][2].disable,s[3-t][3].disable,s[0][2].lock,s[0][3].lock),i.add(e[3].fire),l[e[0]]=function(){return l[e[0]+\"With\"](this===l?void 0:this,arguments),this},l[e[0]+\"With\"]=i.fireWith})),o.promise(l),i&&i.call(l,l),l},when:function(n){var r=arguments.length,a=r,o=Array(a),l=i.call(arguments),h=t.Deferred(),u=function(t){return function(e){o[t]=this,l[t]=arguments.length>1?i.call(arguments):e,--r||h.resolveWith(o,l)}};if(r<=1&&(s(n,h.done(u(a)).resolve,h.reject,!r),\"pending\"===h.state()||e(l[a]&&l[a].then)))return h.then();for(;a--;)s(l[a],u(a),h.reject);return h.promise()}}),t}.apply(e,n))||(t.exports=r)},GAwE:function(t,e,i){\"use strict\";i.d(e,\"c\",(function(){return n.c})),i.d(e,\"a\",(function(){return n.a})),i.d(e,\"f\",(function(){return n.f})),i.d(e,\"b\",(function(){return n.b})),i.d(e,\"d\",(function(){return n.d})),i.d(e,\"e\",(function(){return n.e})),i.d(e,\"g\",(function(){return r.a})),i.d(e,\"h\",(function(){return s.a})),i.d(e,\"i\",(function(){return a.a})),i.d(e,\"k\",(function(){return o})),i.d(e,\"j\",(function(){return l}));var n=i(\"5sfh\"),r=i(\"mZDu\"),s=i(\"+MuJ\"),a=i(\"wiN2\");function o(t){return Object(a.a)(t,!0)}function l(t){return Object(r.a)(t,!0)}},GHrk:function(t,e,i){var n,r;n=[i(\"iprW\"),i(\"hFd1\")],void 0===(r=function(t,e){\"use strict\";var i,n;return i=t.createDocumentFragment().appendChild(t.createElement(\"div\")),(n=t.createElement(\"input\")).setAttribute(\"type\",\"radio\"),n.setAttribute(\"checked\",\"checked\"),n.setAttribute(\"name\",\"t\"),i.appendChild(n),e.checkClone=i.cloneNode(!0).cloneNode(!0).lastChild.checked,i.innerHTML=\"\",e.noCloneChecked=!!i.cloneNode(!0).lastChild.defaultValue,i.innerHTML=\"\",e.option=!!i.lastChild,e}.apply(e,n))||(t.exports=r)},\"GJj+\":function(t,e,i){\"use strict\";i.d(e,\"d\",(function(){return n.a})),i.d(e,\"e\",(function(){return r.a})),i.d(e,\"a\",(function(){return s.a})),i.d(e,\"b\",(function(){return a.a})),i.d(e,\"c\",(function(){return o.a})),i.d(e,\"f\",(function(){return l.a})),i.d(e,\"g\",(function(){return h.a})),i.d(e,\"h\",(function(){return j})),i.d(e,\"k\",(function(){return R})),i.d(e,\"l\",(function(){return E})),i.d(e,\"m\",(function(){return _})),i.d(e,\"n\",(function(){return w})),i.d(e,\"o\",(function(){return B})),i.d(e,\"p\",(function(){return z})),i.d(e,\"i\",(function(){return U})),i.d(e,\"j\",(function(){return V}));var n=i(\"8QvM\"),r=i(\"Fa99\"),s=i(\"wsB2\"),a=i(\"9NLR\"),o=i(\"DUvB\"),l=i(\"qN3V\"),h=i(\"Puhn\"),u=i(\"g+6k\"),c=i(\"iMpH\"),d=i(\"ptxg\"),f=i(\"bnsz\");function p(t){Object(d.a)(t,\"iam\",\".ab-pause-scrolling,body.ab-pause-scrolling,html.ab-pause-scrolling{overflow:hidden;touch-action:none}.ab-iam-root.v3{position:fixed;top:0;right:0;bottom:0;left:0;pointer-events:none;z-index:9011;-webkit-tap-highlight-color:transparent}.ab-iam-root.v3:focus{outline:0}.ab-iam-root.v3.ab-effect-fullscreen,.ab-iam-root.v3.ab-effect-html,.ab-iam-root.v3.ab-effect-modal{opacity:0}.ab-iam-root.v3.ab-effect-fullscreen.ab-show,.ab-iam-root.v3.ab-effect-html.ab-show,.ab-iam-root.v3.ab-effect-modal.ab-show{opacity:1}.ab-iam-root.v3.ab-effect-fullscreen.ab-show.ab-animate-in,.ab-iam-root.v3.ab-effect-html.ab-show.ab-animate-in,.ab-iam-root.v3.ab-effect-modal.ab-show.ab-animate-in{-webkit-transition:opacity .5s;-moz-transition:opacity .5s;-o-transition:opacity .5s;transition:opacity .5s}.ab-iam-root.v3.ab-effect-fullscreen.ab-hide,.ab-iam-root.v3.ab-effect-html.ab-hide,.ab-iam-root.v3.ab-effect-modal.ab-hide{opacity:0}.ab-iam-root.v3.ab-effect-fullscreen.ab-hide.ab-animate-out,.ab-iam-root.v3.ab-effect-html.ab-hide.ab-animate-out,.ab-iam-root.v3.ab-effect-modal.ab-hide.ab-animate-out{-webkit-transition:opacity .5s;-moz-transition:opacity .5s;-o-transition:opacity .5s;transition:opacity .5s}.ab-iam-root.v3.ab-effect-slide .ab-in-app-message{-webkit-transform:translateX(535px);-moz-transform:translateX(535px);-ms-transform:translateX(535px);transform:translateX(535px)}.ab-iam-root.v3.ab-effect-slide.ab-show .ab-in-app-message{-webkit-transform:translateX(0);-moz-transform:translateX(0);-ms-transform:translateX(0);transform:translateX(0)}.ab-iam-root.v3.ab-effect-slide.ab-show.ab-animate-in .ab-in-app-message{-webkit-transition:transform .5s ease-in-out;-moz-transition:transform .5s ease-in-out;-o-transition:transform .5s ease-in-out;transition:transform .5s ease-in-out}.ab-iam-root.v3.ab-effect-slide.ab-hide .ab-in-app-message{-webkit-transform:translateX(535px);-moz-transform:translateX(535px);-ms-transform:translateX(535px);transform:translateX(535px)}.ab-iam-root.v3.ab-effect-slide.ab-hide .ab-in-app-message.ab-swiped-left{-webkit-transform:translateX(-535px);-moz-transform:translateX(-535px);-ms-transform:translateX(-535px);transform:translateX(-535px)}.ab-iam-root.v3.ab-effect-slide.ab-hide .ab-in-app-message.ab-swiped-up{-webkit-transform:translateY(-535px);-moz-transform:translateY(-535px);-ms-transform:translateY(-535px);transform:translateY(-535px)}.ab-iam-root.v3.ab-effect-slide.ab-hide .ab-in-app-message.ab-swiped-down{-webkit-transform:translateY(535px);-moz-transform:translateY(535px);-ms-transform:translateY(535px);transform:translateY(535px)}.ab-iam-root.v3.ab-effect-slide.ab-hide.ab-animate-out .ab-in-app-message{-webkit-transition:transform .5s ease-in-out;-moz-transition:transform .5s ease-in-out;-o-transition:transform .5s ease-in-out;transition:transform .5s ease-in-out}.ab-iam-root.v3 .ab-ios-scroll-wrapper{position:fixed;top:0;right:0;bottom:0;left:0;overflow:auto;pointer-events:all;touch-action:auto;-webkit-overflow-scrolling:touch}.ab-iam-root.v3 .ab-in-app-message{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;position:fixed;text-align:center;-webkit-box-shadow:0 0 4px rgba(0,0,0,.3);-moz-box-shadow:0 0 4px rgba(0,0,0,.3);box-shadow:0 0 4px rgba(0,0,0,.3);line-height:normal;letter-spacing:normal;font-family:'Helvetica Neue Light','Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif;z-index:9011;max-width:100%;overflow:hidden;display:inline-block;pointer-events:all;color:#333}.ab-iam-root.v3 .ab-in-app-message.ab-no-shadow{-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none}.ab-iam-root.v3 .ab-in-app-message :focus,.ab-iam-root.v3 .ab-in-app-message:focus{outline:0}.ab-iam-root.v3 .ab-in-app-message.ab-clickable{cursor:pointer}.ab-iam-root.v3 .ab-in-app-message.ab-background{background-color:#fff}.ab-iam-root.v3 .ab-in-app-message .ab-close-button{-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;background-color:transparent;background-size:15px;border:none;width:15px;min-width:15px;height:15px;cursor:pointer;display:block;font-size:15px;line-height:0;padding-top:15px;padding-right:15px;padding-left:15px;padding-bottom:15px;position:absolute;right:0;top:0;z-index:9021}.ab-iam-root.v3 .ab-in-app-message .ab-close-button svg{-webkit-transition:.2s ease;-moz-transition:.2s ease;-o-transition:.2s ease;transition:.2s ease;fill:#9b9b9b;height:auto;width:100%}.ab-iam-root.v3 .ab-in-app-message .ab-close-button svg.ab-chevron{display:none}.ab-iam-root.v3 .ab-in-app-message .ab-close-button:active{background-color:transparent}.ab-iam-root.v3 .ab-in-app-message .ab-close-button:focus{background-color:transparent}.ab-iam-root.v3 .ab-in-app-message .ab-close-button:hover{background-color:transparent}.ab-iam-root.v3 .ab-in-app-message .ab-close-button:hover svg{fill-opacity:.8}.ab-iam-root.v3 .ab-in-app-message .ab-message-text{float:none;line-height:1.5;margin:20px 25px;max-width:100%;overflow:hidden;overflow-y:auto;vertical-align:text-bottom;word-wrap:break-word;white-space:pre-wrap;font-family:'Helvetica Neue Light','Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif}.ab-iam-root.v3 .ab-in-app-message .ab-message-text.start-aligned{text-align:start}.ab-iam-root.v3 .ab-in-app-message .ab-message-text.end-aligned{text-align:end}.ab-iam-root.v3 .ab-in-app-message .ab-message-text.center-aligned{text-align:center}.ab-iam-root.v3 .ab-in-app-message .ab-message-text::-webkit-scrollbar{-webkit-appearance:none;width:14px}.ab-iam-root.v3 .ab-in-app-message .ab-message-text::-webkit-scrollbar-thumb{-webkit-appearance:none;border:4px solid transparent;background-clip:padding-box;-webkit-border-radius:7px;-moz-border-radius:7px;border-radius:7px;background-color:rgba(0,0,0,.2)}.ab-iam-root.v3 .ab-in-app-message .ab-message-text::-webkit-scrollbar-button{width:0;height:0;display:none}.ab-iam-root.v3 .ab-in-app-message .ab-message-text::-webkit-scrollbar-corner{background-color:transparent}.ab-iam-root.v3 .ab-in-app-message .ab-message-header{float:none;letter-spacing:0;margin:0;font-weight:700;font-family:'Helvetica Neue Light','Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif;display:block;font-size:20px;margin-bottom:10px;line-height:1.3}.ab-iam-root.v3 .ab-in-app-message .ab-message-header.start-aligned{text-align:start}.ab-iam-root.v3 .ab-in-app-message .ab-message-header.end-aligned{text-align:end}.ab-iam-root.v3 .ab-in-app-message .ab-message-header.center-aligned{text-align:center}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen,.ab-iam-root.v3 .ab-in-app-message.ab-modal,.ab-iam-root.v3 .ab-in-app-message.ab-slideup{-webkit-border-radius:8px;-moz-border-radius:8px;border-radius:8px}.ab-iam-root.v3 .ab-in-app-message.ab-slideup{-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;cursor:pointer;overflow:hidden;word-wrap:break-word;text-overflow:ellipsis;font-size:14px;font-weight:700;margin:20px;margin-top:calc(constant(safe-area-inset-top,0) + 20px);margin-right:calc(constant(safe-area-inset-right,0) + 20px);margin-bottom:calc(constant(safe-area-inset-bottom,0) + 20px);margin-left:calc(constant(safe-area-inset-left,0) + 20px);margin-top:calc(env(safe-area-inset-top,0) + 20px);margin-right:calc(env(safe-area-inset-right,0) + 20px);margin-bottom:calc(env(safe-area-inset-bottom,0) + 20px);margin-left:calc(env(safe-area-inset-left,0) + 20px);max-height:150px;padding:10px;right:0;background-color:#efefef}.ab-iam-root.v3 .ab-in-app-message.ab-slideup.simulate-phone{max-height:66px;margin:10px;margin-top:calc(constant(safe-area-inset-top,0) + 10px);margin-right:calc(constant(safe-area-inset-right,0) + 10px);margin-bottom:calc(constant(safe-area-inset-bottom,0) + 10px);margin-left:calc(constant(safe-area-inset-left,0) + 10px);margin-top:calc(env(safe-area-inset-top,0) + 10px);margin-right:calc(env(safe-area-inset-right,0) + 10px);margin-bottom:calc(env(safe-area-inset-bottom,0) + 10px);margin-left:calc(env(safe-area-inset-left,0) + 10px);max-width:90%;max-width:calc(100% - 40px);min-width:90%;min-width:calc(100% - 40px)}.ab-iam-root.v3 .ab-in-app-message.ab-slideup.simulate-phone .ab-close-button{display:none}.ab-iam-root.v3 .ab-in-app-message.ab-slideup.simulate-phone .ab-close-button svg:not(.ab-chevron){display:none}.ab-iam-root.v3 .ab-in-app-message.ab-slideup.simulate-phone.ab-clickable .ab-close-button{display:block;height:20px;padding:0 20px 0 18px;pointer-events:none;top:50%;-webkit-transform:translateY(-50%);-moz-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%);width:12px}.ab-iam-root.v3 .ab-in-app-message.ab-slideup.simulate-phone.ab-clickable .ab-close-button svg.ab-chevron{display:inline}.ab-iam-root.v3 .ab-in-app-message.ab-slideup.simulate-phone.ab-clickable .ab-message-text{border-right-width:40px}.ab-iam-root.v3 .ab-in-app-message.ab-slideup.simulate-phone .ab-message-text{max-width:100%;border-right-width:10px}.ab-iam-root.v3 .ab-in-app-message.ab-slideup.simulate-phone .ab-message-text span{max-height:66px}.ab-iam-root.v3 .ab-in-app-message.ab-slideup.simulate-phone .ab-message-text.ab-with-icon,.ab-iam-root.v3 .ab-in-app-message.ab-slideup.simulate-phone .ab-message-text.ab-with-image{max-width:80%;max-width:calc(100% - 50px - 5px - 10px - 25px)}.ab-iam-root.v3 .ab-in-app-message.ab-slideup.simulate-phone .ab-image-area{width:50px;height:50px}.ab-iam-root.v3 .ab-in-app-message.ab-slideup.simulate-phone .ab-image-area img{max-width:100%;max-height:100%;width:auto;height:auto}.ab-iam-root.v3 .ab-in-app-message.ab-slideup.ab-clickable:active .ab-message-text,.ab-iam-root.v3 .ab-in-app-message.ab-slideup.ab-clickable:focus .ab-message-text,.ab-iam-root.v3 .ab-in-app-message.ab-slideup.ab-clickable:hover .ab-message-text{opacity:.8}.ab-iam-root.v3 .ab-in-app-message.ab-slideup.ab-clickable:active .ab-close-button svg.ab-chevron,.ab-iam-root.v3 .ab-in-app-message.ab-slideup.ab-clickable:focus .ab-close-button svg.ab-chevron,.ab-iam-root.v3 .ab-in-app-message.ab-slideup.ab-clickable:hover .ab-close-button svg.ab-chevron{fill-opacity:.8}.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-message-text{-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:table-cell;border-color:transparent;border-style:solid;border-width:5px 25px 5px 10px;max-width:430px;vertical-align:middle;margin:0}.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-message-text span{display:block;max-height:150px;overflow:auto}.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-message-text.ab-with-icon,.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-message-text.ab-with-image{max-width:365px;border-top:0;border-bottom:0}.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-close-button{-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;background-color:transparent;background-size:15px;border:none;width:15px;min-width:15px;height:15px;cursor:pointer;display:block;font-size:15px;line-height:0;padding-top:15px;padding-right:15px;padding-left:15px;padding-bottom:15px;position:absolute;right:0;top:0;z-index:9021}.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-close-button svg{-webkit-transition:.2s ease;-moz-transition:.2s ease;-o-transition:.2s ease;transition:.2s ease;fill:#9b9b9b;height:auto;width:100%}.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-close-button svg.ab-chevron{display:none}.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-close-button:active{background-color:transparent}.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-close-button:focus{background-color:transparent}.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-close-button:hover{background-color:transparent}.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-close-button:hover svg{fill-opacity:.8}.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-image-area{float:none;-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:table-cell;border-color:transparent;border-style:solid;border-width:5px 0 5px 5px;vertical-align:top;width:60px;margin:0}.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-image-area.ab-icon-area{width:auto}.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-image-area img{float:none;width:100%}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen,.ab-iam-root.v3 .ab-in-app-message.ab-modal{font-size:14px}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen .ab-image-area,.ab-iam-root.v3 .ab-in-app-message.ab-modal .ab-image-area{float:none;position:relative;display:block;overflow:hidden}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen .ab-image-area .ab-center-cropped-img,.ab-iam-root.v3 .ab-in-app-message.ab-modal .ab-image-area .ab-center-cropped-img{background-size:cover;background-repeat:no-repeat;background-position:50% 50%;position:absolute;top:0;right:0;bottom:0;left:0}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen .ab-icon,.ab-iam-root.v3 .ab-in-app-message.ab-modal .ab-icon{margin-top:20px}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.graphic,.ab-iam-root.v3 .ab-in-app-message.ab-modal.graphic{padding:0}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.graphic .ab-message-text,.ab-iam-root.v3 .ab-in-app-message.ab-modal.graphic .ab-message-text{display:none}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.graphic .ab-message-buttons,.ab-iam-root.v3 .ab-in-app-message.ab-modal.graphic .ab-message-buttons{bottom:0;left:0}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.graphic .ab-image-area,.ab-iam-root.v3 .ab-in-app-message.ab-modal.graphic .ab-image-area{float:none;height:auto;margin:0}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.graphic .ab-image-area img,.ab-iam-root.v3 .ab-in-app-message.ab-modal.graphic .ab-image-area img{display:block;top:0;-webkit-transform:none;-moz-transform:none;-ms-transform:none;transform:none}.ab-iam-root.v3 .ab-in-app-message.ab-modal{padding-top:20px;width:450px;max-width:450px;max-height:720px}.ab-iam-root.v3 .ab-in-app-message.ab-modal.simulate-phone{max-width:91%;max-width:calc(100% - 30px)}.ab-iam-root.v3 .ab-in-app-message.ab-modal.simulate-phone.graphic .ab-image-area img{max-width:91vw;max-width:calc(100vw - 30px)}.ab-iam-root.v3 .ab-in-app-message.ab-modal .ab-message-text{max-height:660px}.ab-iam-root.v3 .ab-in-app-message.ab-modal .ab-message-text.ab-with-image{max-height:524.82758621px}.ab-iam-root.v3 .ab-in-app-message.ab-modal .ab-message-text.ab-with-icon{max-height:610px}.ab-iam-root.v3 .ab-in-app-message.ab-modal .ab-message-text.ab-with-buttons{margin-bottom:93px;max-height:587px}.ab-iam-root.v3 .ab-in-app-message.ab-modal .ab-message-text.ab-with-buttons.ab-with-image{max-height:451.82758621px}.ab-iam-root.v3 .ab-in-app-message.ab-modal .ab-message-text.ab-with-buttons.ab-with-icon{max-height:537px}.ab-iam-root.v3 .ab-in-app-message.ab-modal .ab-image-area{margin-top:-20px;max-height:155.17241379px}.ab-iam-root.v3 .ab-in-app-message.ab-modal .ab-image-area img{max-width:100%;max-height:155.17241379px}.ab-iam-root.v3 .ab-in-app-message.ab-modal .ab-image-area.ab-icon-area{height:auto}.ab-iam-root.v3 .ab-in-app-message.ab-modal.graphic{width:auto;overflow:hidden}.ab-iam-root.v3 .ab-in-app-message.ab-modal.graphic .ab-image-area{display:inline}.ab-iam-root.v3 .ab-in-app-message.ab-modal.graphic .ab-image-area img{width:auto;max-height:720px;max-width:450px}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen{width:450px;max-height:720px}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape{width:720px;max-height:450px}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape .ab-image-area{height:225px}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape.graphic .ab-image-area{height:450px}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape .ab-message-text{max-height:112px}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen .ab-message-text{max-height:247px}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen .ab-message-text.ab-with-buttons{margin-bottom:93px}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen .ab-image-area{height:360px}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.graphic .ab-image-area{height:720px}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.simulate-phone{-webkit-transition:top none;-moz-transition:top none;-o-transition:top none;transition:top none;top:0;right:0;bottom:0;left:0;height:100%;width:100%;max-height:none;-webkit-border-radius:0;-moz-border-radius:0;border-radius:0;-webkit-transform:none;-moz-transform:none;-ms-transform:none;transform:none;height:auto!important}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.simulate-phone.landscape .ab-close-button{margin-right:calc(constant(safe-area-inset-bottom,0) + constant(safe-area-inset-top,0));margin-right:calc(env(safe-area-inset-bottom,0) + env(safe-area-inset-top,0));margin-left:calc(constant(safe-area-inset-bottom,0) + constant(safe-area-inset-top,0));margin-left:calc(env(safe-area-inset-bottom,0) + env(safe-area-inset-top,0))}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.simulate-phone .ab-image-area,.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.simulate-phone.landscape .ab-image-area{height:50%}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.simulate-phone .ab-message-text{max-height:48%;max-height:calc(50% - 20px - 20px)}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.simulate-phone .ab-message-text.ab-with-buttons{margin-bottom:20px;max-height:30%;max-height:calc(50% - 93px - 20px)}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.simulate-phone.landscape .ab-message-text.ab-with-buttons{max-height:20%;max-height:calc(50% - 93px - 20px)}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.simulate-phone:not(.graphic){padding-bottom:0;padding-bottom:constant(safe-area-inset-bottom,0);padding-bottom:env(safe-area-inset-bottom,0)}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.simulate-phone:not(.graphic) .ab-message-buttons{padding-top:0;position:relative}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.simulate-phone.graphic{display:block}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.simulate-phone.graphic .ab-image-area{height:100%}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.simulate-phone.graphic .ab-message-button{margin-bottom:0;margin-bottom:constant(safe-area-inset-bottom,0);margin-bottom:env(safe-area-inset-bottom,0)}.ab-iam-root.v3 .ab-in-app-message.ab-html-message{background-color:transparent;border:none;height:100%;overflow:auto;position:relative;touch-action:auto;width:100%}.ab-iam-root.v3 .ab-in-app-message .ab-message-buttons{position:absolute;bottom:0;width:100%;padding:17px 25px 30px 25px;z-index:inherit;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.ab-iam-root.v3 .ab-in-app-message .ab-message-button{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;-webkit-border-radius:5px;-moz-border-radius:5px;border-radius:5px;-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none;cursor:pointer;display:inline-block;font-size:14px;font-weight:700;font-family:'Helvetica Neue Light','Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif;height:44px;line-height:normal;letter-spacing:normal;margin:0;max-width:100%;min-width:80px;padding:0 12px;position:relative;text-transform:none;width:48%;width:calc(50% - 5px);border:1px solid #1b78cf;-webkit-transition:.2s ease;-moz-transition:.2s ease;-o-transition:.2s ease;transition:.2s ease;overflow:hidden;word-wrap:break-word;text-overflow:ellipsis;word-wrap:normal;white-space:nowrap}.ab-iam-root.v3 .ab-in-app-message .ab-message-button:first-of-type{float:left;background-color:#fff;color:#1b78cf}.ab-iam-root.v3 .ab-in-app-message .ab-message-button:last-of-type{float:right;background-color:#1b78cf;color:#fff}.ab-iam-root.v3 .ab-in-app-message .ab-message-button:first-of-type:last-of-type{float:none;width:auto}.ab-iam-root.v3 .ab-in-app-message .ab-message-button:after{content:'';position:absolute;top:0;left:0;width:100%;height:100%;background-color:transparent}.ab-iam-root.v3 .ab-in-app-message .ab-message-button:after{-webkit-transition:.2s ease;-moz-transition:.2s ease;-o-transition:.2s ease;transition:.2s ease}.ab-iam-root.v3 .ab-in-app-message .ab-message-button:hover{opacity:.8}.ab-iam-root.v3 .ab-in-app-message .ab-message-button:active:after{content:'';position:absolute;top:0;left:0;width:100%;height:100%;background-color:rgba(0,0,0,.08)}.ab-iam-root.v3 .ab-in-app-message .ab-message-button:focus:after{content:'';position:absolute;top:0;left:0;width:100%;height:100%;background-color:rgba(0,0,0,.15)}.ab-iam-root.v3 .ab-in-app-message .ab-message-button a{color:inherit;text-decoration:inherit}.ab-iam-root.v3 .ab-in-app-message img{float:none;display:inline-block}.ab-iam-root.v3 .ab-in-app-message .ab-icon{float:none;display:inline-block;padding:10px;-webkit-border-radius:8px;-moz-border-radius:8px;border-radius:8px}.ab-iam-root.v3 .ab-in-app-message .ab-icon .fa{float:none;font-size:30px;width:30px}.ab-iam-root.v3 .ab-start-hidden{visibility:hidden}.ab-iam-root.v3 .ab-centered{margin:auto;position:absolute;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);-moz-transform:translate(-50%,-50%);-ms-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.ab-iam-root.v3{-webkit-border-radius:0;-moz-border-radius:0;border-radius:0}.ab-iam-root.v3 .ab-page-blocker{position:fixed;top:0;left:0;width:100%;height:100%;z-index:9001;pointer-events:all;background-color:rgba(51,51,51,.75)}@media (max-width:600px){.ab-iam-root.v3 .ab-in-app-message.ab-slideup{max-height:66px;margin:10px;margin-top:calc(constant(safe-area-inset-top,0) + 10px);margin-right:calc(constant(safe-area-inset-right,0) + 10px);margin-bottom:calc(constant(safe-area-inset-bottom,0) + 10px);margin-left:calc(constant(safe-area-inset-left,0) + 10px);margin-top:calc(env(safe-area-inset-top,0) + 10px);margin-right:calc(env(safe-area-inset-right,0) + 10px);margin-bottom:calc(env(safe-area-inset-bottom,0) + 10px);margin-left:calc(env(safe-area-inset-left,0) + 10px);max-width:90%;max-width:calc(100% - 40px);min-width:90%;min-width:calc(100% - 40px)}.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-close-button{display:none}.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-close-button svg:not(.ab-chevron){display:none}.ab-iam-root.v3 .ab-in-app-message.ab-slideup.ab-clickable .ab-close-button{display:block;height:20px;padding:0 20px 0 18px;pointer-events:none;top:50%;-webkit-transform:translateY(-50%);-moz-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%);width:12px}.ab-iam-root.v3 .ab-in-app-message.ab-slideup.ab-clickable .ab-close-button svg.ab-chevron{display:inline}.ab-iam-root.v3 .ab-in-app-message.ab-slideup.ab-clickable .ab-message-text{border-right-width:40px}.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-message-text{max-width:100%;border-right-width:10px}.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-message-text span{max-height:66px}.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-message-text.ab-with-icon,.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-message-text.ab-with-image{max-width:80%;max-width:calc(100% - 50px - 5px - 10px - 25px)}.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-image-area{width:50px;height:50px}.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-image-area img{max-width:100%;max-height:100%;width:auto;height:auto}.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen,.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen.landscape{-webkit-transition:top none;-moz-transition:top none;-o-transition:top none;transition:top none;top:0;right:0;bottom:0;left:0;height:100%;width:100%;max-height:none;-webkit-border-radius:0;-moz-border-radius:0;border-radius:0;-webkit-transform:none;-moz-transform:none;-ms-transform:none;transform:none;height:auto!important}.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen.landscape .ab-close-button,.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen.landscape.landscape .ab-close-button{margin-right:calc(constant(safe-area-inset-bottom,0) + constant(safe-area-inset-top,0));margin-right:calc(env(safe-area-inset-bottom,0) + env(safe-area-inset-top,0));margin-left:calc(constant(safe-area-inset-bottom,0) + constant(safe-area-inset-top,0));margin-left:calc(env(safe-area-inset-bottom,0) + env(safe-area-inset-top,0))}.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen .ab-image-area,.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen.landscape .ab-image-area,.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen.landscape.landscape .ab-image-area{height:50%}.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen .ab-message-text,.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen.landscape .ab-message-text{max-height:48%;max-height:calc(50% - 20px - 20px)}.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen .ab-message-text.ab-with-buttons,.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen.landscape .ab-message-text.ab-with-buttons{margin-bottom:20px;max-height:30%;max-height:calc(50% - 93px - 20px)}.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen.landscape .ab-message-text.ab-with-buttons,.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen.landscape.landscape .ab-message-text.ab-with-buttons{max-height:20%;max-height:calc(50% - 93px - 20px)}.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen.landscape:not(.graphic),.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen:not(.graphic){padding-bottom:0;padding-bottom:constant(safe-area-inset-bottom,0);padding-bottom:env(safe-area-inset-bottom,0)}.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen.landscape:not(.graphic) .ab-message-buttons,.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen:not(.graphic) .ab-message-buttons{padding-top:0;position:relative}.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen.graphic,.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen.landscape.graphic{display:block}.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen.graphic .ab-image-area,.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen.landscape.graphic .ab-image-area{height:100%}.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen.graphic .ab-message-button,.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen.landscape.graphic .ab-message-button{margin-bottom:0;margin-bottom:constant(safe-area-inset-bottom,0);margin-bottom:env(safe-area-inset-bottom,0)}}@media (max-width:480px){.ab-iam-root.v3 .ab-in-app-message.ab-modal:not(.force-desktop){max-width:91%;max-width:calc(100% - 30px)}.ab-iam-root.v3 .ab-in-app-message.ab-modal:not(.force-desktop).graphic .ab-image-area img{max-width:91vw;max-width:calc(100vw - 30px)}}@media (max-height:750px){.ab-iam-root.v3 .ab-in-app-message.ab-modal:not(.force-desktop){max-height:91%;max-height:calc(100% - 30px)}.ab-iam-root.v3 .ab-in-app-message.ab-modal:not(.force-desktop).graphic .ab-image-area img{max-height:91vh;max-height:calc(100vh - 30px)}.ab-iam-root.v3 .ab-in-app-message.ab-modal:not(.force-desktop) .ab-message-text{max-height:65vh;max-height:calc(100vh - 30px - 60px)}.ab-iam-root.v3 .ab-in-app-message.ab-modal:not(.force-desktop) .ab-message-text.ab-with-image{max-height:45vh;max-height:calc(100vh - 30px - 155.17241379310346px - 40px)}.ab-iam-root.v3 .ab-in-app-message.ab-modal:not(.force-desktop) .ab-message-text.ab-with-icon{max-height:45vh;max-height:calc(100vh - 30px - 70px - 40px)}.ab-iam-root.v3 .ab-in-app-message.ab-modal:not(.force-desktop) .ab-message-text.ab-with-buttons{max-height:50vh;max-height:calc(100vh - 30px - 93px - 40px)}.ab-iam-root.v3 .ab-in-app-message.ab-modal:not(.force-desktop) .ab-message-text.ab-with-buttons.ab-with-image{max-height:30vh;max-height:calc(100vh - 30px - 155.17241379310346px - 93px - 20px)}.ab-iam-root.v3 .ab-in-app-message.ab-modal:not(.force-desktop) .ab-message-text.ab-with-buttons.ab-with-icon{max-height:30vh;max-height:calc(100vh - 30px - 70px - 93px - 20px)}}@media (min-width:601px){.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen .ab-image-area img{max-height:100%;max-width:100%}}@media (max-height:750px) and (min-width:601px){.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen:not(.landscape):not(.force-desktop){-webkit-transition:top none;-moz-transition:top none;-o-transition:top none;transition:top none;top:0;right:0;bottom:0;left:0;height:100%;width:100%;max-height:none;-webkit-border-radius:0;-moz-border-radius:0;border-radius:0;-webkit-transform:none;-moz-transform:none;-ms-transform:none;transform:none;height:auto!important;width:450px}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen:not(.landscape):not(.force-desktop).landscape .ab-close-button{margin-right:calc(constant(safe-area-inset-bottom,0) + constant(safe-area-inset-top,0));margin-right:calc(env(safe-area-inset-bottom,0) + env(safe-area-inset-top,0));margin-left:calc(constant(safe-area-inset-bottom,0) + constant(safe-area-inset-top,0));margin-left:calc(env(safe-area-inset-bottom,0) + env(safe-area-inset-top,0))}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen:not(.landscape):not(.force-desktop) .ab-image-area,.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen:not(.landscape):not(.force-desktop).landscape .ab-image-area{height:50%}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen:not(.landscape):not(.force-desktop) .ab-message-text{max-height:48%;max-height:calc(50% - 20px - 20px)}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen:not(.landscape):not(.force-desktop) .ab-message-text.ab-with-buttons{margin-bottom:20px;max-height:30%;max-height:calc(50% - 93px - 20px)}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen:not(.landscape):not(.force-desktop).landscape .ab-message-text.ab-with-buttons{max-height:20%;max-height:calc(50% - 93px - 20px)}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen:not(.landscape):not(.force-desktop):not(.graphic){padding-bottom:0;padding-bottom:constant(safe-area-inset-bottom,0);padding-bottom:env(safe-area-inset-bottom,0)}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen:not(.landscape):not(.force-desktop):not(.graphic) .ab-message-buttons{padding-top:0;position:relative}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen:not(.landscape):not(.force-desktop).graphic{display:block}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen:not(.landscape):not(.force-desktop).graphic .ab-image-area{height:100%}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen:not(.landscape):not(.force-desktop).graphic .ab-message-button{margin-bottom:0;margin-bottom:constant(safe-area-inset-bottom,0);margin-bottom:env(safe-area-inset-bottom,0)}}@media (max-height:480px){.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop){-webkit-transition:top none;-moz-transition:top none;-o-transition:top none;transition:top none;top:0;right:0;bottom:0;left:0;height:100%;width:100%;max-height:none;-webkit-border-radius:0;-moz-border-radius:0;border-radius:0;-webkit-transform:none;-moz-transform:none;-ms-transform:none;transform:none;height:auto!important}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop).landscape .ab-close-button{margin-right:calc(constant(safe-area-inset-bottom,0) + constant(safe-area-inset-top,0));margin-right:calc(env(safe-area-inset-bottom,0) + env(safe-area-inset-top,0));margin-left:calc(constant(safe-area-inset-bottom,0) + constant(safe-area-inset-top,0));margin-left:calc(env(safe-area-inset-bottom,0) + env(safe-area-inset-top,0))}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop) .ab-image-area,.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop).landscape .ab-image-area{height:50%}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop) .ab-message-text{max-height:48%;max-height:calc(50% - 20px - 20px)}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop) .ab-message-text.ab-with-buttons{margin-bottom:20px;max-height:30%;max-height:calc(50% - 93px - 20px)}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop).landscape .ab-message-text.ab-with-buttons{max-height:20%;max-height:calc(50% - 93px - 20px)}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop):not(.graphic){padding-bottom:0;padding-bottom:constant(safe-area-inset-bottom,0);padding-bottom:env(safe-area-inset-bottom,0)}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop):not(.graphic) .ab-message-buttons{padding-top:0;position:relative}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop).graphic{display:block}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop).graphic .ab-image-area{height:100%}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop).graphic .ab-message-button{margin-bottom:0;margin-bottom:constant(safe-area-inset-bottom,0);margin-bottom:env(safe-area-inset-bottom,0)}}@media (max-width:750px){.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop){-webkit-transition:top none;-moz-transition:top none;-o-transition:top none;transition:top none;top:0;right:0;bottom:0;left:0;height:100%;width:100%;max-height:none;-webkit-border-radius:0;-moz-border-radius:0;border-radius:0;-webkit-transform:none;-moz-transform:none;-ms-transform:none;transform:none;height:auto!important}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop).landscape .ab-close-button{margin-right:calc(constant(safe-area-inset-bottom,0) + constant(safe-area-inset-top,0));margin-right:calc(env(safe-area-inset-bottom,0) + env(safe-area-inset-top,0));margin-left:calc(constant(safe-area-inset-bottom,0) + constant(safe-area-inset-top,0));margin-left:calc(env(safe-area-inset-bottom,0) + env(safe-area-inset-top,0))}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop) .ab-image-area,.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop).landscape .ab-image-area{height:50%}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop) .ab-message-text{max-height:48%;max-height:calc(50% - 20px - 20px)}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop) .ab-message-text.ab-with-buttons{margin-bottom:20px;max-height:30%;max-height:calc(50% - 93px - 20px)}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop).landscape .ab-message-text.ab-with-buttons{max-height:20%;max-height:calc(50% - 93px - 20px)}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop):not(.graphic){padding-bottom:0;padding-bottom:constant(safe-area-inset-bottom,0);padding-bottom:env(safe-area-inset-bottom,0)}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop):not(.graphic) .ab-message-buttons{padding-top:0;position:relative}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop).graphic{display:block}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop).graphic .ab-image-area{height:100%}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop).graphic .ab-message-button{margin-bottom:0;margin-bottom:constant(safe-area-inset-bottom,0);margin-bottom:env(safe-area-inset-bottom,0)}}\")}function m(){p(),Object(f.a)()}var g=i(\"FRvr\"),v=i(\"xrhz\");function y(t,e){return null==t?\"\":(t=parseInt(t.toString()),isNaN(t)?\"\":(e&&!isNaN(parseFloat(e.toString()))||(e=1),\"rgba(\"+[(16711680&(t>>>=0))>>>16,(65280&t)>>>8,255&t,((4278190080&t)>>>24)/255*e].join(\",\")+\")\"))}var b=i(\"1nra\"),x=i(\"Rsh4\");function w(t){if(!c.b.rr())return!1;if(!(t instanceof n.a||t instanceof s.a))return x.a.j.error(b.j),!1;const e=t instanceof s.a?x.a.q.eo:x.a.q.Vi;return u.a.m().N(t,e).O}var T=i(\"p/tc\"),S=i(\"eAt7\");function E(t){if(!c.b.rr())return!1;if(!(t instanceof n.a))return x.a.j.error(b.j),!1;const e=u.a.m().N(t,x.a.q.Li);if(e){t.so()||w(t);for(let i=0;i{const e=t.querySelectorAll(\".ab-close-button, .ab-message-text, .ab-message-button\");let i;for(let t=0;t0){const i=e[0],n=e[e.length-1];t.addEventListener(\"keydown\",e=>{const r=document.activeElement;e.keyCode===I.a.oo&&(e.shiftKey||r!==n&&r!==t?!e.shiftKey||r!==i&&r!==t||(e.preventDefault(),n.focus()):(e.preventDefault(),i.focus()))})}},Ke:(t,e)=>{e.setAttribute(\"role\",\"dialog\"),e.setAttribute(\"aria-modal\",\"true\"),e.setAttribute(\"aria-label\",\"Modal Message\"),t&&e.setAttribute(\"aria-labelledby\",t)},He:(t,e,i,r)=>{if(t.buttons&&t.buttons.length>0){const s=document.createElement(\"div\");s.className=\"ab-message-buttons\",i.appendChild(s);const a=i.getElementsByClassName(\"ab-message-text\")[0];null!=a&&(a.className+=\" ab-with-buttons\");const o=s=>a=>(t.ye(i,()=>{R(s,t),s.clickAction===n.a.ClickAction.URI?Object(C.a)(s.uri||\"\",r||t.openTarget===n.a.OpenTarget.BLANK,a):s.clickAction===n.a.ClickAction.NEWS_FEED&&e()}),a.stopPropagation(),!1);for(let e=0;e{const i=e.getAttribute(\"href\"),r=e.onclick;return a=>{if(null!=r&&\"function\"==typeof r&&!1===r.bind(e)(a))return;let o=Object(D.b)(i).abButtonId;if(null!=o&&\"\"!==o||(o=e.getAttribute(\"id\")||void 0),null!=i&&\"\"!==i&&0!==i.indexOf(\"#\")){const r=\"blank\"===(e.getAttribute(\"target\")||\"\").toLowerCase().replace(\"_\",\"\"),h=s||t.openTarget===n.a.OpenTarget.BLANK||r,u=()=>{_(t,o,i),O.b.openUri(i,h,a)};h?u():t.ye(l,u)}else _(t,o,i||void 0);return a.stopPropagation(),!1}},u=(t,e,i)=>{const n=`([\\\\w]+)\\\\s*=\\\\s*document.createElement\\\\(['\"]${i}['\"]\\\\)`,r=t.match(new RegExp(n));if(r){const i=`${r[1]}.setAttribute(\"nonce\", \"${e}\")`;return`${t.slice(0,r.index+r[0].length)};${i};${t.slice(r.index+r[0].length)}`}return null};if(l.onload=()=>{let s=null;if(null!=o){s=document.createElement(\"html\"),s.innerHTML=t.message||\"\";const e=s.getElementsByTagName(\"style\");for(let t=0;t/g,`